arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.01919cs.DC
收藏

区块链遇见数据库:区块链关系数据库的设计与实现

Blockchain Meets Database: Design and Implementation of a Blockchain Relational Database

Senthil Nathan, Chander Govindarajan, Adarsh Saraf, Manish Sethi, Praveen Jayachandran

摘要:

在本文中,我们设计并实现了第一个具有区块链特性的分散复制关系数据库,我们称之为区块链关系数据库。我们强调了区块链平台和复制的关系数据库提供的功能之间的一些相似之处,尽管它们在概念上不同,主要是在它们的信任模型上。受此启发,我们利用关系数据库中的丰富功能、数十年的研究和优化以及可用工具来构建区块链关系数据库。我们考虑一个已知但相互不信任的组织的许可区块链模型,每个组织都运行自己的数据库实例,这些实例是彼此的副本。副本独立执行事务,并参与分散的共识,以确定事务的提交顺序。我们设计了两种方法,第一种方法是在执行事务之前商定事务的提交顺序,第二种方法是在没有提交顺序的先验知识的情况下执行事务,而排序是并行发生的。我们利用可序列化的快照隔离(SSI),以保证跨节点的副本保持一致,并尊重由共识确定的顺序,并设计了一个新的变体的SSI块高度的基础上,后者的方法。我们实现了我们的系统在PostgreSQL上,并提出了详细的性能实验分析这两种方法。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