当前位置:网站首页>Cap theory and base theory
Cap theory and base theory
2022-07-27 15:21:00 【Hua Weiyun】
cap Theory and base theory
CAP theory
cap Theory is an important concept in distributed systems ,c For consistency ,consistency, It is used to indicate that the data under the distributed system is consistent
a Indicates availability ,availability, Indicates that the service provided externally is always available
p It's partition fault tolerance ,partition tolerance, In other words, the problem of network partition in the distributed system can also ensure the availability of external services , The so-called network partition is that the distributed system is divided into different independent areas due to network failure . The fault tolerance of network partition must be guaranteed , Otherwise, it is not called distributed system if it is divided into different independent fields , It's a single system .
Then the service support can be provided after the data synchronization in the distributed system , This is it. CP, Guarantee consistency
The data of distributed system does not require strong consistency , First, ensure that the services are available , This is it. AP, Guaranteed availability
BASE theory
CAP In theory CP or AP,BASE The theory is to keep the service available for a period of time , Data inconsistency ,BASE Theory has three characteristics :Basically Available, Basically available , The second characteristic is Soft State, Indicates a soft state , That is to say, the system has an intermediate state , At this time, the system can have inconsistent data, but the system as a whole is available , The third characteristic is Eventually consistent , That's final consistency , Ensure the final consistency of distributed project implementation data , For example, when calling wechat or Alipay, you don't need to wait for payment , But there is an inconsistent state at this time of operation , The consistency will be guaranteed after the payment is successfully callback
Distributed transactions
The ideas involved in distributed transactions include two-phase commit and three-phase commit , Two stage submission is divided into preparation stage and submission stage , In the preparation phase, the coordinator first asks all services involved in the transaction whether they can submit , All services participating in the transaction execute the transaction first and send it to the coordinator. Is it successful or aborted , The submission phase is when the coordinator receives a message from the participants, one of which is an abort message, and all participants will be rolled back , Otherwise, submit
summary
This article talks about the related content of distributed transactions , Include CAP theory 、BASE theory , Finally, the concept of distributed transaction is introduced , These theories are to better understand distributed transactions , Including his evolution .
边栏推荐
- Reading notes of lifelong growth (I)
- 2022-07-27日报:IJCAI 2022杰出论文公布,大陆作者中稿298篇拿下两项第一
- ad7606与stm32连接电路介绍
- STM32之CAN ---CAN ID过滤器分析
- 电子制造行业的数字化转型突破点在哪?精益制造是关键
- Kotlin的基础用法
- Lua study notes
- 资本频频加码,急于上市的和府捞面有多“疯狂”?
- Stm32f103c8t6 drives ssd1306 0.96 "IIC OLED display under Arduino frame
- Photoelectric isolation circuit design scheme (six photoelectric isolation circuit diagrams based on optocoupler and ad210an)
猜你喜欢

于不确定中见“安全感” 沃尔沃2022年中问道

Selenium 报错:session not created: This version of ChromeDriver only supports Chrome version 81

See "sense of security" in uncertainty Volvo asked in 2022

Jmeter录制接口自动化

泛型

LeetCode 74. 搜索二维矩阵 二分/medium

MySQL 面试40连问,面试官你再问下去我可要翻脸了

TL431-2.5v基准电压芯片几种基本用法

LeetCode 面试题 17.21. 直方图的水量 双指针,单调栈/hard

Dialog manager Chapter 3: create controls
随机推荐
cap理论和base理论
同花顺开户在手机开户安全吗?
4种单片机驱动继电器方案
The first common node of the two linked lists of "Jianzhi offer"
STM32之CAN ---CAN ID过滤器分析
华为鸿蒙模拟器去除顶部导航栏方法
LeetCode 191. Number of 1 Bits(位1的个数) 位运算/easy
Zhou Hongyi: if the digital security ability is backward, it will also be beaten
Kubernetes CNI classification / operation mechanism
What is the breakthrough point of digital transformation in the electronic manufacturing industry? Lean manufacturing is the key
Unity最简洁的对象池实现
USB interface electromagnetic compatibility (EMC) solution
微信公众平台开发概述
一些二进制位操作
NEFU118 n!后面有多少个0【算术基本定理】
Principle of MOS tube to prevent reverse connection of power supply
数据仓库项目从来不是技术项目
3.3-5v转换
多表查询_练习1&练习2&练习3
代码覆盖率统计神器-jacoco工具实战