I am building a simple Web App for which I want to store 3 variables, which should be available to every user and be stored dynamically.
Specifically I am using Flask. In the past I simply stored the data in text files or pickled them. Although this worked, this seems like an ugly solution and could at least theoretically lead to race condition problems when used by multiple persons.
The better approach would probably be to use a database, but this seems like a bit of an overkill when really the only thing it would store was a single entry in a single table.
Is there a good practice for this kind of task? Unfortunately I haven't found any appropriate solutions for this task, as the problem doesn't seem very common.