Social, Search & MarketplaceProblem 6 of 13
E-CommerceHardDeep Dive available
Design E-Commerce Flash Sales
Design an e-commerce flash sale platform handling 10M concurrent users with atomic inventory management via Valkey Lua scripts, a coupon system supporting limited pools (500K codes) with LPOP + SET NX one-per-user enforcement, four coupon types with stacking rules, virtual queue traffic shaping, checkout saga orchestration via Temporal with compensating transactions, and hot-key mitigation through 16-slot inventory sharding.
Key Topics
Virtual Queue (Traffic Shaping)Atomic Inventory (Valkey Lua)Coupon Pool (LPOP + SET NX)Coupon Types & StackingCheckout Saga (Temporal)Hot-Key Mitigation