Consensus is agreeing on one value when any machine may crash and the network may lie
Martin Kleppmann · Distributed Systems 6.1: Consensus
The idea
Several machines need to agree on a single value, the next entry in a log, which node is the leader, whether a transaction committed. Any of them may crash, and the network may delay or drop messages so that a live node is indistinguishable from a dead one. Kleppmann's lecture shows that consensus and total order broadcast are the same problem in different clothes, then sets out the system models under which it can be solved at all. The protocols you have heard of, Raft and Paxos, are solutions under particular assumptions, and knowing the assumptions is what lets you say when a system's guarantee holds.
Ask what a consensus protocol assumes about crashes and the network; its guarantee is only as strong as those assumptions.
When it works
Distributed systems interviews, database replication questions, and any design that claims strong consistency across machines.
When it may fail
Consensus is slow and expensive, and many systems deliberately avoid it by accepting weaker guarantees. Knowing when not to need it is as much the skill as knowing how it works.
How to use it
When a design uses a leader, say how the leader is chosen, what happens when it is partitioned from the others, and whether two leaders can exist at once. Those three questions are the consensus problem in interview form.
Where it came from
The source’s claim
Kleppmann shows that consensus and total order broadcast are equivalent problems, then sets out the system models under which consensus can be solved.
What is checked
- Checked against the clip, reviewed 2026-10-16.
- The exact place in the source is located: 3:07 to 10:17.
Connected ideas
Says something similar
In a distributed system every request may arrive twice, so make the second one harmlessDesign every retryable operation so that doing it twice has the same effect as doing it once; the network will test this for you.
Says something similar
An index turns a table scan into a handful of page reads, paid for in write speed and diskAn index buys read speed with write speed and disk; add one for the query you run most and remove the ones you never use.
This idea appears in
The concepts it carries, and how many works in Atlas carry each one.
Put it to work on L3VLUP
More like this
- FrameworkCrises and market historyFilm
A rating is a model output, and the model rests on a correlation assumption
Ask what a rating assumes about defaults happening together before trusting what it says about the pool.
From The Big Short · 2015
- TechniqueValuationVideo located
Terminal value is usually most of the answer, and most of the risk
Check what share of the value is terminal and what multiple the terminal assumptions imply; those two checks catch most broken DCFs.
From Session 9: Terminal Value · Aswath Damodaran (NYU Stern)
- LessonMarketsBook
Traders who agree on nothing else all agree about risk control
The common factor among people who last is not how they pick trades but how they limit what a wrong one costs.
From Market Wizards · Jack D. Schwager