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

Transaction recovery


Although XA transactions possess the ACID characteristics in order to guarantee the atomicity of operations, our system must be able to handle failures in order to guarantee the consistency of customer data, which can occur at any time due to unexpected server crash or network loss.

To guarantee transaction consistency, Infinispan supports transaction recovery, a well known feature of XA transactions, present in the specification published by the Open Group.

Let's suppose a situation where a customer buys from Ticket Monster, a ticket for a specific show, but we have to save the ticket in two different nodes in Infinispan. The Transaction Manager will be responsible for communicating with both resources that are in use.

When the transaction manager commits, in phase one, the transaction manager asks both resources to prepare the commit. Then both resources verifies they can persist the data and each resource sends an acknowledgement to the coordinator. In the second phase...

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}