I would like to know, How HttpSession works on Load balancer? How Load balancer knows for the particular request need to send the respective Web Server?
Here's what I would guess:
1. load-balancer works based on user's region like county, state.
2. load-balancer works based on user IP address range
3. load-balancer works based on Cookies management.
If the web application requires that a user stay connected to the same server, then the load balancer has to understand the session management method of the web application. For example, the load balancer can inject its own cookie in to the session that says which backend server to connect to. The load balancer can also read a cookie placed by the web app. If that's not an option, then the load balancer can maintain an IP address table.