System Design
18. Advanced Distributed ArchitectureAnimated
Quorum-Based Systems
Systems that rely on majority agreement.
The idea
Decisions need a majority, so any two majorities overlap.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- latest
- stale
5 replicas each hold the value v1. We choose W=3 (acks needed to write) and R=3 (replies needed to read).
- N:
- 5
- W:
- 3
- R:
- 3
1/4
Change N, W and R to see when reads can be stale.
Step by step
- 1Pick the quorum size
- 2Send operations to nodes
- 3Wait for a majority
- 4Proceed
Where it is used
Consensus and replication.
Watch out for
Availability falls if a majority is lost.