Distributed Transaction, 2-Phase Commit, 3-Phase Commit
Posted tonix
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Distributed Transaction, 2-Phase Commit, 3-Phase Commit相关的知识,希望对你有一定的参考价值。
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的准备阶段再次一分为二,这样三阶段提交就有
CanCommit
、PreCommit
、DoCommit
三个阶段。
Apparently, neither of the above algorithms is reliable enough - neither of them is able to handle networkmachinecommunication failures. So the solution will be.. Paxos!
以上是关于Distributed Transaction, 2-Phase Commit, 3-Phase Commit的主要内容,如果未能解决你的问题,请参考以下文章
启动“Distributed Transaction Coordinator”服务 错误1053
DTC服务启动提示:“Windows不能在本地计算机启动Distributed Transaction Coordinator。有关更多