Abstract
Modern cloud-native databases typically separate compute from storage, yet transaction processing remains tightly coupled to one of these layers. This paper introduces Transaction as a Service (TaaS), a novel three-tier architecture that decouples transaction management into an independent, scalable service. By abstracting ACID guarantees into a pluggable middle tier, TaaS enables high-performance transaction processing across diverse data models—including SQL, NoSQL, and Graph databases—while significantly outperforming traditional disaggregated systems.
The Evolution of Transaction Architectures
Cloud-native database design has largely settled on a "two-tier" model that separates compute (execution) from storage. However, the logic for transaction processing (TP)—ensuring Atomicity, Consistency, Isolation, and Durability (ACID)—is usually bundled within one of these tiers.
This coupling introduces two primary challenges:
- Resource Mismatch: Storage nodes are optimized for I/O, whereas TP is compute-intensive. Bundling them leads to inefficient resource utilization.
- Lack of Agility: Adding ACID support to new data engines (e.g., NoSQL or Graph) currently requires re-implementing complex concurrency control from scratch.
TaaS addresses these issues by turning transaction processing into a "pluggable" middle tier that any execution engine can utilize.
The TaaS Architecture
The proposed system employs an Execution-Transaction-Storage architecture, moving beyond the traditional two-tier model.
1. Execution Layer
Stateless nodes handle query parsing and optimization. Instead of managing state, they generate a readset (data accessed) and a writeset (updates to be made).
2. TaaS Layer (The Core)
This central tier consists of a cluster of nodes that manage concurrency. Key features include:
- Epoch-based Multi-Master OCC: TaaS uses an Optimistic Concurrency Control (OCC) algorithm where nodes exchange writesets in batches (epochs). Conflicts are resolved using a deterministic "first-writer-win" rule, eliminating the need for a central bottleneck.
- No Global Timestamp: Unlike systems like TiDB or FoundationDB, TaaS avoids the single point of failure of a global timestamp service by using local clocks and epoch synchronization.
- Raft Consensus: The layer uses the Raft protocol to ensure durability and fault tolerance, acknowledging commits to users without waiting for slow disk I/O.
3. Storage Layer
The storage tier receives logs from TaaS and asynchronously updates physical data. This separation allows storage to focus purely on high-volume I/O.
Evaluation and Key Insights
The researchers evaluated TaaS using industry-standard benchmarks: YCSB (Key-Value), TPC-C (Relational), and LDBC-SNB (Graph).
Performance and Scalability
TaaS demonstrated remarkable performance, achieving 4.7x to 8.5x higher throughput and 4.5x to 5.2x lower latency compared to state-of-the-art disaggregated databases like TiDB and FoundationDB. Furthermore, the system showed near-linear scaling as more TaaS nodes were added.
Universal ACID Support
A major breakthrough of TaaS is its ability to provide ACID properties to "dumb" databases. The authors successfully added multi-row transactions to HBase and LevelDB simply by connecting them to the TaaS layer. This architecture also enables multi-model transactions, allowing a single transaction to span different database types (e.g., updating a SQL table and a Graph vertex simultaneously).
Limitations and Future Directions
While TaaS offers significant advantages, it introduces additional network hops. The authors suggest that leveraging hardware optimizations like RDMA (Remote Direct Memory Access) or NVM (Non-Volatile Memory) could further reduce latency. Future work will also explore "Affinity Routing" to minimize conflict resolution costs and cross-region support for global consistency.
Summary updated