Monday, October 20

Stick Session

http://tamanmohamed.blogspot.ie/2011/07/what-is-sticky-session.html?m=1

  •  If you send a request and that request reaches a particular server and if you send the request again, it has go to the same server (if the session is same for that request).. that is sticky session
  •  Load balancer, the request will be directed to the server that served the first request (and has the session).Sticky session means to route the requests of particular session to the same physical machine who served the first request for that session.

  • Arun Karthik Sticky session :

  • As you know , when you access a site , you will get a session ID or JsessionID (created by managed server).Consider there are 2 managed server (MS1 , MS2) configured and you are accessing the site.

    1) For instance the request hits MS1 , so the seesion ID will created by MS1 and all your session details will be tracked by MS1 server until you close the session.So , all your session information will be maintained by MS1 and all the consequitive request from the same session will be served by MS1 server.This behaviour is called as sticky session.

    Session Replication : 

    Consider , suppose if MS1 instance goes down unexpectedly , and if MS1 and MS2 are in cluster , all the session information maintained by MS1 will be replicated to MS2. So, the users information is keep on tracked and user's can enjoy uninterrupted service.This is called session replication.

No comments:

Post a Comment