Anatomy of an Infinispan clustered cache

There are two ways you can interact with Infinispan. The first use is in embedded mode, which is the easiest way to start with and to figure things out. The embedded mode initiates an Infinispan instance within the same JVM as the application.

The other way is the client/server mode, where you have an Infinispan data grid instance running in a separated process. Since it is remote, you and multiple applications are able to connect through client connectors.

The embedded (P2P) mode

In this mode, Infinispan runs embedded in the same JVM as the application logic, where each JVM that is part of the cluster will run an individual Infinispan instance.

This mode is perfect if you are running your application in a ...

Get Infinispan Data Grid Platform Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.