A Stateless Quiz System
RakuConf

by Arne Sommer

A Stateless Quiz System with Raku - Part 5 RakuConf

[250.5] Published 5. June 2023. Updated 20. August 2023

[ Index | Introduction | Security | The Program | Notes | RakuConf ]

This is the original sales pitch for this talk for The Raku Conference in Riga in August of 2023. The conference was cancelled, so this talk is presented here as a series of articles instead.

In this talk I'll present a system for making a stateless quiz application on the web, using Cro. The initial version requires the correct answer at each stage, before allowing you to go on. We'll set up a sample quiz as we go along.

Then I'll have a go at doing more complicated things, to see how far we can take this, while still being useful.

Question 1: Is it really stateless?
Answer: Yes. We do not save anything about the progress of the users on the server.

Question 2: But the information embedded in the URLs that are passed to the user and back again contain state, don't they?
Answer: Well. We do not save the state on the server, so the answer is No.

Question 3: But the list of questions, the order, and the correct answers are all stored on the server, and that surely is part of the state?
Answer: Go away.

This is a proposed talk for The Raku Conference in Riga in August of 2023.

[ Index | Introduction | Security | The Program | Notes | RakuConf ]