Load Balancing - Handling Session between multiple servers.
posted 7 years ago
We have developed an internet based application for our Client and have used Tomcat to test it.
We have supplied the client with the *.war file, and it working fine.
The Client has come back to us saying that the application is supposed to be deploy into 2 servers and then there is another server that load balances between the 2 servers. Since we have used sessions ids in the application it wont work in the multi-server environment.
As per my understanding using Server affinity, the load balancer would always send request from the client to the same server that generated the session id for this client and hence I dont need to do any changes.
I know that there will be flip side to this in case the one of the load balancing server dies, but I am not aware of any other way of handling this problem.
Please provide your view and insight to a possible solution to this problem.
FYI..the client is using BIG-IP as the load balancer.
"Things come to those who wait, but only the things left by those who hustle."