Session Replication Techniques
Session replication between multiple cluster nodes can be done in many ways. The best approach may depend on the type of application. However, there are a few common methods used by application server vendors.
- PersistenceManager + FileStore : Using session persistence, and saving the session to a shared file system (PersistenceManager + FileStore). This will allow all machines in a cluster to be able to access the persisted session from the shared file system.
- PersistenceManager + Shared Database : Using session persistence, and saving the session to a shared database (PersistenceManager + JDBCStore) - This will allow all machines in a cluster to be able to access the persisted session from the shared database system.
- In-memory-replication : Using in-memory-replication, This will create an in-memory copy of the session in all the cluster nodes.