ACID transactions.
A bank transfer that cannot half-happen: either the whole thing lands, or none of it does.
- 1
Moving £100 is really two steps: take it from one account, add it to the other.
- Where did my £100 go?!2
If the power cuts between the two steps, the money must not vanish into thin air.
- 3
A transaction fences both steps so they behave as one indivisible action — atomicity.
- Both landed. Sealed.4
If every step succeeds, commit: lock it all in at once and it survives a crash a second later.
- Never mind — put it back.5
If anything fails, roll back: undo everything, as if it never happened.
- 6
The four promises: atomic, consistent, isolated, durable — why a database feels trustworthy.
Semicolony semicolony.dev/eli5/acid/comic