I have a Flask app running.
Assume that on user's endpoint access (call it visit) I have a dictionary where I update his visit by visits[user_id] = datetime.now().
I have a question regarding the following scenario:
- user with user_id = 1 access the Flask endpoint, and the dict visits gets updated.
- another user with user_id = 2 access the Flask endpoint, and the dict visits gets updated, but not in the same instance of Flask app as in case 1.
The question is if the same dict visits gets updated here, i.e. whether there is only one instance of Flask app running, and the gunicorn multiple workers do not create multiple instances of this visits dict, which in its turn will have different user_ids in it.