当前位置:网站首页>分布式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
边栏推荐
- How long does it take to obtain a PMP certificate?
- (脚本)一键部署redis任意版本 —— 筑梦之路
- PMP certificate renewal process
- [IELTS reading] Wang Xiwei reads P4 (matching2 paragraph information matching question [difficult])
- Cross domain request
- Pytoch --- use pytoch to realize linknet for semantic segmentation
- Fast analysis -- easy to use intranet security software
- Date time type and format in MySQL
- URL和URI
- 如何将自己的代码作品快速存证,已更好的保护自己劳动成果
猜你喜欢
[path planning] RRT adds dynamic model for trajectory planning
微服务(Microservice)那点事儿
Data on the number of functional divisions of national wetland parks in Qinghai Province, data on the distribution of wetlands and marshes across the country, and natural reserves in provinces, cities
Hisilicon 3559 universal platform construction: YUV422 pit stepping record
Réseau graphique: Qu'est - ce que le Protocole d'équilibrage de charge de passerelle glbp?
《论文笔记》Multi-UAV Collaborative Monocular SLAM
It's too convenient. You can complete the code release and approval by nailing it!
Ap8022 switching power supply small household appliances ACDC chip offline switching power supply IC
巩固表达式C# 案例简单变量运算
js如何实现数组转树
随机推荐
Instructions for go defer
Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
URLs and URIs
基本放大电路的学习
Cross domain request
Acwing164. Accessibility Statistics (topological sorting +bitset)
abc 258 G - Triangle(bitset)
The waterfall flow layout demo2 (method 2) used by the uniapp wechat applet (copy and paste can be used without other processing)
Tester's algorithm interview question - find mode
Combien de temps faut - il pour obtenir un certificat PMP?
Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
企业公司项目开发好一部分基础功能,重要的事保存到线上第一a
ORB(Oriented FAST and Rotated BRIEF)
How to reduce the stock account Commission and stock speculation commission? Is it safe to open an online account
It's too convenient. You can complete the code release and approval by nailing it!
Paddleocr tutorial
实战模拟│JWT 登录认证
How to use fast parsing to make IOT cloud platform
青海省国家湿地公园功能区划数数据、全国湿地沼泽分布数据、全国省市县自然保护区
JS 将伪数组转换成数组