Optimistic Concurrency Control (OCC)
Explore optimistic concurrency control (OCC) to understand how distributed systems achieve isolation during concurrent transactions. Learn the three key phases of OCC — begin, read and modify, and validate and commit — and discover techniques like version checking and timestamp ordering that help maintain data consistency efficiently without using locks.
Optimistic concurrency control (OCC) is a concurrency control method that was first proposed in 1981 by
In this method, transactions execute in the following three phases:
- Begin
- Read & modify
- Validate & commit/rollback
Begin phase
In this phase, transactions are assigned a unique