P14 Inventory

Cloud-Native Inventory Management System

Current stock

ItemIn stockReorder at

Try the two cases

Two people take the last unit at the same momentOne unit left. Aisha and Bilal both scan it out.

The phone sends the same request twiceFive in stock. Aisha scans one out, the network drops, the phone tries again.

Run a case.

The obvious way waits 0.2 s between its read and its write, so the gap shows every time. Without the wait it still went wrong in 19 or 20 of every 20 runs.

Ledger for the demonstration item

ChangeStaffResultRequest id