首页> 外文期刊>Concurrency, practice and experience >Non-blocking two-phase commit using blockchain
【24h】

Non-blocking two-phase commit using blockchain

机译:使用区块链的非阻塞两阶段提交

获取原文
获取原文并翻译 | 示例

摘要

The two-phase commit (2PC) protocol has long been known to have a provably inevitable vulnerability to blocking or non-progress amidst server crashes, even when the distributed database system guarantees the most demanding timing-related or "synchrony" requirements. Our aim here is to eliminate this vulnerability by using a blockchain for coordinating 2PC execution. We present the impossibilities, the possibilities, the cost, and the trade-offs in this blockchain-based approach to blocking-free management of distributed transactions. We prove that a non-blocking and blockchain-coordinated 2PC protocol can exist only if both the blockchain and distributed database systems meet synchrony requirements; otherwise, although blocking remains eliminated, transactions can unnecessarily abort. We present a blockchain-coordinated 2PC protocol and provide rigorous arguments for its correctness under the synchrony requirements. We then implement this protocol on the Ethereum Testnet and demonstrate, through our experiments, that the monetary cost of executing smart contracts is quite small, that the protocol performance slows down when using a public blockchain like Ethereum, and that even major violations of synchrony requirements lead only to relatively small increases in unnecessary aborts. We thus identify a trade-off between improving protocol performance and admitting a risk that transactions could occasionally abort unnecessarily.
机译:众所周知,两阶段提交(2PC)协议在服务器崩溃时具有阻止或非进行中的不可避免的漏洞,即使分布式数据库系统保证了最苛刻的时序相关或“同步”要求也是如此。我们的目的是通过使用区块链来协调2PC执行来消除此漏洞。我们介绍了这种基于区块链的无障碍分布式交易管理方法的可能性,可能性,成本和权衡。我们证明,只有在区块链和分布式数据库系统都满足同步要求的情况下,才能存在无阻塞且与区块链协调的2PC协议。否则,尽管消除了阻塞,但事务可能会不必要地中止。我们提出了一个区块链协调的2PC协议,并在同步性要求下为其严格性提供了严格的论据。然后,我们在以太坊测试网上实施该协议,并通过实验证明执行智能合约的金钱成本非常小,使用以太坊等公共区块链时协议性能会降低,甚至严重违反同步要求只会导致不必要的流产相对较少的增加。因此,我们确定了在提高协议性能和承认交易偶尔会不必要地中止的风险之间进行权衡的问题。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号