AlgoViz

Draw a transaction around the promise

hard 12 min

Locate the durable decision that lets one of two competing buyers win the final unit.

Where it shows up

The same pattern appears across everyday software.

  • The case

    Two handlers read available=1. Both decide to reserve and both write zero. The balance looks valid, yet two customers have confirmation emails.

  • Engineering consequence

    When stock and reservations move into different stores, explain the recovery protocol and the new intermediate states before splitting them.