Designing an inventory ledger that can't oversell: append-only movements and FIFO cost layers in MongoDB
How Inventra keeps stock honest: an append-only movement ledger, conditional $inc guards inside transactions, FEFO/FIFO cost layers, and a test that fires 50 parallel reserves at 10 units.
