LEARNING PATH · Systems & Backend

Distributed Systems Deep Dive

For engineers who want consensus, replication and consistency in their bones.

Advanced ~6h 45m18 lessons20 steps

The hard core of distributed systems, threaded from the CAP theorem through Raft, quorums, vector clocks and CRDTs to real designs. Each protocol is paired with a simulator to drive it and a challenge to implement one step of it yourself.

  • Reason precisely about consensus, replication and consistency
  • Implement Raft election, vector clocks and CRDT merges
  • Tune quorums and predict the consistency/availability they buy
  • Recognize the failure modes before they page you
0 / 18 done · 0%
  1. HandbookNext up

    CAP Theorem & Consistency Models

    The impossibility result that frames everything.

  2. Handbook

    CP vs AP Databases

    What CAP means when you actually pick a database.

  3. Handbook

    Partitioning, Sharding & Replication

    Split data, replicate it, keep it consistent.

  4. Handbook

    Consensus, Transactions & Coordination

    Getting nodes to agree — the core problem.

  5. Handbook

    Raft vs Paxos

    The two consensus protocols, compared.

  6. Lab

    Raft: The Election

    Drive a Raft cluster through elections and failures.

  7. Challenge

    Raft Leader Election (Majority)

    Implement one step of the Raft election.

  8. Lab

    The Quorum Dial

    Tune N/R/W and watch consistency vs availability move.

  9. ToolTool · optional

    Quorum (N/R/W) Explorer

    Compute quorum overlap for any N/R/W.

  10. Handbook

    Concurrency, Locks & Isolation Levels

    Locks, races, and the cost of coordination.

  11. Challenge

    Vector Clock Merge

    Order events without a global clock.

  12. Lab

    Vector Clocks: Who Caused What

    See causality captured by vector clocks.

  13. Challenge

    CRDT: Grow-Only Counter

    Merge conflicting replicas that always converge.

  14. Lab

    CRDT Merge: No Conflict

    Watch two divergent replicas reconcile, no coordinator.

  15. Lab

    The Rumor Mill: Gossip

    Spread state epidemically — anti-entropy gossip.

  16. Challenge

    Consistent Hashing Ring

    Implement the ring that shards and rebalances.

  17. ToolTool · optional

    Consistent Hashing Visualizer

    Visualize rebalancing when a node joins or leaves.

  18. System Design

    Design a Distributed Lock

    A lock that survives node death.

  19. System Design

    Design an ID Generator

    Unique IDs without coordination.

  20. System Design

    Design a Key-Value Store

    Assemble it all into a replicated KV store.

← All learning paths