Consultancy for flask/gunicorn/nginx/docker

Job ID: 37338064

Budget: ₹750 – ₹1,250 INR

I need consultancy:
Details need to trobleshoot
1. I created webapp created using flask
2. Since flask is single threded we use gunicorn
3. In flask

variable1 = "value1"
@app.route('/', methods=['POST'])
return variable index.html

What is problem let suppose after using gunicorn on 1 core CPU we can handle three request simultaneously

so I when 1 user make request we return/use/use before for logic handling variable1
but when 2 user simultaneously request, for first user we use variable=value1, and for concurrent second user we use variable=value2

This is the main problem I don't know anything to solve please help me to
Acheive this using flask/gunicorn/nginx or any suitable approach
Related categories: Nginx Web Services Docker Backend Development Flask