Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Eventual consistency

Согласованность в конечном счёте

Copies of the same data may disagree for a while. If updates stop, the system guarantees that the copies will eventually agree.

What the guarantee means

A distributed system often stores several copies of the same data. With eventual consistency, two copies can return different answers to the same question at the same time. The promise is about what happens once writes stop: as replicas exchange and process their outstanding updates, they converge on the same state. The model sets no deadline for convergence and does not tell a client how stale any particular read is.

How replicas catch up

In a leader-based database, the leader can acknowledge a write before followers apply it. The followers catch up by replaying a change log. If a follower goes offline, it needs a way to recover the changes it missed, such as replaying the log from its last saved position or restoring a newer snapshot. Delivery alone isn't enough in a system that accepts writes at multiple replicas. If two replicas accept different values for the same field, they need a common ordering or merge rule; otherwise, each replica might keep whichever update arrived last locally.

Example: a product goes live

A seller publishes a product. The catalog database commits the change, and the seller's dashboard reads from that database and shows the item as published. A shopper searching right away may see no result because the search index hasn't processed the change. Once indexing catches up, the product appears. The two paths have different freshness requirements: the seller needs confirmation that the write succeeded, while shoppers can usually tolerate a brief delay in discovery.

Where stale reads are acceptable

Search results, activity feeds, and analytics dashboards often tolerate stale data. The inventory check at checkout is different: if two buyers each see one item left, both might try to buy it. Let search show an approximate stock status, but have checkout atomically check and reserve the item in the authoritative inventory store. Decide which operations need a stronger guarantee rather than assigning one consistency model to the whole application.

Common interview traps

Eventual consistency does not imply read-your-writes or monotonic reads. A client can miss its own update, and it can see a value revert by reading from a more lagged replica on the next request. It isn't a synonym for CAP availability either: the model says what happens to the data over time, not whether every request succeeds during a network partition. In a system design interview, name the read path that may lag, explain how it recovers from missed updates, and say how you would detect a growing delay, such as tracking the age of the oldest unapplied change.