System Design · Middle · Question 24 of 75

How do you handle conflicts when two users edit the same record?

Explanation

The client sends If-Match: <etag> or a version field; if the record has already changed, the server returns 409/412 and the UI offers to refresh or merge changes. "Last write wins" silently loses someone else's work.

Further reading

Problem with a question

System Design · Middle · question 24

Test yourself

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

Take this quiz