Atomicity
The A in ACID: all operations in a transaction succeed, or all are undone.
Example
If $100 is subtracted and adding it to the other account fails, the subtraction is undone.
Test yourself: Atomicity
ACID and BASE
You transfer $100: it was subtracted from your account and adding to the other failed. What does atomicity do?
All or nothing: if 1 of the 2 steps fails, both are undone and not even $1 is lost.
0/1
â–¶ Play