In Chapter 3, Using the APIs, we presented two ways to interact with Infinispan, the Embedded mode and Client-Server mode. The architecture of a software system using Infinispan is not limited to the embedded mode.
You can create a combination of a client-server architectural style to make your system complete. There are some situations in which accessing Infinispan in a client-server mode might make more sense than accessing it via Peer-to-Peer (P2P).
As the name suggests, the client-server mode describes the relationship between the data grid system with one or more servers responsible to control the state of the objects and a client that initiates one or more requests, waits, and processes the replies on receipt.
Consider using the client-server model if you are creating services for other applications to consume or you will be supporting many clients. As you should know by now, Infinispan is written in Java, so in this scenario, we could have clients written in the...