damoclark / buzzer.click

Buzzer.click is an online synchronous quiz game that implements a fun ‘buzzer’ type system, such that during a contested response to a question, the first person to ‘buzz’ is identified and thus has first opportunity to answer.
8 stars 3 forks source link

Dumping/Loading server configuration to/from secondary storage #34

Open damoclark opened 8 years ago

damoclark commented 8 years ago

Implement the ability for the server process to write the currently running sessions to disk, when terminating, or otherwise receiving an unhandled signal (not sure about Windows here).

On restart, check for the existence of such a file, and depending on its modification timestamp, reload all the sessions into the process, so that in-progress 'games' can continue.