Skip to content
Preptima
hardScenarioConceptMidSeniorStaff

Your service writes a record, reads it straight back, and sometimes gets the old value. What is happening and what do you change?

5 min readUpdated 2026-08-15Target archetype: Big Tech, Enterprise Captive, Product Startup

Answer

Short answer

An acknowledged write is only guaranteed on the replicas that acknowledged it, so a read served elsewhere can legitimately return the previous version. Locate the staleness - replica, secondary index or cache - then buy read-your-writes for that operation only, and price what it costs during a partition.

Was this answer helpful?

Likely follow-ups

  • Two users update the same document in the same second and one change disappears. Same problem or a different one?
  • How would you give read-your-writes to a client that reads through a cache you do not control?
  • Your secondary index lags the base table. Which of your fixes still works, and which does not?
  • What does a quorum read do during a network partition, and what do you tell the caller in that moment?

Related questions