We are developing a Java EE application with Spring. The application will be deployed across multiple web servers with hardware load balancer. Here are my doubts. Please clarify.
- Whether load balancer will route all requests in same session to a single web server?
- If not is there anyway to route the requests of same session to particular web server?
EDIT: Removed spring.
What you’re referring to here are “sticky sessions” and your load balancer should support them. It alllows the load balancer to use the session ID to route all requests for a session to the same server.