Hyperledger Fabric中多版本并发控制冲突的早期检测
Early Detection for Multiversion Concurrency Control Conflicts in Hyperledger Fabric
摘要:
Hyperledger Fabric是一个流行的许可区块链系统,其特点是高度模块化和可扩展的系统,用于部署许可区块链,预计将对广泛的行业产生重大影响。与比特币和以太坊等传统区块链系统不同,Hyperledger Fabric使用EOV模型进行事务处理:提交的交易由认可对等体执行,由订购服务订购和批量处理,并由验证对等体验证。由于这种EOV工作流,出现了一个有据可查的问题,即多版本并发控制冲突。当两个交易试图同时写入和读取账本中的相同密钥时,就会发生这种情况。解决这个问题的现有解决方案包括消除块以支持流式传输事务,在排序阶段修复冲突,以及使用CRDT(无冲突复制数据)技术自动合并冲突事务。在本文中,我们提出了一种新的解决方案,称为早期检测MVCC冲突。我们的解决方案在事务执行的早期阶段检测冲突事务,而不是在验证阶段中止之前处理它们。我们的解决方案的优点是,它检测冲突,尽可能减少冲突的事务在网络上的开销,从而减少端到端的事务延迟和系统的有效吞吐量的增加。我们已经在Hyperledger Fabric中成功实施了我们的解决方案。我们提出了三种不同的实现,实现早期检测。我们的结果表明,我们的解决方案都比基准Fabric性能更好,我们最好的解决方案SyncMap将有效吞吐量提高了23%,并将延迟降低了80%。
英文摘要:
Hyperledger Fabric is a popular permissioned blockchain system that features a highly modular and extensible system for deploying permissioned blockchains which are expected to have a major effect on a wide range of sectors. Unlike traditional blockchain systems such as Bitcoin and Ethereum, Hyperledger Fabric uses the EOV model for transaction processing: the submitted transactions are executed by the endorsing peer, ordered and batched by the ordering services, and validated by the validating peers. Due to this EOV workflow, a well-documented issue that arises is the multi-version concurrency control conflict. This happens when two transactions try to writes and read the same key in the ledger at the same time. Existing solutions to address this problem includes eliminating blocks in favor of streaming transactions, repairing conflicts during the ordering phase, and automatically merging the conflicting transactions using CRDT (Conflict Free Replicated Data) techniques. In this paper, we propose a novel solution called Early Detection for MVCC Conflicts. Our solution detects the conflicting transactions at an early stage of the transaction execution instead of processing them until the validation phase to be aborted. The advantage of our solution is that it detects conflict as soon as possible to minimize the overhead of conflicting transaction on the network resulting in the reduction of the end-to-end transaction latency and the increase of the system's effective throughput. We have successfully implemented our solution in Hyperledger Fabric. We propose three different implementations which realize early detection. Our results show that our solutions all perform better than the baseline Fabric, with our best solution SyncMap which improves the goodput by up to 23% and reduces the latency by up to 80%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。