Skip to content

api-evangelist/acid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACID (acid)

ACID (Atomicity, Consistency, Isolation, Durability) is a set of properties that guarantee database transactions are processed reliably even in the face of errors, power failures, or system crashes. These four properties ensure that data remains accurate and consistent, making ACID compliance a fundamental requirement for relational databases, distributed systems, and financial APIs.

URL: Visit APIs.json

Run: Capabilities Using Naftiko

Tags:

  • ACID, Database, Transactions, Atomicity, Consistency, Isolation, Durability, Distributed Systems

Timestamps

  • Created: 2025-01-01
  • Modified: 2026-04-19

APIs

PostgreSQL Transaction API

PostgreSQL provides full ACID compliance through its transaction management system including BEGIN, COMMIT, ROLLBACK, SAVEPOINT, and isolation level controls. PostgreSQL uses Multi-Version Concurrency Control (MVCC) to provide high concurrency while maintaining strong data consistency guarantees.

Human URL: https://www.postgresql.org/docs/current/transaction-iso.html

Tags:

  • PostgreSQL, RDBMS, MVCC, ACID, SQL

Properties

CockroachDB Distributed SQL API

CockroachDB is a distributed SQL database providing serializable ACID transactions across multiple nodes and regions. It uses the Raft consensus algorithm and supports the PostgreSQL wire protocol.

Human URL: https://www.cockroachlabs.com/docs/stable/

Tags:

  • CockroachDB, Distributed SQL, ACID, Serializable, Cloud Native

Properties

Google Spanner API

Google Spanner is a globally distributed, externally consistent database providing ACID transactions at global scale using TrueTime clock synchronization. The Cloud Spanner API offers both read-write and read-only transactions via REST and gRPC.

Human URL: https://cloud.google.com/spanner/docs/transactions

Tags:

  • Google Spanner, Distributed Database, Global Scale, ACID, TrueTime

Properties

Amazon Aurora Transactions API

Amazon Aurora provides ACID-compliant transactions for MySQL and PostgreSQL-compatible editions with distributed storage across 3 AZs with 6-way replication. The Aurora Data API enables HTTP-based serverless SQL transactions.

Human URL: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.html

Tags:

  • AWS Aurora, MySQL, PostgreSQL, ACID, Serverless

Properties

Atomikos Transaction API

Atomikos provides ACID transaction management middleware for distributed microservices, supporting XA transactions across REST services using the Try-Confirm/Cancel (TCC) pattern.

Human URL: https://www.atomikos.com/

Tags:

  • Atomikos, Distributed Transactions, TCC Pattern, Microservices, XA

Properties

Common Properties

Features

Name Description
Atomicity Transactions are all-or-nothing: either all operations in a transaction succeed and are committed, or none are applied and the database is rolled back to its prior state.
Consistency A transaction brings the database from one valid, consistent state to another, enforcing all defined constraints, triggers, and cascades.
Isolation Concurrent transactions execute as if they were serialized, preventing interference. Isolation levels control the degree of visibility between concurrent transactions.
Durability Once a transaction is committed, it remains committed even in the event of system crashes, power failures, or other errors.
Distributed ACID Modern distributed databases extend ACID guarantees across multiple nodes, regions, and data centers using consensus algorithms (Raft, Paxos) and synchronized clocks.
REST API Transaction Patterns Design patterns for ACID-like guarantees in REST APIs include Two-Phase Commit (2PC), Try-Confirm/Cancel (TCC), and Saga patterns for managing distributed transactions.

Use Cases

Name Description
Financial Transactions Banking and payment systems require ACID compliance to ensure monetary transfers are atomic and durable across system failures.
Inventory Management E-commerce systems use ACID transactions to prevent overselling by ensuring inventory decrements and order creation are atomic.
Distributed Microservices Coordination Microservices architectures use Saga and TCC patterns to achieve eventual consistency with compensating transactions.
Multi-Region Database Replication Global applications use databases like Google Spanner and CockroachDB to maintain ACID consistency across geographic regions.
Idempotent API Design REST APIs use database transactions to implement idempotency keys, ensuring duplicate requests produce the same result.

Integrations

Name Description
PostgreSQL The most widely deployed open-source RDBMS with full ACID compliance via MVCC and configurable transaction isolation levels.
MySQL / MariaDB Popular open-source databases providing ACID compliance through the InnoDB storage engine with row-level locking and MVCC.
MongoDB Multi-Document Transactions MongoDB added multi-document ACID transactions in version 4.0, extending its document model with ACID guarantees.
Apache Kafka Transactions Kafka's transactional API enables exactly-once semantics with atomic writes to multiple partitions.
Saga Pattern / Orchestration The Saga pattern decomposes long-running transactions into local transactions with compensating actions for distributed consistency.

Artifacts

Machine-readable API specifications organized by format.

JSON Schema

JSON Structure

JSON-LD

Examples

Vocabulary

  • ACID Vocabulary — Unified taxonomy mapping 6 resources, 7 actions, 2 workflows, and 5 personas across the ACID database transaction landscape

Maintainers

FN: Kin Lane

Email: kin@apievangelist.com

About

ACID (Atomicity, Consistency, Isolation, Durability) is a set of properties that guarantee database transactions are processed reliably even in the face of errors, power failures, or system crashes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors