Hld
System Design
Medium
Ephemeral Flash-Sale Inventory Guard
Design a system to manage inventory for high-velocity 'flash sales' where 1 million users might attempt to buy 1,000 items in a 10-second window. The system must guarantee that we never oversell, even under extreme load, and must handle 'held' items in shopping carts that expire after 5 minutes if not purchased, returning the stock to the pool immediately.
Key concepts
cachingatomicityrate-limitingqueueing
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now