Back to Learning Path
Why Consensus?
Consensus is the mechanism by which a group of independent participants in a network agree on a single source of truth, even if some of them fail or act maliciously.
The "Quirky" Analogy
"Imagine four generals surrounding a city. They must all attack at exactly 9:00 AM to win. If even one general retreats or sends a fake message to the others, the mission fails. How do they agree on the time if one of the generals might be a traitor sending conflicting orders?"
Interactive Concept
Decree
Siege_City
09:00
Quorum
0%
Agreement
Command Logs
> Standby for command...
Palace
💂♂️
Gen_N
💂♀️
Gen_E
💂♂️
Gen_S
💂♀️
Gen_W
The coordination problem
Nodes must agree on one truth without a leader. Can they win if some nodes lie?
Key Takeaways
- 1Distributed systems have no central boss.
- 2Nodes must agree on the state (who owns what coin).
- 3The system must survive failures and attacks (Byzantine Faults).
Deep Dive
In a centralized system, the bank's database is the golden truth. In a decentralized blockchain, thousands of computers have their own copy. Consensus ensures everyone eventually agrees on the same copy.