SRE & Observability (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What is Distributed Consensus and how does Raft maintain quorum?
senior LevelSystem Design
In Simple Words: Used by etcd, Kubernetes, and Consul to maintain consistent cluster state:
- Guarantees that a cluster can continue operating correctly as long as a strict majority ($\lfloor N / 2 \rfloor + 1$) of nodes are healthy.
- Elects a single Leader. All writes go to the Leader, which replicates entries to followers and commits only after majority acknowledgment.