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

Summary


During this chapter, we got an overview about the several cache topologies Infinispan provides.

You can use the replication mode to provide fast access to the cache data, because clients will be able to read the information quickly, with the data available on each node of the grid. However, for each data manipulation, the updated cache will send its new state to the other members of the cluster, which can be an expensive operation and add some overhead to your network.

In invalidation mode, the updated cache will send a message to the other members of the cluster stating that a particular piece of data has been modified. After receiving this message, the other nodes will remove this data from their local cache.

If you decide for a local-mode cache, the updated cache is not aware there are other nodes running in the cluster, and will not attempt to exchange data with them. However, a local-mode cache is a drop-in replacement for a Java Map, with the added values of supporting expiration...