Linearizability is a promise about one client's real-time view
Linearizability promises one client real-time order, and that promise must survive the client's next request reaching a different node.
A linearizable operation takes effect between its invocation and its response, so a read that starts after a write completes must see it. The guarantee concerns real time, not stored values. A total order is not enough, since timestamps assigned after the fact can disagree with what the client observed. Consequence: a client that moves between replicas can watch a value move backwards, though every node follows its own rules.
A linearizable read cannot come from whatever the local replica holds. The serving node must know that no newer committed write exists, and the usual way to learn that is one coordination round trip: the node asks the quorum or the leader to confirm the current position before it returns a value. Some designs shorten that cost with a leader lease, a grant that lasts seconds and lets the leader answer locally while the lease is valid. The lease is only as honest as the clocks behind it, so a leader that believes its lease is still live after it has been replaced can serve a value the new leader has already overwritten. A client session carries the log position it last saw, and a node must reach that position before answering.
The abstraction hides the moment a client changes nodes. The guarantee covers the sequence one client sees, and that sequence depends on where each request lands. Consider a client that writes x = 10 through the leader, reads 10, then has its next read routed to a follower that has not applied the write. The follower is internally correct; it has simply not caught up. The client reads 10, then sees the older value again, so time appears to run backwards. If the leader dies before the write reaches the follower, and the follower is promoted, the new leader never had the write at all. Client failover takes milliseconds, so the switch can hide from the application. Nothing in the storage layer broke a rule, yet the client's experience broke.
Pay for linearizable reads only where a stale answer is a safety bug rather than a delay. Leader identity, lock ownership, uniqueness checks, and partition maps belong on that path, and each usually holds little data that is read often. For everything else, choose staleness on purpose. Have each client carry the version it last saw, and send reads only to a node at or beyond that version. If no such node is reachable, send the read to the leader, or return an error rather than an older answer. Ask a direct question about every read path: does this client's next request go to the node that answered its last one? If the answer is no and nothing carries a token, a lease or a session, the system does not promise linearizability to that client, whatever the documentation says. Test that with a client that switches nodes mid-session, not with one that never does.
- coordination round trip
- one per read
- leader lease
- seconds
- client failover
- milliseconds
- guarantee scope
- one client's requests
The network exchange a linearizable read pays before it can return a value safely.
How long a leader may answer reads locally before it must renew its authority.
The time a client takes to retry against another node after its first node stops answering.
The sequence of results one client observes, across every node that client may touch.
The naive test looked reassuring. A replicated store was driven through one client that wrote a value and read it back, and every read matched the last write. Each node returned the latest value it knew, so the test passed and nobody asked which node answered.
The wall appeared when the client changed nodes. A read landed on a replica that had not yet applied the write, and the client saw the past after the future. No node had broken its own rules, which made the failure hard to pin on any single component.
Jepsen's model catalog gave the failure a name. Linearizability is defined on the operation interval, from invocation to response, not on the value alone, so the question becomes whether each read respects real time across the client's whole history. The lesson is that any system letting a client switch nodes needs a token, a lease or a session to keep that guarantee.