Skip to content

Course

Distributed Systems in Practice

The distributed-systems theory that actually matters in production: CAP and PACELC, consensus, vector clocks, idempotency, retries, and why exactly-once is mostly a comforting myth.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

Failure, Time, and Consistency

Build the mental model: partial failure, network uncertainty, CAP/PACELC, and why ordering events is harder than it looks.

  1. 01Partial Failure Is the Default, Not the Edge CaseLearn why distributed systems fail in halves and thirds — slow networks, ambiguous timeouts, split brain, and dependencies that are up but wrong.24mOpen
  2. 02CAP and PACELC Without the Conference-Slide NonsenseUse CAP correctly during partitions and PACELC everywhere else, with concrete examples from PostgreSQL, etcd, Cassandra, DNS, and object storage.26mOpen
  3. 03Time, Ordering, and Vector ClocksUnderstand why wall clocks cannot order distributed events, how vector clocks capture causality, and when version vectors surface conflicts in Riak-style systems.27mOpen

Agreement and Replication

Consensus, quorums, leaders, leases, replication lag, conflict resolution, and the tradeoffs hidden inside familiar systems.

  1. 01Consensus Basics Through the Lens of RaftLearn what consensus actually guarantees, how Raft elects leaders and commits entries, and why quorum loss is a correctness feature rather than a bug.28mPremium
  2. 02Leader Replication, Leases, and Fencing TokensLearn why leader-based replication is operationally simple but dangerous during failover, and how fencing prevents zombie leaders from corrupting shared state.26mPremium
  3. 03Quorums, Replication Lag, and Conflict ResolutionUse quorum arithmetic to reason about staleness and availability, then choose conflict-resolution strategies that preserve user intent instead of merely picking a winner.25mPremium

Correctness in Production

Turn theory into operating rules with idempotency, bounded retries, deduplication, transactional outboxes, and honest delivery semantics.

  1. 01Idempotency Is a Protocol, Not a Retry ButtonDesign operations that can be repeated safely using idempotency keys, natural keys, state machines, and stored responses instead of hoping clients retry politely.27mPremium
  2. 02Retries, Timeouts, Deadlines, and BackpressureTurn retry loops into controlled recovery behavior with deadlines, jitter, circuit breakers, queue limits, and cancellation that propagates across services.24mPremium
  3. 03Exactly-Once Is a Boundary MythUnderstand what exactly-once can mean inside one bounded system, why end-to-end exactly-once is impossible across independent failures, and how outboxes plus consumers create effectively-once behavior.29mPremium