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

Locking and concurrency control


As we have seen, we can have one or more clients participating on a transaction that issues read and write operations to a cache. When transactions execute concurrently on the same cache entry, the interleaved execution of their reads and writes by the cache can produce undesirable results. On the other hand, a good cache solution must guarantee consistency of data while allowing multiple transactions to read/write data concurrently.

Concurrency control is an activity that is important to avoid unexpected results; its primary goal is to ensure that all transactions will have the same effect as a serial one.

Traditionally, the problem of concurrency is solved providing transaction isolation, keeping a single version of the data and locking other requests to manage concurrency.

Locking is essential to avoid change collisions resulting from simultaneous updates to the same cache entry by two or more concurrent users.

If locking is not available and several users...

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}