liveBook · Manning

Atomicity

As explained in Latency

Atomicity is the transaction property that requires all of a transaction's operations to take effect or none of them to take effect.

Atomicity means a database transaction takes effect in full or not at all. It is the all-or-nothing property in ACID, the set of guarantees used to provide safe transactional behavior. section 9.4

Atomicity does not replace the other ACID guarantees:

  • Consistency preserves database invariants, such as constraints and triggers. section 9.4
  • Isolation keeps concurrent transactions from interfering with one another. section 9.4
  • Durability preserves committed effects through a system failure. section 9.4

These guarantees have different performance costs. Serializable isolation can require extensive locking or validation, while durability can require synchronous writes to persistent storage. Neither cost describes how atomicity itself is implemented. section 9.4

Do not confuse transaction atomicity with a processor atomic operation. An atomic load, store, or read-modify-write acts as one indivisible step relative to other threads; such operations are building blocks for synchronization, not an all-or-nothing guarantee for an entire database transaction. section 8.3 section 8.3.1

How Latency covers it

How deep it goes
Defines all-or-nothing transaction behavior but does not explain its recovery or implementation mechanisms.
Examples
Uses ACID properties and isolation-level trade-offs as context, without a worked all-or-nothing transaction example.
What it assumes
Defines ACID properties directly while assuming basic familiarity with databases and transactions.
What you can do after
Evaluate/understand whether an all-or-nothing transaction guarantee is being confused with isolation or durability.
How it connects
Distinguishes atomicity from ACID consistency, isolation, durability, and shared-memory atomic operations.

Also explained in

Compare how 13 books explain atomicity →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Latency. The section links point to the parts of the book it draws on.