System Design · Senior · Question 2 of 75

A user updated their profile, refreshed the page and saw the old data. Which guarantee was violated?

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.

Further reading

Problem with a question

System Design · Senior · question 2

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz