What is Consensus
-
Consensus is a process of agreement between distrusting nodes on a final
state of data.
Raft vs Paxos
| Paxos | Raft | |
|---|---|---|
| understanding | Hard | Easy |
| robust | More | Less |
| Consensus Mechanism | Quorum-based, no fixed leader | Leader-based log replication |
| Roles | Proposers, Acceptors, Learners | Leader, Followers, Candidates |
| Use Cases |
Advanced fault tolerance. Applications with higher reliability needs (e.g., distributed locking, consensus in high-load DBs). |
Simpler implementation and maintenance. Logging and replicated state machines |