Distributed Consensus
When you actually need consensus, the algorithms (Paxos / Raft / Zab), and the CAP framing.
Overview
The protocol problem at the heart of reliability
Distributed consensus asks how N machines agree on a value when some may fail or be partitioned. It is not a footnote; it is the foundation under every piece of state that must stay consistent across machines.
The usual shape is a group with one leader and several followers. A client proposes a value to the leader, the leader passes it to the followers, and the value is committed once a majority of them acknowledge it. That majority is called a quorum.
Key concepts
- Distributed consensus
- Paxos
- Raft
- FLP impossibility
- Quorum
- CAP — partitions are inevitable
Interview questions
- When do you actually need distributed consensus?
- Why is heartbeat-based leader election dangerous?
- How do you decide between 3-replica and 5-replica consensus?
Sign up free to read the full topic
More SRE topics
Start free on Cariara · Coding problems · System design studio