Home Knowledge Base Distributed Consensus Protocols

Distributed Consensus Protocols are the algorithms that enable a group of distributed nodes to agree on a single value or sequence of operations despite node failures and network partitions — solving the fundamental problem of maintaining consistency in distributed systems, with Paxos and Raft being the most widely deployed protocols that underpin every distributed database, configuration service, and replicated state machine in production today.

The Consensus Problem

Paxos (Lamport, 1989)

Raft (Ongaro & Ousterhout, 2014)

Raft vs. Paxos

AspectPaxosRaft
UnderstandabilityNotoriously complexDesigned for clarity
LeaderImplicit (Multi-Paxos)Explicit, strong leader
Log orderingFlexible (gaps allowed)Strictly sequential
ImplementationMany variants, trickyStraightforward
PerformanceSimilarSimilar

Production Implementations

SystemProtocolUse Case
etcdRaftKubernetes configuration, service discovery
ZooKeeperZAB (Paxos-like)Hadoop coordination, distributed locking
CockroachDBRaftDistributed SQL database
Google SpannerPaxosGlobally distributed database
TiKVRaftDistributed KV store (TiDB)
ConsulRaftService mesh, KV store

Performance Considerations

Distributed consensus protocols are the foundational primitive that makes distributed systems reliable — every distributed database, coordination service, and replicated state machine depends on consensus to maintain consistency, making Raft and Paxos among the most important and widely deployed algorithms in all of computer science.

distributed consensus protocolraft consensuspaxos consensusdistributed agreementconsensus algorithm

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.