Digital product

One Change, One Transaction

Your app timed out. Did the transfer fail, or did the reply get lost? Shelf A has five units. Shelf B has one. A clerk moves two and sees a timeout. If the clerk presses Save again, can your app return the original result without moving the same...

$8.99

✓ This is not a physical book.

✓ Secure checkout. Digital access and format details are shown in the product information.

Need help with a digital order?

INSIDE THE BOOK

What you'll explore

Your app timed out. Did the transfer fail, or did the reply get lost?

Shelf A has five units. Shelf B has one. A clerk moves two and sees a timeout. If the clerk presses Save again, can your app return the original result without moving the same stock twice?

One Change, One Transaction walks developers through a small SQLite inventory ledger whose behavior you can verify with exact numbers. You’ll follow a transfer through both writes, save a receipt in the same commit, and reopen the database after a deliberate failure to see what survived.

Build it, interrupt it, and verify the result

  • Use a guarded update to reject a move when the shelf no longer holds enough stock.
  • Separate a busy writer from a rejected request or a lost reply.
  • Tie a retry to the original request key and detect when the same key carries a different payload.
  • Build a failure matrix that checks both balances and the receipt after each interruption.

97-page illustrated PDF workbook with five chapters and 30 worked cases. Includes a runnable Python and SQLite lab so you can test rollback, contention, and replay on a temporary database.

BEFORE YOU BUY

Good to know

Is this a printed book?

For a product marked Digital product, no physical copy is shipped. Check the description and listed format before purchasing.

How do I access my eBook?

Access details depend on the digital delivery option for this book. Check your order confirmation and contact us if you have any trouble.

Can I preview the pages?

When sample images are available, use the arrows or thumbnails in the book preview gallery to browse them.

Contact support ↗