Linearizability explained in plain terms means understanding the strongest promise a distributed system can make about shared data: every operation appears to take effect at a single instant, even though the system is spread across many machines. The central question is how a system can make concurrent operations look as if they happened one after another, and the answer is linearizability, a rule that orders every operation by a point inside its own execution.
Linearizability is a correctness condition for concurrent objects, defined by Maurice Herlihy and Jeannette Wing in 1990. It says that each operation on a shared object must appear to happen at one moment between the time it starts and the time it finishes, and that the order of those moments must respect the real order in which operations completed.
The idea is simple: a reader should never see a value that was written after the read began, and a writer should never have its update overtaken by an older one. If two operations overlap in time, either order is acceptable, but once one operation has finished, every later operation must see its effect. This article explains what linearizability is, how it works, and where it is used.
Key takeaways
- Linearizability makes every operation appear to happen at one instant.
- It is the strongest consistency guarantee for a single shared object.
- Operations that do not overlap must be seen in their real time order.
- It is composable: linearizable parts combine into a linearizable whole.
- It costs coordination, so it trades availability and speed for correctness.
What linearizability is
Linearizability applies to a single shared object, such as a register, a queue, or a key in a database. Each operation on that object has a start time, when the caller issues it, and a finish time, when the caller receives the answer. Linearizability requires that a single instant, called the linearization point, can be chosen inside each operation, and that the results are exactly what they would be if the operations had run one after another in the order of those instants.
The key test is real time. If operation A finishes before operation B starts, then A must appear before B in the ordering, and B must see the effects of A. This is what separates linearizability from weaker guarantees, which may let a later operation see an older value, or let two operations appear in an order that contradicts the order in which they actually finished.
Linearizability is also local, or composable, which is one of its most useful properties. If every object in a system is linearizable on its own, then the system as a whole is linearizable, and no extra reasoning is needed about how the objects interact. Our guide to the CAP theorem explains why a system cannot always provide this guarantee and stay available during a network partition, and our guide to distributed systems explains the setting in which replicas must agree on the order of operations.
How linearizability works
A system usually provides linearizability through consensus. When a client sends a write, the replicas agree on a single order for that write before any of them applies it, so that every replica applies the same operations in the same order. A read is then served from a replica that is known to be up to date, or the read itself goes through the same agreement process, so that it cannot return a value that a completed write has already replaced.
The linearization point is often the moment a quorum of replicas accepts the operation. In a system using the Raft protocol, for example, a write is linearized when a majority of nodes have recorded it in their logs, and a read is linearized when the leader confirms it is still the leader and its log is current. Before that point the operation has not taken effect; after it, the effect is permanent and visible to every later operation.
Reads are the expensive part. A fast read from the nearest replica is not linearizable on its own, because that replica may be behind the leader and return an old value. To make a read linearizable, the system must either route the read to the leader, ask a quorum whether a newer value exists, or attach a lease that proves the leader is still current. Each of these adds a round trip, which is why linearizable reads are slower than stale reads.
Writes are ordered by a single sequence. Every write is given a position in a shared log or a version number, and replicas apply writes in that order, never skipping or reordering them. If two writes arrive at the same time, the agreement protocol picks one to go first, and the loser is ordered after it, so that all replicas converge on the same state and every later read sees the same result.
Failures are handled by the same agreement mechanism. If a leader crashes in the middle of a write, the new leader must first learn whether that write was accepted by a quorum. If it was, the write is completed and linearized; if it was not, the write is discarded and the client is told to retry. Either way, the system never shows a half-applied write, and the ordering of operations stays consistent across the failure.

