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

Transactional models


A transactional cache in Infinispan supports two different transactional models, optimistic and pessimistic.

The optimistic model refers to an approach in which transactions are allowed to proceed, with conflicts resolved as late as possible, deferring lock acquisitions for the transaction, in order to prepare time.. The entry will not be immediately locked when it is accessed by a transaction, which means that the cache entries will be available to other transactions for concurrent access, opening up the possibility of conflicts.

At commit time, when the entry is about to be updated in the grid, Infinispan will compare the version of the current object to the version that was initially saved at the moment the entry was first requested in the transaction. If both versions differ from each other, Infinispan will consider that a conflict exists, and will mark the transaction for rollback. This avoids deadlocks, optimizes the lock acquisition time, and increases throughput...

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}