Skip to content

Course

Distributed Systems Fundamentals

How clocks, retries, consistency levels, consensus, and deployment windows actually behave across a network — and the production failure modes that only exist because it is one.

13 lessons

Course Q&A

Keep reading

Related articles from the SudoSecurity blog.

Reviews

Enrolled members can rate this course.

No reviews yet.

Time, Retries, and Delivery

What the network and the clock actually promise — timeouts that say nothing, retries that amplify incidents, and duplicates that are guaranteed.

  1. 01Clocks Are Lying to YouWall-clock timestamps cannot order events across machines, because NTP is allowed to move your clock backward.16mOpen
  2. 02A Timeout Is Not an AnswerA timeout tells you a response did not arrive — retry discipline is what decides whether that ambiguity becomes a duplicate charge or a retry storm.15mOpen
  3. 03Idempotency Is a Processing PropertyExactly-once delivery does not exist; exactly-once processing is a dedup key committed in the same transaction as the effect.15mOpen
  4. 04The Queue Promises Delivery, Not Order, Not OnceVisibility timeouts, offset commits, and dead-letter queues are the real queue contract — at least once, possibly out of order, maybe twice to a dead consumer.15mOpen

Consistency in Real Systems

The spectrum between linearizable and eventual, what CAP forces during a partition, and why R + W > N is not the guarantee it is sold as.

  1. 01Consistency Is a Slider, Not a SwitchLinearizable, sequential, causal, and eventual are points on a spectrum — and most real reads sit somewhere between 'just committed' and 'probably replayed'.16mOpen
  2. 02CAP Is a Question About PartitionsCAP does not ask you to pick two of three; it asks what each part of your system does on the day the network splits.14mOpen
  3. 03R + W > N Is an Availability DialQuorum arithmetic promises overlap between read and write sets, but sloppy quorums, hinted handoff, and client-supplied timestamps quietly refund the guarantee.14mOpen
  4. 04There Is No BEGIN Across a Network BoundaryTwo-phase commit blocks on a dead coordinator, sagas compensate instead of rolling back, and the outbox pattern exists because a commit and a publish cannot be atomic.16mOpen

Consensus and Coordination

How Raft reaches agreement, why electing a leader does not stop the old one, and the fencing tokens that close the gap.

  1. 01Consensus Is Not ElectionRaft's real job is getting a cluster to commit log entries in one order despite crashes — election is just how it buys the right to try.16mOpen
  2. 02A Lock Without a Fence Is a SuggestionLeases expire while their holder is frozen mid-write; only a monotonically checked fencing token stops the deposed leader from writing anyway.15mOpen

Failure Modes That Only Exist in Production

Partial failure, metastable cascades, mixed-version fleets, and tail latency — the problems that appear only at scale and under real load.

  1. 01Slow Is More Dangerous Than DownA dependency answering in 30 seconds instead of 30 milliseconds does more damage than one that refuses connections — and your retry policy can keep the outage alive after the cause heals.16mOpen
  2. 02Half Your Fleet Is Always BehindA rolling deploy is a window where N and N−1 coexist, so every contract — schema, wire format, API — must be compatible in both directions.14mOpen
  3. 03You Cannot Grep a Distributed SystemA request spanning forty services needs a propagated trace context, not forty log streams — and users live at p99, where one slow dependency hits most of them.14mOpen