Inventory reservations
Online shop: flash sale
- Stock in the database
- One hot product
- Durable reservations
- Idempotent orders
- Final test
Sell a limited product in a flash sale. Keep stock in a database, split the hot product row, make every reservation survive a node loss and charge each order once.
Final testThe stock node fails for 8 s at 0:45 while checkout rises 30 percent for 15 s. Your final board runs once more with a new traffic seed.
Stage 4 of 4 · 6 parts given · 4,500 requests/s
Progress on this page stays on this device.