Dash Voting App

I’m working on a sort of voting, polling app. I’m looking for ideas on how to manage the votes/polls. Essentially, the user is presented with slider for the question and a button to submit their answer. We’ll say I have either some kind of username or session id implemented for keeping track of who voted for what.

What is a good way to:

  • keep track of their votes
  • logging and storing those votes so if the session is quit I still have their votes
  • give the user an option to go back and change their vote for a previous question

Sounds pretty simple. I guess any database system would do. If you only have one worker, a file might even be enough.