A cache lock is not the booking authority

A cache lock is not the booking authority A workflow diagram generated by Archify. 01 / Customer request 02 / Temporary cache hold 03 / Booking database Attempt hold Authoritative commit Outcome Select seat · one request · Customer request › Attempt hold Select seat one request Reject or retry · no booking confirmed · Customer request › Outcome Reject or retry no booking confirmed Confirm booking · only after commit · Customer request › Outcome Confirm booking only after commit Atomic hold with TTL · temporary claim · Temporary cache hold › Attempt hold Atomic hold with TTL temporary claim Hold conflict · another request holds it · Temporary cache hold › Authoritative commit Hold conflict another request holds it Release hold · on failed commit · Temporary cache hold › Outcome Release hold on failed commit Try booking transaction · unique seat constraint · Booking database › Authoritative commit Try booking transaction unique seat constraint Commit succeeds · seat assigned once · Booking database › Outcome Commit succeeds seat assigned once unique insert succeeds conflict or failure transaction committed no hold hold acquired already held retry later attempt claim Legend Application Cache action Temporary hold Stored data