Maintaining the state in load balanced server?
What are the ways to mainatain the state in load balanced servers?
I am using one application which is hosted in tw开发者_开发百科o different servers. Now I want to check a record about whether it has already been taken by somebody to edit or not.
How to maintain a state inorder to accomplish my above requirement.
If you need to share session state when using ASP.NET then you either need to use a StateServer or SqlServer to store session state.
The StateServer is a service built into Windows that takes serialized objects and allows the servers to query the data out. The Sql operation does a similar thing, but stores them in a database rather than in memory somewhere.
More information can be found on MSDN
精彩评论