Move Spare Parts Without Losing Half the Transfer

A transfer changes two stock balances and its audit record. Make those changes one unit of work, and learn what a rollback can actually undo.

13 sections · 4 questions · 1 coding challenge

1 / 13

Making a Business Operation Survive a Failure

BOTIE

Transaction-processing research addressed operations whose meaning spanned several low-level writes. Jim Gray’s 1981 paper described the transaction concept and its limitations. The problem was practical: interruptions should not leave half of an intended database operation visible as a completed result.

Our spare-parts transfer is an invented example of that boundary. It updates database records only. Sending a delivery truck or an email involves another system whose effects are not automatically reversed by a SQL rollback.

Sources for this history