当前位置:网站首页>Briefly describe the similarities and differences between raft and Paxos in design
Briefly describe the similarities and differences between raft and Paxos in design
2022-07-23 12:47:00 【liangdu_ Zuker】
1.raft And mutil-Paxos The same thing CAP In the model CP Model
2.raft It also uses broadcasting to synchronize information , Use multiple backups to achieve high availability , Use master to realize efficient read-write model , utilize “ Majority rule ” To achieve consistency ( This point is understood as that it is better to reduce dryness and fault tolerance , Because multi person synchronization is easy to make noise ).
The only difference is : raft The time sequence formed by the time difference is used to determine who is Master, and paxos The numerical value and version number are used to determine who is Master.
In terms of advantages and disadvantages ,raft It can reduce the number of message communication , Thus reducing election delays , Performance ratio paxos high , And the final effect is similar to paxos equally . You can also modify master The election rules are as simple . For example, we can change the rule of presidential election from the number of votes to who is handsome , Of course, there is only one ballot box for us to elect president , So you don't need to use “ Majority rule ” To reduce dryness .
If there's a brain crack , That is, no more than half of the votes , Then there will be a re-election ( Fall back into the timeout waiting process ), This is the same as paxos equally .( Brain crack will cause rollback , Because this is what we do with bitcoin ,paxos It's the same thing )
边栏推荐
猜你喜欢

LSM-tree(Log Structured-Merge Tree)的理解

Unity3d:UGUI,UI与特效粒子层级,2018.2以上版本BakeMesh,粒子在两个Image之间且在ScrollView

GameFramework:资源热更代码分析,检查版本信息,下载版本文件,校验版本文件,得到更新文件数量,下载文件,TaskPool

unity3d:向量计算,AOE图形相交

Unity3d:ugui, UI and special effect particle level, bakemesh above 2018.2, particles between two images and in Scrollview
![[AUTOSAR storage stack NVM]](/img/7a/15e01f8ace647b55e11e764dba1b64.png)
[AUTOSAR storage stack NVM]

Unity3D+moba+技能指示器(二)

unity3d:Assetbundle模拟加载,同步加载,异步加载,依赖包加载,自动标签,AB浏览器,增量打包

主机字节序的判定

linkerd服务网格调研笔记
随机推荐
Basic knowledge of high voltage technology
Unity在URP管线下使用TriLib插件加载模型材质不正确的问题
Common sorting method - Select Sorting
HCIP-HCIA知识回顾(二)
Unity Shader丢失问题
*offer--2
Common sort exchange sort
0最短路径问题 LeetCode743. 网络延迟时间
Analyze redis cluster
Three versions and optimization of quick sorting by interval -- friends may not know it
2小时1000人吃饭,要多少台座椅?
GameFramework:资源热更代码分析,检查版本信息,下载版本文件,校验版本文件,得到更新文件数量,下载文件,TaskPool
C# 自定义Queue队列集合
[AUTOSAR DCM 1. module introduction (DSL, DSD, DSP)]
Analysis of Internet Protocol (II)
剖析Redis中的Sentinel模式
HCIP --- HDLC和PPP协议
如何用普通的文本编辑器写Web页面
Using one-way linked list to realize queue
WebSocket 协议讲解