Hi all,
Some context first:
I’m using Dash to make a simple annotation app. The user is presented with the contours of bacteria images.
Upon clicking on a contour, it assigns it the currently selected phenotype. This is stored as a phenoype column in a pandas dataframe.
Once the contour is clicked, all the contours are re-drawn, changing color based on that phenotype value.
The issue
This works fine locally, but in a container with nginx+flask+uwsgi, I have multiple processes (uswgi workers) between which the dataframe is not shared, so the modification is only effective for the process that received the callback.
The question
How can I make sure that my data is correctly synchronized between processes in the app?
Hope I’m clear,
Thanks for the good work!

(after wide searches on parallel computation, and trying to understand data management with uwsgi workers :-/ ). I’ll refactor the code to make the JSON serialized data as small as possible - might be good for the overall architecture of the app anyway.