transactions - 计算机科学中共识和交易之间的关系是什么?
问题描述
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)
据我所知,共识旨在在系统的不同方面决定一个变量的值,而交易可能会确保多个变量的值。如果我是对的,那么共识算法应该是交易的一个子集。为什么相反??
解决方案
推荐阅读
- powershell - 如何获取当前登录的人的用户名并进一步使用?
- asp.net - BulletedList 手动添加多个
- php - AWS kinesis getRecords 返回空 Records[]
- android - 明智地动态创建按钮行列
- ios - 是否可以在 iOS 中使用 URL 将媒体文件共享到 Instagram?
- python - 关键字开始循环和结束循环
- c# - Azure 存储 blob 无法加载文件或程序集 'System.Diagnostics.DiagnosticSource,Version=4.0.4.0,Culture=neutral,PublicKeyToken=cc7b13ffcd
- typescript - axios 中的模拟吸气剂
- bitbucket - Bitbucket 管道从工件 dist/ 中提取文件
- c# - MVVM WPF - 如何更新绑定到 ObservableCollection 的 DataGrid