I have a need to maintain global state on the server across different browser / user sessions.
My assumption here is that all atoms etc created when a request comes in is specific to that request. Once the response is returned all that state is destroyed and memory freed. Please correct me if I am wrong.
State across requests for a specific session can be maintained in memory by using the session middleware.
However how do I maintain the state across multiple user sessions and requests. If possible I would like to avoid the usage of memcached / redis etc for storing it externally. Is it possible to achieve it in memory itself?