Replication Lag Anomalies
5 min read.
See read-your-writes, monotonic reads and consistent prefix break when followers lag behind the leader, then fix each one.
Think of it this way: Followers are like newspaper stands that get the morning edition at different times. Read your writes: if you placed an ad, check the main office, not a stand that has not had its delivery. Monotonic reads: always buy from the same stand, so you never pick up an older edition after a newer one.
Sam posts a comment, then reloads the page. Reads go to any follower.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Name the broken guarantee
Sort each symptom by the replication-lag guarantee it breaks.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Read your writes
Drop items hereMonotonic reads
Drop items hereConsistent prefix
Drop items hereQuiz
8 questionsWhy can a follower return stale data?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.