load-balancingsticky-session

Sticky sessions with Load Balancer


It would be a great help if you can clarify on this please.

When am using a load balancer and I bind a server with a client with say either appsession or any other means. However if that server goes down then the load balancer redirects the client to another server and while doing so, the whole session is lost. So do i have to write my application in such a way that it stores session data externally so that it can be shared?

So how good is using a load balancer when a transaction fails halfway because the server goes unresponsive?

Please let me know, thanks.


Solution

  • There is a difference between the 2 concepts: session stickiness and session replication.