ACID
Atomicity, Consistency, Isolation and Durability: guarantees that a transaction happens fully or not at all and stays saved.
Example
A $100 transfer is debited and credited, or nothing happens: never half-done.
Test yourself: ACID
SQL or NoSQL
A payments system can't lose or duplicate transfers. Which database?
With ACID, a $100 transfer is debited and credited, or nothing happens: never half-done.
ACID and BASE
The D in ACID is ___: what's confirmed isn't lost.
Once the database says «done», the data is on disk: a power cut 1 second later doesn't erase it.
Transactions
Every database supports ACID transactions.
Many NoSQL databases don't: coordinating all-or-nothing across 50 servers is slow.
0/3
â–¶ Play