System Design · Senior · Question 2 of 75
A user updated their profile, refreshed the page and saw the old data. Which guarantee was violated?
- ✓Correct answer: Read-your-writes: the user must see their own changes
- 2Atomicity: the change was only half applied
- 3Transaction isolation: two requests interfere with each other
Explanation
A typical cause is reading from a replica the change hasn't reached yet, or a stale cache. Solutions: read "own" data from the primary for a while after a write, update the client cache with the mutation response, use updateTag instead of SWR invalidation.