Distributed systems with (almost) no consensus
summary
Argues that many distributed state problems avoid heavy consensus by using CRDT-based sets instead of Paxos/Raft, implemented in Weave for service discovery and IP allocation; etcd in strong-consistency mode drops throughput by roughly a factor of 20 in the presenter’s benchmark versus eventual consistency. Builds a gossiped, merge-by-union system that tolerates laptop disconnects and rebalances IP ranges, and uses a single-use Paxos bootstrap (200 lines of Go) only at startup to avoid availability and performance costs.
AI-written summary · about
chapters (21)
- 0:00Introduction to distributed systems
- 1:03Why distributed systems matter
- 2:07Eight fallacies of distributed computing
- 3:11Consensus algorithms and Paxos
- 5:17Cost of consensus algorithms
- 6:41Benchmarking etcd performance
- 8:29Need for alternative approaches
- 10:15CRDTs as a solution
- 12:01How CRDTs work
- 13:26CRDTs are simpler than they seem
- 13:47CRDTs in DNS implementation
- 14:51Handling deletions in CRDTs
- 15:33IP allocation with CRDTs
- 16:57Gossip protocols for updates
- 18:44Gossip routing challenges
- 19:04Tombstone management in CRDTs
- 19:47Bootstrapping with Paxos
- 20:30Three rules of thumb for distributed systems
- 21:13Weave product overview
- 21:43Q&A: Paxos vs Raft
- 23:12Q&A: UDP and broadcasting
