Distributed Systems from Zero

Clocks, replication, consensus and transactions: what a cluster can and cannot promise when nodes crash and networks split.

13 LESSONS~210 MIN
START WITH FAILURE MODELS & TIMEOUTS ▸ DRILL MODE ⏱

BEFORE YOU START

This path assumes you can already do the following. Each line says where ATLAS teaches it.

  1. 01 FAILURE MODELS & TIMEOUTS You cannot tell a dead node from a slow one L114 MIN
  2. 02 VECTOR CLOCKS Causal ordering without a global clock L215 MIN
  3. 03 GOSSIP PROTOCOL Epidemic dissemination in O(log N) rounds L214 MIN
  4. 04 Replication Lag You wrote it, but the replica hasn't heard yet L214 MIN
  5. 05 SPLIT BRAIN Two leaders, one disaster L215 MIN
  6. 06 RAFT Leader election by majority vote L320 MIN
  7. 07 PAXOS Consensus in two phases L320 MIN
  8. 08 TWO-PHASE COMMIT All or nothing, but the coordinator can block everyone L215 MIN
  9. 09 CAP THEOREM Pick two (but you must pick P) L215 MIN
  10. 10 LEASES & FENCING TOKENS A lock the holder is sure it still has L215 MIN
  11. 11 PACELC & CONSISTENCY MODELS Even with no partition, you pay latency for consistency L215 MIN
  12. 12 IDEMPOTENCY & EXACTLY-ONCE At-least-once delivery plus an idempotent handler is as good as it gets L215 MIN
  13. 13 CAPSTONE: REPLICATED KV UNDER PARTITION Everything in this path, in one three-node store L320 MIN
COMING TO THIS PATH