Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Infinispan data grid platform definitive guide

You're reading from  Infinispan data grid platform definitive guide

Product type Book
Published in May 2015
Publisher
ISBN-13 9781782169970
Pages 464 pages
Edition 1st Edition
Languages

Table of Contents (20) Chapters

Infinispan Data Grid Platform Definitive Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started 2. Barriers to Scaling Data 3. Using the APIs 4. Infinispan Topologies 5. Data Access Patterns 6. Case Study – The TicketMonster Application 7. Understanding Transactions and Concurrency 8. Managing and Monitoring Infinispan 9. Server Modules 10. Getting Started with Hibernate OGM 11. An Introduction to JGroups 12. Advanced Topics Index

Reading and writing through cache


In this pattern, application treats the cache as the main data store for read and write operations. The cache is responsible for reading and writing to an underlying resource.

Read-Through looks like the structure of the cache-aside pattern for read operations, the difference is on how the system behaves in the data changes. After retrieving the data from a data store and when data is not found in the cache, the cache updates itself and returns the data to the calling application.

In the Write-Through mode, if the client change the cache content by invoking a write operation, for instance, using the put() or putAll() methods, Infinispan will not return the call to the client until Infinispan finishes updating the underlying cache store. This means that the client thread will be blocked until all updates are written to the cache store, which can result in a very expensive operation.

A graphical representation of this pattern is illustrated in the following...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}