I have a django instance hosted via apache/mod_wsgi. I use pre_save
and post_save
signals to store the values before and after save for later comparisons. For that I use global variables to store the pre_save
values which can be accessed in the post_save
signal handler.
My question is, if two requests A and B come together simultaneously requesting a same web service, will it be concurrent? The B should not read the global variable which is written by A and vice versa.
PS: I don't use any threading Lock
on variables.