Interview traps
Labs / Play
Break the Backend
You are the chaos scheduler. Each level runs real backend code as two concurrent requests. You decide who moves next. Break the invariant, then pick the fix that makes it hold.
- 1. Step requests in any order
- 2. Double-book the seat
- 3. Patch it and watch it hold
- Play
Level 1
The double-booked seat
One seat, one booking. Can you make that false?
- Play
Level 2
The lost update
The balance matches what was paid. Can you make that false?
- Play
Level 3
The vanity alias race
An alias has exactly one owner. Can you make that false?
- Play
Level 4
The idempotency race
One order is charged once. Can you make that false?
- Play
Level 5
The ID collision
Every short code is unique. Can you make that false?