Challenges

Inventory reservations

Online shop: flash sale

DifficultyStages: 0 / 4
  1. Stock in the database
  2. One hot product
  3. Durable reservations
  4. Idempotent orders
  5. 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.

The system, stage by stageTap, drag or use arrow keys to step through the stages

Stage 4 of 4 · 6 parts given · 4,500 requests/s

Users 1API server 1Postgres 1

Progress on this page stays on this device.

Product names belong to their owners. Cogore is not affiliated with them.