Book Image

Infinispan data grid platform definitive guide

Book Image

Infinispan data grid platform definitive guide

Overview of this book

Table of Contents (20 chapters)
Infinispan Data Grid Platform Definitive Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 large cluster, it lets your Infinispan data grid scale linearly with growth, since you can increase your grid by adding new node instances to your cluster, where each of these servers add their Virtual Memory (Heap) to form a data grid, which makes...