Skip to content
IT glossary
ArchitectureUpdated December 3, 2026

Data consistency

Консистентность данных

Data consistency describes whether data obeys the system’s rules and what clients see when they read it. Strong consistency is a specific guarantee: a read cannot return a version older than a write that finished before the read began.

Also known as: strong consistency, строгая согласованность

Two meanings of consistency

Inside a database, consistency can mean that stored data follows declared rules: an order line cannot reference a product that does not exist, for example. In distributed system design, the question is usually different: if a write succeeds and the next request reaches another replica, what is that request allowed to see? A system can enforce database constraints and still serve stale reads from a replica.

What strong consistency promises

In replication discussions, strong consistency often means linearizability. From a client’s point of view, each operation takes effect at a single instant between its start and finish, and all operations fit into one order. If a write finishes before a read starts, the read must see that write or a later one. A read that overlaps a write can see either the state before or after it, as long as the result fits that order.

With eventual consistency, a replica may keep serving an older value while updates are making their way through the system. If updates stop and replicas can communicate, they eventually converge. That promise alone says nothing about how soon they converge.

Example: selling the last ticket

A ticketing service marks the final seat as sold and confirms the purchase. If another customer checks that seat after the confirmation, a linearizable read cannot show it as available unless a later write reopened it. A read from a lagging replica might still show it as available. That may be acceptable for a seating preview, but the preview cannot be the final authority at checkout.

Fresh reads are not enough to prevent a double sale, either. Two buyers can both read “available” before either writes. Checkout needs an atomic conditional update: mark the seat as sold only if it is still available, and confirm the purchase only if that update succeeds.

What it takes to provide the guarantee

A replicated store must ensure that a successful read does not come from a node that is behind the writes it is required to see. For example, a protocol can serve reads through a leader that verifies it still has authority and has applied the necessary writes. Merely having a leader, or naming a quorum size, is not proof of linearizability: the read, write, and failover rules matter. If a network partition prevents the store from serving a safe answer, some requests may have to wait or fail rather than return stale data.

What to say in an interview

Distinguish the C in ACID, which concerns preserving data invariants, from the C in CAP, which concerns linearizable behavior in a distributed store. Then state the requirement per operation: which reads must reflect a completed write, where stale data is acceptable, and what happens if replicas cannot communicate. For the ticket example, defend the atomic checkout rule separately from the freshness of the seating preview.