Concurrency Control in Spanner
Learn how concurrency control is done in Spanner.
In this lesson, we’ll learn how TrueTime guarantees correctness properties around
1.
2. Reads from the past that do not block any ongoing transaction
3. Read-only transactions that do not require any lock
These features make it possible to ensure that at any time, t
, the full database audit read will see the exact results of all transactions that are committed as of t
.
We will use Paxos write and Spanner clients write to differentiate between both writes.
Timestamp management
The implementation of Spanner supports reads from a snapshot and read-only and read-write transactions. The system implements the read-write transactions as standalone writes, whereas the read-only transactions are implemented as non-snapshot standalone reads. The following table shows the operation types Spanner supports and their respective concurrency control.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.