System Design
Advanced
Pro
Distributed Transactions, Consensus & Coordination
2PC, sagas, Raft, quorums, distributed locks and consistency models — and when to avoid all of them
30 min read
6 views
Master why ACID breaks across shards, how two-phase commit and sagas coordinate multi-service writes, how Raft elects leaders and replicates logs safely, why lease-based locks need fencing tokens, and how linearizability differs from serializability.