Comparing linearizability with other consistency models
Linearizability is one of several consistency models, and each was built with a different emphasis. Sequential consistency also orders operations, but without respecting real time, while eventual consistency lets replicas disagree for a while and agree later, and each model trades correctness for speed in a different way.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Linearizability | Sequential consistency | Eventual consistency |
|---|---|---|---|
| Read guarantee | Always the latest completed write | A consistent order, not necessarily latest | May be stale, briefly |
| Respects real time | Yes, strictly | No | No |
| Composable | Yes, by design | No, in general | No |
| Cost | High, needs agreement | Moderate | Low |
| Best for | Coordination and locks | Shared memory systems | Feeds and catalogues |
The practical result is that linearizability is the right choice when a wrong or stale read causes real harm, sequential consistency suits systems where only the order matters, and eventual consistency fits data where a brief delay is harmless.
Where linearizability is used
Coordination services use linearizability as their core guarantee. Systems such as etcd and ZooKeeper store configuration, leader information, and locks, and every client that reads a value must see the latest write, because a stale lock or an outdated leader would let two processes act as the coordinator at once.
Distributed databases offer linearizability for operations that need it. A database may serve most reads from the nearest replica for speed, but provide a linearizable read option for the operations that must be exact, such as checking a balance before a payment, so that the application can choose the guarantee it needs for each request.
Distributed locks depend on linearizability to be safe. A lock is only useful if acquiring it after another process released it is always visible, and if two processes can never both believe they hold the same lock. Without a linearizable store underneath, a lock service could hand the same lock to two holders, and the data it protects would be corrupted.
Leader election relies on linearizability to pick exactly one leader. When several nodes compete for leadership, the decision must be recorded in a store where every node sees the same winner, and a node that reads the result after the election must never see an older leader. A stale read here would produce two leaders, which is the failure the election exists to prevent.
Financial ledgers use linearizability where the order of transactions matters. A payment system that records a debit and a credit must apply them in a single agreed order, so that no observer ever sees a balance that includes the credit but not the debit, and so that two conflicting payments are always resolved the same way by every replica.
Strengths and limits
The greatest strength of linearizability is that it is easy to reason about. A programmer can treat a distributed object as if it were a local one, because every operation appears to happen instantly, and there is no need to think about which replica answered, how far behind it was, or what order the replicas applied the writes in.
It is also a strength that linearizability is composable. Each object can be made linearizable on its own, and the combination is automatically correct, which means a system can be built from trustworthy parts without a separate proof that the whole behaves correctly.
The limits are real, though. Linearizability requires agreement on every operation, which costs time and makes the system unavailable during a network partition, since a side without a quorum cannot safely answer. For data where a stale read is harmless, that cost is wasted, and a weaker model is the better choice.
Linearizability checklist
- Use linearizability only where a stale read causes real harm.
- Route linearizable reads through the leader or a quorum.
- Give every operation a single linearization point.
- Order all writes through one agreed sequence.
- Check that a failed leader’s partial writes are resolved cleanly.
- Test reads during a partition; the minority side must not answer.
- Offer weaker reads for data where staleness is harmless.
- Measure read latency; linearizable reads cost extra round trips.
- Document which operations are linearizable and which are not.
Frequently asked questions
What is linearizability in simple terms?
It is a promise that every operation on shared data appears to happen at one instant, so that operations look as if they ran one after another in real time order, even though the system is spread across many machines.
What is a linearization point?
It is the single moment inside an operation when it is considered to take effect. In practice it is often the instant a quorum of replicas accepts the operation, after which its result is visible to every later operation.
How is linearizability different from sequential consistency?
Sequential consistency requires only that operations appear in some order that respects each process’s own order, while linearizability also requires that the order respect real time, so an operation that finished before another started must come first.
Why are linearizable reads slow?
Because a read from the nearest replica may be stale, so the system must check with the leader or a quorum that no newer write exists. That check adds a round trip that a plain local read does not need.
Can a system be linearizable and available during a partition?
No. During a network partition, the side without a majority cannot be sure its data is current, so it must refuse requests to stay linearizable. This is the trade the CAP theorem describes.
When should I not use linearizability?
When a stale read is harmless, such as showing a social feed, a product catalogue, or a comment thread. In those cases a weaker model is faster, cheaper, and available during partitions.
The bottom line
Linearizability explained in one line is this: every operation appears to happen at one instant, in real time order, no matter how many machines are involved.
It is the strongest consistency guarantee a distributed system can offer, and the right one whenever a wrong or stale answer would cause real harm.
This article is general information about how linearizability works, not advice about choosing a consistency model for a particular system.







