In this article we’ll discuss state management. Web applications present specific challenges for state management. This is especially true for Web applications that are deployed in Web farms. There are several different types of state:
· Application state. Application state is used for storing application-wide state for all clients. Using application state affects scalability because it causes server affinity. In a Web scenario, if you modify application state, there is no mechanism to replicate the changes across servers. Therefore, if a subsequent request from the same user goes to another server, the change is not available. You store data in application state by using a key/value pair, as shown in the following sample.
Read the full post