ShopLite: place orders with stock locking
60 min · Advanced
Need help? Ask a tutor on WhatsApp (opens in a new tab)Two customers who press "Buy" on the last iPhone at the same moment must not both get it, and a customer who asks for more than is left must get a clear 409 with nothing half-saved. A transaction, row locks taken in a fixed order and two integration tests make sure of it.
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.