Thursday, March 20, 2008

Session state in a webfarm

In a web farm environment, one concern is how to keep the session state.

we may wire up a session state-server or maintain session in a database.

The easiest solution is implementing session affinity. In the switch, where the load balancing is implemented, configure the filter with parameters of both ip address and session id. As such, any request from a specific ip pertaining a given session id would be directed to a server where the request consistency is guaranteed.

No comments: