当前位置:网站首页>分布式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
边栏推荐
- 如果炒股开华泰证券的户,在网上开户安全吗?
- [论文阅读] CarveMix: A Simple Data Augmentation Method for Brain Lesion Segmentation
- 用快解析内网穿透实现零成本自建网站
- Is the account opening link of Huatai Securities with low commission safe?
- How to use fast parsing to make IOT cloud platform
- How to reduce the stock account Commission and stock speculation commission? Is it safe to open an online account
- Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
- 45 year old professor, she threw two super unicorns
- Fs8b711s14 electric wine bottle opener MCU IC scheme development special integrated IC
- Some basic functions of enterprise projects are developed, and important things are saved to online first a
猜你喜欢

2022.07.03(LC_6111_统计放置房子的方式数)

【selenium自动化】常用注解

如何在外地外网电脑远程公司项目?

Fast analysis -- easy to use intranet security software

Jar batch management gadget

abc 258 G - Triangle(bitset)

快解析内网穿透帮助企业快速实现协同办公

【雅思阅读】王希伟阅读P4(matching2段落信息配对题【困难】)

Using fast parsing intranet penetration to realize zero cost self built website

如何有效对直流列头柜进行监测
随机推荐
Design of emergency lighting evacuation indication system for urban rail transit station
A new method for analyzing the trend chart of London Silver
多回路仪表在基站“转改直”方面的应用
Best practice case of enterprise digital transformation: introduction and reference of cloud based digital platform system security measures
城市轨道交通站应急照明疏散指示系统设计
Five papers recommended for the new development of convolutional neural network in deep learning
He worked as a foreign lead and paid off all the housing loans in a year
【雅思阅读】王希伟阅读P3(Heading)
Meet ThreadPoolExecutor
如何避免电弧产生?—— AAFD故障电弧探测器为您解决
go踩坑——no required module provides package : go.mod file not found in current directory or any parent
How to apply for PMP project management certification examination?
Life is changeable, and the large intestine covers the small intestine. This time, I can really go home to see my daughter-in-law...
Upload avatar on uniapp
Enterprise application business scenarios, function addition and modification of C source code
Application of fire fighting system based on 3D GIS platform
用快解析内网穿透实现零成本自建网站
使用快解析搭建自己的minecraft服务器
OpenHarmony资源管理详解
Jar batch management gadget