ACID Isolation Locking Lab

A beginner story: one item, two buyers, one database invariant
tick 0
Beginner story

One item left

There is 1 item left. Two buyers click Buy at almost the same time. The whole lesson is whether the database lets both of them believe the item is still available.

Goal: stock never goes below zero
1 / 6