首页 > 其他 > 详细

Distributed Transaction, 2-Phase Commit, 3-Phase Commit

时间:2018-09-24 10:51:09      阅读:135      评论:0      收藏:0      [点我收藏+]

A very clear article (in zh-cn) on the topic (as in the title) - http://www.hollischuang.com/archives/681

Key take-aways:

二阶段提交的算法思路可以概括为:参与者将操作成败通知协调者,再由协调者根据所有参与者的反馈情报决定各参与者是否要提交操作还是中止操作。

除了引入超时机制之外,3PC把2PC的准备阶段再次一分为二,这样三阶段提交就有CanCommitPreCommitDoCommit三个阶段。

Apparently, neither of the above algorithms is reliable enough - neither of them is able to handle network\machine\communication failures. So the solution will be.. Paxos!


Distributed Transaction, 2-Phase Commit, 3-Phase Commit

原文:https://www.cnblogs.com/tonix/p/9694656.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!