From: http://www.west-wind.com/presentations/LoadBalancing/LoadBalancing.htm
I always wanted to find a complete document about NLB and Webserver farm. Today I finally found a good article about NLB and web server farm, which should be noted when using webserver farm, how does webserver balance load and configure NLB on Windows2000 Advanced Server.
Unfortunately, this articleArticleIt appears earlier. It is about ASP's webserver farm. In the ASP era, session and application objects cannot be shared between machines on webfarm. Fortunately, Asp. NET provides the sessionstateservices service. We can save a lot of things. Otherwise, we will use the central database to save the session. However, it is still troublesome to synchronize the Asp.net cache on webfarm.
However, this article also proposes a solution to the session issue:Single affinityTo lock a specific access user on a webserver, so that there is no session sharing problem.
But who can tell me that method is better? I personally think it is better to use the sesssionstateservice service of Asp.net. Otherwise, what else does Asp.net need statesevice?