当前位置:网站首页>分布式BASE理论
分布式BASE理论
2022-07-05 00:13:00 【詹Sir(开源字节)】
什么是BASE
eBay 的架构师 Dan Pritchett 源于对大规模分布式系统的实践总结,在 ACM 上发表文章提出 BASE 理论,BASE 理论是对 CAP 理论的延伸,核心思想是即使无法做到强一致性(Strong Consistency,CAP 的一致性就是强一致性),但应用可以采用适合的方式达到最终一致性(Eventual Consitency)。
- Basically Available(基本可用)分布式系统在出现不可预知故障的时候,允许损失部分可用性
- Soft state(软状态)软状态也称为弱状态,和硬状态相对,是指允许系统中的数据存在中间状态,并认为该中间状态的存在不会影响系统的整体可用性,即允许系统在不同节点的数据副本之间进行数据同步的过程存在延时。
- Eventually consistent(最终一致性)最终一致性强调的是系统中所有的数据副本,在经过一段时间的同步后,最终能够达到一个一致的状态。因此,最终一致性的本质是需要系统保证最终数据能够达到一致,而不需要实时保证系统数据的强一致性
CAP 与 BASE 关系
BASE是对CAP中一致性和可用性权衡的结果,其来源于对大规模互联网系统分布式实践的结论,是基于CAP定理逐步演化而来的,其核心思想是即使无法做到强一致性(Strong consistency),更具体地说,是对 CAP 中 AP 方案的一个补充。其基本思路就是:通过业务,牺牲强一致性而获得可用性,并允许数据在一段时间内是不一致的,但是最终达到一致性状态。

CAP 与 ACID 关系
ACID 是传统数据库常用的设计理念,追求强一致性模型。BASE 支持的是大型分布式系统,提出通过牺牲强一致性获得高可用性。
ACID 和 BASE 代表了两种截然相反的设计哲学,在分布式系统设计的场景中,系统组件对一致性要求是不同的,因此 ACID 和 BASE 又会结合使用。
如若转载,请注明出处:开源字节 https://sourcebyte.cn/article/177.html
边栏推荐
- Go step on the pit - no required module provides package: go mod file not found in current directory or any parent
- 青海省国家湿地公园功能区划数数据、全国湿地沼泽分布数据、全国省市县自然保护区
- Application of fire fighting system based on 3D GIS platform
- Pytoch --- use pytoch to realize linknet for semantic segmentation
- Tester's algorithm interview question - find mode
- Illustrated network: what is gateway load balancing protocol GLBP?
- go踩坑——no required module provides package : go.mod file not found in current directory or any parent
- Detailed explanation of openharmony resource management
- 如何避免电弧产生?—— AAFD故障电弧探测器为您解决
- GDB常用命令
猜你喜欢

OpenHarmony资源管理详解

Verilog tutorial (11) initial block in Verilog

基于三维gis平台的消防系统运用

多回路仪表在基站“转改直”方面的应用

How to avoid arc generation—— Aafd fault arc detector solves the problem for you

Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC

Pytoch --- use pytoch to realize linknet for semantic segmentation

In June, the list of winners of "Moli original author program" was announced! Invite you to talk about the domestic database

【路径规划】RRT增加动力模型进行轨迹规划

Combien de temps faut - il pour obtenir un certificat PMP?
随机推荐
Combien de temps faut - il pour obtenir un certificat PMP?
Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
How to apply for PMP project management certification examination?
go踩坑——no required module provides package : go.mod file not found in current directory or any parent
Meet ThreadPoolExecutor
The waterfall flow layout demo2 (method 2) used by the uniapp wechat applet (copy and paste can be used without other processing)
P3304 [SDOI2013]直径(树的直径)
【雅思阅读】王希伟阅读P4(matching1)
模板的进阶
积分商城游戏设置的基本要点
Is it safe to open an account in the College of Finance and economics? How to open an account?
How long does it take to obtain a PMP certificate?
Power operation and maintenance cloud platform: open the new mode of "unattended and few people on duty" of power system
Réseau graphique: Qu'est - ce que le Protocole d'équilibrage de charge de passerelle glbp?
[IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])
[Peking University] tensorflow2.0-1-opening
Business implementation - the log is written to the same row of data
22-07-02周总结
IELTS examination process, what to pay attention to and how to review?
【雅思阅读】王希伟阅读P3(Heading)