当前位置:网站首页>Distributed Base theory
Distributed Base theory
2022-07-21 19:19:00 【Idle cat】
Just CAP theory ,C and A Only one is guaranteed :
CP, At the expense of functional integrity and availability
AP, At the expense of strong consistency
BASE(Basically Available, Soft State, Eventual Consistency Basic available 、 Soft state 、 Final consistency ) Yes CAP AP The extension of theory . The core idea of theory is : We can't achieve strong consistency , But each application can be based on its own business characteristics , Take appropriate measures to achieve the final consistency of the system .
Basic available :
1. Lost response time >>> Add queue peak clipping operation
2. Loss of some functions >>> Downgrade
Soft state : The soft state is relatively atomic
- Atomicity ( Hard state ) >>> The data copies of multiple nodes are required to be consistent , This is a kind of " Hard state "
- Soft state ( Weak state ) >>> Allow data in the system to have intermediate states , It is considered that this state does not affect the overall availability of the system , That is, the system is allowed to have data delay in the data copies of multiple different nodes
Final consistency :
The system can ensure that there is no other new update operation , The data will eventually reach a consistent state , Therefore, all client data access to the system can finally get the latest value .
Causal consistency (Causal consistency)
If node A After updating some data, the node is notified B, Then the node B The access modification operations of are all based on A Updated value , meanwhile , And nodes A There is no causal relationship C There are no such restrictions on data access
Read what you have written (Read your writes)
The specific form of causality , A node A You can always read your updated data
Conversation consistency (Session consistency)
Access the storage system with a valid session , The system shall ensure that the process reads what it has written
Monotonous reading consistency (Monotonic read consistency)
After a node reads a specific value from the system , Then the node will not read any previous value from the system
Monotonous writing consistency (Monotonic write consistency)
A system should be able to ensure that writes from the same node are executed in sequence ( Ensure that write operations are serialized )
边栏推荐
猜你喜欢
MYSQL08_ Overview of sub query, single row, multi row, related sub query
EasyExcel如何在项目中导出文件
spark rdd,spark SQL的应用案例
【LeetCode】1260. 2D mesh migration
[QT入门篇]窗口类的应用
Tutorial (7.0) 03 Forticlient EMS configuration and Management * forticlient EMS * Fortinet network security expert NSE 5
分布式.达到什么指标才算高并发
hcip第二天实验
MYSQL09_ Elaborate on database data types
Web APIs DOM- 网页特效篇-元素大小和位置
随机推荐
05 正则表达式语法
KingbaseES V8R6有什么办法,默认不读取sys_catalog下的系统视图?
Unity - input class
What is gamefi?
MYSQL09_精讲数据库数据类型
Spark RDD, application case of spark SQL
论文翻译解读:Logmap:Logic-based and scalable ontology matching
论文翻译解读:Anytime Bottom-Up Rule Learning for Knowledge Graph Completion【AnyBURL】
Session 和 Cookies 有什么区别?
kubernetes的这几种存储卷,别再傻傻分不清了
分布式.负载均衡
Create high-performance applications and continuously optimize the user experience
What is the difference between session and cookies?
Postgresql源码(64)查询执行——子模块Executor(2)执行前的数据结构和执行过程
LBA转换成CHS公式
使用MogDB Operator在Kubernetes上部署MogDB集群(MogDB Stack)
如何解决wget命令出现Unable to establish SSL connection.
程序员第一课“hello word”,你知道网工第一课吗?
Eight solutions to cross domain problems (the latest and most comprehensive)
Peripheral driver library development notes 44:ddc114 ADC driver