Inventory

Availability read causes oversell

Why it happens

Two buyers see the same available count.

Potential bug

Reservations exceed on-hand stock.

Mitigation

Lock/update invariant at reservation time; do not trust cache or earlier read.

See it in context