Linearizability
6 min read.
Watch a replicated register return a value, then an older one, and see how quorum reads with read repair and compare-and-set make it act like a single copy.
Think of it this way: Linearizability is a scoreboard everyone in the stadium reads. Once one fan sees the home team score, nobody who looks up afterwards can still see the old score. Eventual consistency is fans texting each other the score: someone who checks later may get an old text.
x = 0 on all three replicas. Each bar below is one request, from when it is sent to when the answer comes back.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Does it need one up-to-date copy?
Sort each feature by whether a stale read would break it.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Needs linearizability
Drop items hereFine with eventual consistency
Drop items hereQuiz
8 questionsWhat does linearizability promise?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.