Pick the fix
After saving a profile, users sometimes see their old name. Reads go to replicas. Fix?
Hint 1 of 1
Why is the value old?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Read from the primary for that user for a short window after their write
Correct. Read-your-writes without moving all reads.
Replicas apply changes a little after the primary, so a read right after a write can miss it. Routing that user's reads to the primary for a few seconds gives read-your-writes cheaply.
Why not the others?
- B Add more replicas. More replicas, same lag.
- C Cache the old value longer. Makes it worse.
- D Disable replication. Loses the read scaling.