Skip to content

Instantly share code, notes, and snippets.

@marcesher
Created November 9, 2012 14:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save marcesher/4046012 to your computer and use it in GitHub Desktop.
State Is a Bug : Questions
Joe, thanks for responding.
I'm most interested in what are perhaps pedestrian issues, but they're issues (for me) nonetheless. You mentioned "outsourcing" session management... where can I read more on that?
Take the simple case of: I'm a user on your system. I'm logged in. I'm doing things. The server I'm on disappears while the screen I'm reading is currently loading.
What happens? Do I see an error? Am I sent to a new machine, with all my session state in tact, and the screen I was reading simply reloads?
Or take perhaps a different architecture where a machine isn't brought down until all its users have been successfully moved to other servers. For example, perhaps our configuration is such that we have N instances, and we do a rolling code push to those instances. User A is on Server 5, which has the old code. We need to get that user to Server 2, which has the new code, along with all of his state. Once all users are off of Server 5, the deploy then moves to Server 5 as well and then Server 5 is brought back into commission and accepts new requests.
So: what techniques, processes, and tools support these practices?
Thanks again.
@joesondow
Copy link

Hi Marc. My response got a bit long, so I put it on my blog. http://joesondow.blogspot.com/2012/11/state-is-bug.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment