Chapter 3: Atomicity, Consistency, Isolation, and Durability (ACID)
In the Chapter 2, How Does CockroachDB Work Internally, we learned about the different layers of CockroachDB. In this chapter, we will learn about what ACID is, its importance, and what the ACID guarantees that CockroachDB provides are.
ACID guarantees the following things:
- Atomicity: This is achieved through the notion of a transaction, in which all the statements within a transaction are executed as a single unit. So, either all of them succeed or fail together.
- Consistency: The database state should be consistent before and after a transaction is executed and should ensure that the database constraints are never violated.
- Isolation: Multiple transactions can get executed ...
Get Getting Started with CockroachDB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.