Imagine two friends chatting on a social network. Alice posts "I got the job!" and then adds "Starting Monday." Bob, on a distant data center, should always see Alice's first post before the second — cause must precede effect. Yet Alice can also be writing at the exact same moment that Carol posts "Congrats!" on an unrelated topic, and those two updates have no causal link at all.
Causal consistency is the formal rule that captures this intuition: if write causally influences write (because the author of had already seen ), then every node in the system must deliver before . Writes that are causally independent — concurrent, in the language of distributed systems — are free to arrive in any order.
This makes causal consistency the strongest consistency model that a distributed system can guarantee while remaining always available and partition-tolerant — the sweet spot that stronger models like linearizability must sacrifice during network failures. Lamport's seminal 1978 paper introduced the happens-before relation and the vector clocks that track it, giving us the machinery to enforce causality without a global clock.
Comments
Loading comments...