Leader election: exactly one in charge
Why split-brain happens and timeouts cannot prevent it, fencing tokens checked where the write lands, consensus and Raft elections and terms, ZooKeeper and etcd election recipes, database leases, quorum re-confirmation, Kafka epochs, Redis Sentinel and Kubernetes leases, clock mistakes, and a cache-invalidation interview.
01 · Previously
W05 · DAY 05 · Leader Election and Coordination
Some things can't be merged.
Previously: conflict resolution
Previously, on Day 4, you let concurrent writes happen, and merged them: vector clocks to detect conflicts, CRDTs to resolve them automatically.
0:00 / 18:47