[Paper Review] Blockchain Meets Database: Design and Implementation of a Blockchain Relational Database
This paper introduces the first blockchain relational database that combines blockchain's decentralized trust with the rich transactional and query capabilities of relational databases. It proposes two novel approaches—pre-ordering and parallel execution with block-height-based serializable snapshot isolation—enabling consistent, secure, and high-performance replication across mutually distrustful nodes, implemented on PostgreSQL with strong performance and scalability results.
In this paper, we design and implement the first-ever decentralized replicated relational database with blockchain properties that we term blockchain relational database. We highlight several similarities between features provided by blockchain platforms and a replicated relational database, although they are conceptually different, primarily in their trust model. Motivated by this, we leverage the rich features, decades of research and optimization, and available tooling in relational databases to build a blockchain relational database. We consider a permissioned blockchain model of known, but mutually distrustful organizations each operating their own database instance that are replicas of one another. The replicas execute transactions independently and engage in decentralized consensus to determine the commit order for transactions. We design two approaches, the first where the commit order for transactions is agreed upon prior to executing them, and the second where transactions are executed without prior knowledge of the commit order while the ordering happens in parallel. We leverage serializable snapshot isolation (SSI) to guarantee that the replicas across nodes remain consistent and respect the ordering determined by consensus, and devise a new variant of SSI based on block height for the latter approach. We implement our system on PostgreSQL and present detailed performance experiments analyzing both approaches.
Motivation & Objective
- To address the challenge of ensuring consistent transaction ordering across mutually distrustful, decentralized database replicas in a permissioned blockchain setting.
- To leverage decades of relational database optimization and features (e.g., complex queries, constraints, triggers) while preserving blockchain properties like immutability and auditability.
- To design a system that supports rich data types, provenance queries, and enterprise-grade transaction processing in a decentralized, trustless environment.
- To enable blockchain application development using familiar database tools and SQL, reducing the barrier for enterprise adoption.
- To overcome limitations of existing blockchain platforms that re-implement basic database features and lack support for complex queries and data integrity constraints.
Proposed method
- Designs a permissioned blockchain model where known, mutually distrustful organizations run independent PostgreSQL instances that are replicas.
- Proposes two architectural approaches: one where transaction commit order is agreed before execution (pre-ordering), and another where transactions are executed in parallel with ordering determined post-hoc.
- Introduces a novel variant of Serializable Snapshot Isolation (SSI) based on block height to ensure serializability across replicas despite asynchronous execution.
- Leverages existing relational database features such as ACID transactions, constraints, triggers, and SQL query support, while extending them for blockchain consistency.
- Implements the system on PostgreSQL and uses consensus protocols to determine block ordering, ensuring all nodes agree on the final commit sequence.
- Employs a hybrid model where transaction logs are cryptographically signed and replicated, and consistency is enforced via block-height-aware SSI to prevent anomalies.
Experimental results
Research questions
- RQ1How can a decentralized, replicated relational database be designed to ensure consistent transaction ordering across mutually distrustful nodes?
- RQ2Can existing relational database features like complex queries, constraints, and triggers be effectively integrated into a blockchain-like system?
- RQ3What are the performance implications of executing transactions in parallel across nodes without prior knowledge of commit order?
- RQ4How can serializability be guaranteed in a decentralized, asynchronous environment where all nodes execute transactions independently?
- RQ5To what extent can blockchain properties be achieved without sacrificing the performance and expressiveness of a full relational database?
Key findings
- The proposed system successfully implements a blockchain relational database that supports complex queries, constraints, triggers, and provenance tracking—features absent in most blockchain platforms.
- The block-height-based SSI variant ensures serializability across replicas even when transactions are executed in parallel, maintaining consistency without centralized coordination.
- Performance experiments show that both design approaches are viable, with the parallel execution model offering better scalability for high-throughput workloads.
- The system achieves strong consistency across replicas by aligning transaction execution with consensus-determined block ordering, preventing anomalies in distributed environments.
- Optimizations such as batch commits and background conflict checking can significantly improve performance, especially in heterogeneous network conditions.
- The integration with PostgreSQL enables seamless use of existing enterprise tooling for backup, analytics, and system integration, enhancing real-world deployability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.