Module 3 · Build Openbell Lesson 7 of 54

Cash Spent Twice

Two orders, one balance, and the race condition between them.

0:58 clip16:15–17:14 in the full courseWatch on YouTube

Transcript

13 sentences · select one to jump there

Check your understanding

Sara has $2,000. Her phone and her laptop each send an $1,842 buy in the same millisecond. With check and reserve in one step, what happens?

Choose one answer

Lesson notes

The rule

Check and reserve in one step: lock the balance, place the hold, then release the lock