Why agreeing across flaky networks is so hard
Distributed locks, Kubernetes (`etcd`), and database failover coordinators all need **multiple servers to agree on a single truth**—like *"who is the active Leader right now?"*
Over a real network, you cannot tell the difference between a **crashed server** and a **slow network partition**. Without a formal consensus protocol, two nodes can both claim leadership and corrupt state.
watch:Never try to invent ad-hoc leader election with simple heartbeats and timers—proven consensus protocols like Raft and Paxos solve subtle edge cases.