Skip to content
Preptima
hardScenarioDesignMidSeniorStaff

A user saves their profile, the page reloads, and the old name is back. What is happening and how do you fix it?

7 min readUpdated 2026-08-15

Answer

Short answer

The write committed on the primary and the reload was served by a replica that had not applied it yet. Fixing it means giving that session a read-your-writes guarantee, either by routing its reads to the primary for a bounded window or by carrying the commit position and refusing to read a replica behind it.

Was this answer helpful?

Likely follow-ups

  • Two consecutive reads hit two replicas at different positions. What does the user see, and what is that guarantee called?
  • The write and the read happen on two different devices. Which of your fixes still works?
  • How would you monitor lag so that this is caught before a user reports it?
  • A comment is visible but the post it replies to is not. Which guarantee did you violate?

Related questions

Further reading