This topic discusses common topologies for VMware Tanzu GemFire HTTP Session Management.
Decide which topology is best for your usage. The configuration process is slightly different for each topology.
By default, a peer-to-peer configuration creates a replicated region across all servers. By default, a client/server configuration creates a partitioned region across all servers.
In a peer-to-peer configuration, each instance within an application server contains its own cache. Each instance communicates with the locator and with other instances as peers. By default, data is replicated. A peer-to-peer configuration is useful when multiple systems want fast access to all session data. This configuration is also the simplest one to set up and does not require any external processes.
In a client/server configuration, the Tomcat instance operates as a Tanzu GemFire client, which must communicate with one or more Tanzu GemFire servers to acquire session data. The client maintains its own local cache and will communicate with the server to satisfy cache misses. A client/server configuration is useful when you want to separate the application server instance from the cached session data. In this configuration, you can reduce the memory consumption of the application server because session data is stored in separate Tanzu GemFire server processes.