问题描述
wiki 上的一句话让我很困惑,声称 2pc 是一种特殊类型的共识。
In transaction processing,databases,and computer networking,the two-phase commit protocol (2PC) is a type of atomic commitment protocol (ACP). It is a distributed algorithm that coordinates all the processes that participate in a distributed atomic transaction on whether to commit or abort (roll back) the transaction (it is a specialized type of consensus protocol)
据我所知,共识的目的是在系统的不同方面决定一个变量的值,而交易可能会确保多个变量的值。如果我是对的,那么共识算法应该是交易的一个子集。为什么相反??
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)