
An Append-Only Stock Ledger: How We Stopped Overselling
Inventory management system design without a quantity field: stock as a sum of immutable movements, derived stock status, a MongoDB checkout transaction that re-checks stock, and netted bulk adjustments that prevent overselling.
4 min read