views:

412

answers:

2

If you were an asynchronous javascript call in an Asp.Net MVC environment, and you had to work with a round-robin style of load balancer, would you be able to find your way home?

edit: adding clarification ..using in-memory session state.

+3  A: 

I'd configure my load balancer with stickey sessions to avoid this problem.

With sticky sessions, you'll be directed to the same server over and over again during the session.

Michael Haren
+1  A: 

If your application is stateless, it shouldn't matter. Whether a standard HTTP request or Ajax based request to your server, if your application does not rely on server side state (such as a session), then it shouldn't matter if you hit different servers on subsequent requests.

Pete