SysDesignAtlas

Distributed Systems

Consensus, replication, time, and failure — plus how you convince yourself any of it is correct.

HLDHard12 min

Consensus — Raft & Paxos

How a group of unreliable machines agrees on one value, Raft explained well enough to whiteboard, and why you should almost never implement it yourself.

HLDMedium10 min

Quorums

Why R + W > N works, what it does and does not guarantee, sloppy quorums, and the anti-entropy machinery that keeps leaderless replicas converging.

HLDMedium10 min

Idempotency & Delivery Semantics

Why duplicates are guaranteed, why "exactly-once delivery" doesn't exist, and the concrete patterns that make repeated operations safe.

HLDHard10 min

Distributed Transactions & Sagas

Why 2PC blocks, how sagas trade atomicity for availability, designing compensating actions, and the honest answer — avoid needing one.

HLDHard9 min

Time, Clocks & Ordering

Why wall-clock timestamps lie, Lamport and vector clocks, hybrid logical clocks, and how TrueTime buys strong consistency by waiting out uncertainty.

HLDMedium10 min

Leader Election

When you need a leader, how election works, split brain and fencing, and the designs that avoid needing a single leader in the first place.

HLDHard10 min

CRDTs — Conflict-Free Replicated Data Types

Data structures that merge automatically regardless of order, the maths that makes it work, the practical types, and their real costs.

HLDMedium10 min

Backpressure, Load Shedding & Circuit Breakers

How systems collapse under overload, why accepting every request is the wrong instinct, and the three mechanisms that keep degradation graceful.

HLDMedium9 min

Gossip Protocols & Failure Detection

How thousands of nodes agree on who is alive without a coordinator, epidemic dissemination, and why suspicion beats a binary alive/dead verdict.

HLDHard12 min

Multi-Region Architecture

Active-passive vs active-active, data residency, the latency floor you can't optimize away, and cell-based architecture for bounding blast radius.

HLDHard11 min

How You Know It's Correct

Model checking, Jepsen, and deterministic simulation — the three techniques that find distributed bugs tests cannot, and why "we tested it" is not an answer.

HLDHard11 min

Metastable Failures

The outages that don't end when their cause does — how retries, cold caches and backlogs create feedback loops that hold a healthy system down, and the designs that let it recover on its own.

HLDHard10 min

Cells & Shuffle Sharding

Limiting how many customers one failure can reach — splitting a service into independent cells, giving each customer a random handful of workers, and why "blast radius" is a number you can design.