My Dash application show users the data in a SQL database and support pagination.
And I deployed it using gunicorn.
If I use 1 worker, it works. But if there are more than 1 workers, the pagination function does not work anymore.
The reason is that when I clicked the “Next page”, the worker to process the request may differ from the worker that process the previous request.
BTW, I tried both sync and async(gevent) workers in guncorn.
I thought this should be popular use case, but I can not find a good solution.
Please give suggestions how to deal with the issue, thanks in advance.