Concurrency and consistent rules
- Problem
- Two people booking the last seat
- We learn
- Concurrency
- Transactions
- Locking
- Why?
- Keep course capacity correct under concurrent requests.
- Target evidence
- 10 concurrent requests for the last seat → one successful enrollment, and no negative capacity.A target test scenario, not a performance measurement from production.
- Independent challenge
- Change the booking policy and explain the impact of the change.