Global Flash Sale Engine (3/4): Distributed Inventory & The Hot-Row Problem
How to prevent overselling when thousands of admitted users compete for the same SKU. We shift from a naive atomic counter to a bounded-consistency reservation lifecycle using Redis Lua, inventory sharding, and transactional reconciliation.