Distributed systemsmonotonic read consistency

Monotonic reads

Definition

Monotonic reads guarantee that if a client has read a value at some version, no later read by that client returns an older version.

In practice

Without it, a user refreshing a page can hit a fresh replica and then a lagging one, so a new comment appears and disappears. The usual fix is to pin each user to one replica, for example by hashing the user ID, or to track the highest version seen and skip replicas that are behind it.

Monotonic reads are weaker than read-your-writes and say nothing about seeing the newest data, only about not going backwards. Pinning breaks when that replica fails, so a version token is more robust than affinity alone.

Example

User 81 is routed to replica db-r2 by hash(81) % 3; even though db-r3 lags by 5 seconds, user 81 never sees their feed jump back to an older state.