Introduction
In the era of outsourced cloud data, ensuring the integrity of database history is paramount. Verifiable ledger databases provide cryptographic proofs that data is "append-only" and hasn't been tampered with. However, existing solutions often struggle with a performance-security trade-off. Blockchains offer high security but low throughput; centralized transparency logs are fast but limited to simple lookups; and cloud services like Amazon QLDB may lack protection for internal indexes, leaving them vulnerable to "stale data" attacks.
GlassDB addresses these challenges by providing the performance of a traditional Online Transaction Processing (OLTP) database with the robust verifiability of a ledger.
System Architecture and Methods
GlassDB introduces several architectural innovations to bridge the performance-security gap. The system is designed around a sharded architecture where data is partitioned across multiple nodes, utilizing a Two-Phase Commit (2PC) protocol to maintain atomicity across shards.
Key innovations include:
- Two-Level POS-Tree: Unlike traditional ledgers that build Merkle trees over transaction logs, GlassDB builds its tree over database states. A lower level indexes the data for efficient "current-value" proofs, while an upper level tracks blocks of changes to ensure a linear, append-only history.
- Deferred Verification: To keep verification out of the critical path of transactions, GlassDB returns a "promise" to the user. These promises can be verified in batches later, significantly reducing latency for write operations.
- Aggressive Batching: Concurrent operations are collected into single blocks, minimizing the overhead of updating authenticated data structures.
Evaluation and Key Results
The authors evaluated GlassDB using extended versions of standard benchmarks like YCSB and TPC-C, adding operations for verified puts, gets, and history lookups. Since many competitors are proprietary, the researchers reimplemented versions of Amazon QLDB, LedgerDB, and SQL Ledger (denoted as QLDB*, etc.) for a fair comparison.
Key Findings:
- Superior Throughput: GlassDB achieved up to 1.7x higher throughput than LedgerDB* on YCSB workloads and 1.3x higher on TPC-C.
- Scalability: The system demonstrates near-linear scalability as more nodes are added.
- Compact Proofs: The two-level tree structure ensures that proof sizes remain small ($O(\log B + \log m)$) even as the database grows.
- Storage Efficiency: By batching operations, GlassDB is more space-efficient than systems that update the ledger for every individual transaction.
Insights and Future Directions
A core insight of GlassDB is the shift from transaction-based to state-based Merkle trees, which makes "current-value" queries significantly cheaper. Furthermore, by protecting the index itself, GlassDB closes a common security hole in cloud ledger services. The system assumes a threat model where the server is untrusted, but a set of "auditors" can detect if the server tries to "fork" the history.
While highly effective, the system currently relies on a standard 2PC protocol which can block if a coordinator fails. Future work may explore non-blocking protocols like Paxos. Additionally, the "deferred verification" model introduces a small window where a malicious server could provide false results before being caught by batch verification—a calculated trade-off for high performance.
Summary updated