Blockchains and Distributed Databases: a Twin Study

Pingcheng Ruan, Gang Chen, Tien Tuan Anh Dinh, Qian Lin, Dumitrel Loghin, Beng Chin Ooi, Meihui Zhang

Abstract: This paper presents a rigorous "twin study" comparing blockchains and distributed databases through a new four-dimensional taxonomy: replication, concurrency, storage, and sharding. By benchmarking systems like Hyperledger Fabric and TiDB, the authors move beyond high-level "security vs. speed" arguments to show exactly how specific design choices—like transaction-based vs. storage-based replication—drive the performance gap.

Introduction

For years, the technology landscape has treated blockchains and distributed databases as distinct species. Blockchains were relegated to trustless, decentralized environments, while databases were the workhorses of high-performance enterprise needs. However, as blockchains evolve to support general-purpose "smart contracts," they are increasingly used for the same transactional workloads as databases.

Despite this convergence, comparisons remain superficial, often focusing on end-results like throughput without examining the underlying architectural drivers. This paper bridges that gap, providing a principled framework to understand the "dichotomy" (how they differ) and the "fusion" (how they are merging into hybrid systems).

Trade-off between performance and security in distributed systems.

A Four-Dimensional Taxonomy

The authors propose a taxonomy based on four fundamental dimensions of distributed transactional systems:

  1. Replication: Blockchains typically replicate the transaction logic (allowing every node to re-execute and verify), while databases replicate the resulting state or storage operations.
  2. Concurrency: Most blockchains rely on serial execution to ensure determinism across nodes, whereas databases use sophisticated parallel control (like Multi-Version Concurrency Control, MVCC) to maximize throughput.
  3. Storage: Blockchains utilize an append-only ledger with authenticated data structures (like Merkle Trees) for integrity. Databases use direct-access indices optimized for hardware performance.
  4. Sharding: The paper examines data partitioning and "cross-shard" transaction handling, contrasting database-style coordinators with blockchain-style Byzantine Fault Tolerant (BFT) protocols.
Taxonomy comparison of various blockchain and database systems.

Performance Analysis and Key Insights

The study benchmarked four systems: Hyperledger Fabric and Quorum (blockchains) against TiDB and etcd (distributed databases) using industry-standard tools like YCSB and Smallbank. The research reveals that the "security tax" in blockchains is granular rather than monolithic. For example, in Hyperledger Fabric, roughly 42% of block validation time is spent solely on verifying cryptographic signatures.

The "root cause" of the performance gap is the difference between transaction-based and storage-based replication. Because blockchains replicate logic, they are inherently more verifiable but significantly harder to parallelize. Databases, by replicating storage operations, achieve higher speeds but require greater trust in the coordinator.

Key Results

  • Throughput: Under update-heavy workloads, TiDB achieved ~5,159 transactions per second (tps), while Fabric reached ~1,294 tps. While a gap exists, it is narrowing compared to older studies that cited 100x differences.
  • Latency: A massive divide remains. Update latency for blockchains ranged from 500ms to 3,500ms, while databases consistently stayed below 100ms.
  • Contention Sensitivity: Under high contention (skewed workloads), TiDB’s performance dropped by 90% due to locking overhead. Conversely, serial blockchains like Quorum remained stable, albeit at a lower baseline.
  • Storage Overhead: Fabric's ledger abstraction incurs significant costs. A 5KB record requires nearly 22KB of storage in Fabric due to headers and metadata, whereas TiDB stays close to the raw data size.

Conclusion

The study focuses on permissioned blockchains; permissionless systems like Ethereum would likely exhibit even more drastic trade-offs. Future work points toward "fusion" systems: databases adopting blockchain-style verifiability and blockchains adopting database-style concurrency and sharding. This "twin study" provides the architectural map for that evolution.

Summary updated

BibTeX
@misc{ruan2019blockchains,
  author = {Pingcheng Ruan and Gang Chen and Tien Tuan Anh Dinh and Qian Lin and Dumitrel Loghin and Beng Chin Ooi and Meihui Zhang},
  title = {{Blockchains and Distributed Databases: a Twin Study}},
  year = {2019},
  eprint = {1910.01310},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.01310},
}
Figure