liveBook · Manning

ACID

As explained in ScyllaDB in Action

ACID is a set of transaction guarantees comprising atomicity, consistency, isolation, and durability.

ACID is a set of transaction guarantees: atomicity, consistency, isolation, and durability. A transaction is one or more statements applied to a database. section 1.2.2

The four guarantees describe what should happen when database operations succeed, fail, or run concurrently:

  • Atomicity means every statement in a transaction succeeds together or fails together. section 1.2.2
  • Consistency means the database remains in a valid state after every transaction. section 1.2.2
  • Isolation means a transaction cannot interfere with a concurrently executing transaction. section 1.2.2
  • Durability means changes made by a transaction persist. section 1.2.2

ACID favors correctness and durable writes. ScyllaDB instead uses BASE—basic availability, soft state, and eventual consistency—which supports faster writes but requires developers to account for weaker consistency. section 1.2.2 section 1.4

Concurrent bank-account operations

Bank-account updates illustrate why isolation matters: concurrent operations without isolation can make the database’s reported balance differ from the amount actually available. Financial data may therefore favor a relational database with stronger ACID transactions. section 1.2.7

How ScyllaDB in Action covers it

How deep it goes
Defines all four guarantees and contrasts their trade-offs with BASE, without detailing transaction implementation internals.
Examples
Uses concurrent bank-account operations to demonstrate the practical importance of isolation.
What you can do after
Evaluate whether an application needs stronger transactional guarantees than a BASE-oriented distributed database provides.
How it connects
Connects transactions with BASE, eventual consistency, relational databases, distributed systems, and isolation.

Also explained in

Compare how 7 books explain ACID →

Related concepts

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