LOAD-BEARINGfree
Tier 610 lessons, about 138 minutes of reading · checkpoint at the top

Distributed Systems

More than one machine holding state. Consistency, consensus, queues, and transactions that span services.

Units on this floor

  1. CAP is a bumper sticker. Use PACELC.6.01 · 13 min

    Every engineer can recite the CAP theorem: "Consistency, Availability, Partition tolerance — pick two." It's the most quoted result in distributed systems, and quoted that way, it's nearly…

  2. Consistency models, ranked6.02 · 13 min

    "Eventually consistent" is doing an enormous amount of work in most architecture conversations — it covers everything from "stale for 2 milliseconds" to "stale for an hour, updates…

  3. Consensus and leader election6.03 · 13 min

    Here's the problem underneath half of distributed systems: several machines must agree on one value — who is the leader, what's the next log entry — while some of them are crashed and the…

  4. Queues, logs and delivery guarantees6.04 · 14 min

    Asynchrony — "take the request now, do the work in a moment" — is the main tool for decoupling services and surviving traffic bursts. Two infrastructure shapes provide it, they get…

  5. Transactions across services: saga and outbox6.05 · 14 min

    The setup: order service, payment service, inventory service — each properly owning its own database. An order requires all three to change together. And here's the wall: there is no…

  6. Clocks lie and processes freeze6.06 · 14 min

    Everything in this tier so far has been about machines disagreeing. This lesson is about why they disagree, and it comes down to two facts that sound like excuses until they cost you a…

  7. Idempotency as an end-to-end property6.07 · 14 min

    Tier 1 gave you the idempotency key as an API design detail. Lesson 6.04 said every consumer must be idempotent. Both are true and both are fragments, because idempotency is not a feature…

  8. Durable execution: workflows that outlive the process6.08 · 14 min

    Lesson 6.05 gave you the saga: a business process spread across services, each step with a compensating action, no distributed rollback. It described the pattern honestly and then quietly…

  9. Vector clocks, and telling concurrent from newer6.09 · 15 min

    Lesson 6.06 established that wall clocks disagree and gave you logical clocks as the alternative: a counter incremented on every event, raised to the maximum seen whenever a message…

  10. Gossip: how a cluster knows who is alive6.10 · 14 min

    Lesson 6.03 gave you consensus: a majority agreeing on a single value, correct and expensive. Not every fact in a cluster deserves that. Membership — which nodes exist, which are reachable…