ACID properties describe the guarantees a transaction provides — a group of data operations that runs as a single unit. The classic example is moving money from one account to another: it consists of a debit and a credit, and one half must never go through while the other disappears in a failure.
What ACID stands for
The acronym ACID was coined by Theo Härder and Andreas Reuter in their 1983 paper on database recovery, Principles of Transaction-Oriented Database Recovery.
| Property | What it guarantees |
|---|---|
| Atomicity | the transaction runs in full or not at all: on failure, all changes are rolled back |
| Consistency | a transaction moves data from one valid state to another: integrity constraints and domain rules are not violated |
| Isolation | concurrent transactions do not see each other’s intermediate state; the result is as if they ran one after another |
| Durability | once a transaction is committed, its changes survive even a power cut: they are already written to the log |
Isolation levels
Full isolation is expensive: concurrent transactions either block each other’s data or roll back because of conflicts. The SQL standard therefore defines four isolation levels — a compromise between strictness and speed.
| Level | Possible anomalies |
|---|---|
| Read Uncommitted | dirty reads, non-repeatable reads, phantom reads |
| Read Committed | non-repeatable reads, phantom reads |
| Repeatable Read | phantom reads |
| Serializable | no anomalies |
A dirty read means uncommitted data from another transaction is visible; a non-repeatable read means a repeated query within the same transaction returns a different result; a phantom read means a repeated query returns rows that were not present in the first read. Real databases are often stricter than the standard: in PostgreSQL, Read Uncommitted behaves like Read Committed, and phantoms already disappear at Repeatable Read. The default is Read Committed; the strictest level, Serializable, rules out all anomalies but conflicts more often and rolls transactions back.
When ACID is relaxed
ACID guarantees are hard to deliver in distributed systems: they require coordination between nodes that cannot survive a network partition. That is why many stores promise the weaker BASE model — eventual consistency — although some NoSQL systems do provide true ACID transactions across multiple records. For business operations spanning several services, the transaction is replaced with a saga or the transactional outbox pattern.
Sources
the term is written from these pages- T. Härder, A. Reuter — Principles of Transaction-Oriented Database Recovery (ACM Computing Surveys, 1983)doi.org/10.1145/289.291(opens in a new tab)
- PostgreSQL — Transaction Isolation Levelspostgresql.org/docs/current/transaction-iso.html(opens in a new tab)
- Amazon DynamoDB — Managing complex workflows with DynamoDB transactionsdocs.aws.amazon.com/amazondynamodb/latest/developerguide/transactions.html(opens in a new tab)
Verified 8 Nov