Two People Open the Same Record

A last-write-wins form can erase a colleague's work without warning. Detect stale edits and give people a practical way to resolve them.

Pencil editing one of two overlapping paper record cards

The second save looks successful

A coordinator opens a customer record, changes the phone number, and leaves the tab open. A colleague updates the billing contact. When the first person saves an older copy of the whole record, the newer billing contact disappears. Both people saw a success message. This is a concurrency problem even at low traffic: it takes only two open tabs and enough time between reading and saving.

Compare a version at the server

Give the record a revision value and require the save to match the version the editor originally loaded. Perform the comparison and update together so another write cannot slip between them. On a mismatch, reject the stale operation instead of overwriting the current value. Client-side timestamps alone are not a reliable authority. The rule needs to apply to administrative tools and background updates as well as the visible form.

A conflict should be an inspectable result

For a focused test, start with revision 7. Session A changes the phone number and saves revision 8. Session B submits its billing change with revision 7 and receives a conflict response. Confirm that the saved phone number remains intact and that B still has its proposed billing value available for review. Then let B reload and deliberately submit the intended change against revision 8. This checks the product outcome as well as the version comparison, including the recovery path that matters to the person who lost the race.

Preserve the person's unfinished work

A conflict message should explain that somebody changed the record and keep the editor's draft available. Show the fields that differ when doing so is appropriate, and let the person reload, compare, or deliberately reapply their changes. Avoid asking them to copy everything before closing an alert. Automatic merging may be sensible for independent fields, but it needs an explicit rule and is risky for values that form one business decision.

Test more than one browser tab

Create two sessions, load the same version, and save different changes in sequence. Include a background synchronization arriving between the reads and writes. Check that the rejected save does not trigger emails or other side effects. If the product uses a temporary editing lock, test expiration and abandoned sessions too. A lock that never releases can be as disruptive as an overwrite, particularly when the person holding it has gone home.

Written by Ted Chow LLC

Your next chapter

Have Something in Mind?
Let’s Make It Happen.

A new website, a better workflow, or an idea worth exploring.
We’d love to hear what you’re thinking.

Let’s talk about it