Lost update
Difficulty 3 of 5
Stock is 10. Bo reads it. Ada then locks the row, sells 3 and saves 7. Bo sells 2 and saves 8 over it. Only Ada's code takes a lock. Stop one sale from overwriting the other. The code of both editors stays as it is.
0:00. Stock reads 8 after sales of 3 and 2. Graph: stock goes 10, 7, then back up to 8.
Outbox · 10 orders · 10 events · 0 lost
Goals and limits
- Lost updates
- none
- Dirty reads
- none
- Monthly cost
- under 20 USD/mo
- Edit limit
- 2
- Traffic
- 100 req/s
Concepts
How players did
Player results load from the server.