Is there any way to maintain a variable that is accessible and mutable across processes?
Example
User A made a request to a view called make_foo
and the operation within that view takes time. We want to have a flag variable that says making_foo = True
that is viewable by User B that will make a request and by any other user or service within that django app and be able to set it to False
when done
Don't take the example too seriously, I know about task queues but what I am trying to understand is the idea of having a shared mutable variable across processes without the need to use a database.
Is there any best practice to achieve that?