Session persistence considerations

Unless you have only a single application server or your application is completely stateless, maintaining state between HTTP client requests is also a factor in determining your topology. Use of session information, however, presents a fine line between convenience for the developer and performance and scalability of the system. It is impractical to eliminate session data altogether, but try to minimize the amount of session data passed. Persistence mechanisms decrease the capacity of the overall system, or incur additional costs to increase the capacity or even the number of servers. Therefore, when designing your WebSphere environment, take session needs into account as early as possible.

If the application maintains state between HTTP requests and you use vertical or horizontal scaling, then consider using an appropriate strategy for session management. Each application server runs in its own JVM process.

To allow a failover from one application server to another without losing state, share the session data between multiple processes.

There are two methods of achieving this in WAS Network Deployment: