ACID — transaction guarantees. BASE — distributed system properties.
ACID (SQL):
ACID Example:
BEGIN TRANSACTION
UPDATE accounts SET balance = balance - 100
UPDATE accounts SET balance = balance + 100
COMMIT
(Either both succeed or both fail)
BASE (NoSQL):
BASE Example:
Write to Node A → Replicate to B, C
(Eventually all nodes have same data)
Key differences: