jaks
jaks

Reputation: 4597

Session management with load balancer in Java EE

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.

  1. Whether load balancer will route all requests in same session to a single web server?
  2. If not is there anyway to route the requests of same session to particular web server?

EDIT: Removed spring.

Upvotes: 1

Views: 1207

Answers (1)

Nick Wilson
Nick Wilson

Reputation: 4989

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.

Upvotes: 3

Related Questions