IntermediateAbout 15 min

    Replication Lag Anomalies

    Read the full article on Substack

    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.

    the problemt = 0s
    Leadertakes writes
    Follower 1lag 1s
    Follower 2lag 4s
    What the readers got

    Sam posts a comment, then reloads the page. Reads go to any follower.

    1/8

    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

    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 here

    Monotonic reads

    Drop items here

    Consistent prefix

    Drop items here
    6 pieces left to place

    Quiz

    8 questions
    Question 1 of 8
    Score: 0

    Why can a follower return stale data?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going