November 2018
Beginner to intermediate
260 pages
6h 12m
English
Transaction concurrency and isolation are two important aspects of Ignite transactions. In this section, we'll look at concurrency mode and isolation levels.
Concurrency mode determines when to acquire the lock on the nodes. Apache Ignite supports two concurrency modes for transactions: TransactionConcurrency.OPTIMISTIC and TransactionConcurrency.PESSIMISTIC.
In OPTIMISTIC mode, the lock is acquired at the transaction preparation phase. The transaction coordinator sends a prepare message to the primary node. The primary node acquires the lock and sends a prepare message to all other nodes that are participating in the transaction; participating nodes try to acquire locks. Once all participating nodes ...
Read now
Unlock full access