Eventual Consistency
- Categories
- Systems
A weak consistency model in which replicas may temporarily disagree but converge to the same value once writes stop arriving. Reads can return stale data, and without extra guarantees a client may not even read its own writes.
Why it Matters
Dropping the requirement for an always-current single view buys availability, lower latency, and tolerance of network partitions. Most systems can tolerate brief staleness, so eventual consistency is often the right default, provided its anomalies are understood rather than discovered as bugs.
Signals
- "The value will show up shortly."
- A read just after a write returning the old value.
- Replicas that reconcile in the background.
Benefits
High availability and low latency; the system keeps serving even during a partition.
Risks
Anomalies, reading stale data, not reading your own writes, seeing effects out of causal order, mistaken for defects; conflict resolution that silently loses writes.
Tensions
Weaker guarantees mean more availability and speed but push the burden of handling staleness and conflicts onto the application. Stronger guarantees like read-your-writes and monotonic reads recover some safety at a cost.
Examples
A follower replica serving a slightly stale read; two users editing the same document offline and merging on reconnect.