Skip to lesson

ShopLite: cancel an order safely

Cancelling an order is two changes that must never be separated: the order becomes CANCELLED and every unit goes back into stock. One transaction, one lock on the order row and a test that breaks it halfway make sure they never are.

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.