当前位置:网站首页>Distributed cap theory
Distributed cap theory
2022-07-04 04:30:00 【InfoQ】
CAP A brief introduction to the theory

CAP Two out of three
Uniformity (Consistency): A write operation returns success , Then all subsequent read requests must read this new data ; If the return fails , Then all read operations cannot read this data . All nodes access the same latest data .
Usability (Availability): High availability for data updates , Requests can be processed in a timely manner , Not always waiting for , Even if a node fails .
Partition tolerance (Partition tolerance): Can tolerate network partition , When the network is disconnected , The separated nodes can still provide services to the outside world .
Yes CAP Theoretical understanding
- If one copy is allowed to update , It will lead to inconsistent data , That is, to lose C nature .
- If in order to ensure consistency , Set the replica on one side of the partition to unavailable , So lost again A nature .
- Unless two copies can communicate with each other , To guarantee C And promise A, This in turn leads to the loss of P nature .
CAP In depth theoretical understanding
- First , Because zoning rarely happens , So there's no reason to sacrifice when there's no partition in the system C or A.
- secondly ,C And A The trade-offs can occur repeatedly in the same system with very small granularity , And every decision may be made because of specific operation , Even because it involves specific data or users .
- Last , All three properties can be measured in degree , It's not black or white with or without . Usability is obviously in 0% To 100% Between successive changes , There are many levels of consistency , Even zoning can be subdivided into different meanings , For example, different parts of the system can have different cognition about whether there is a partition .
边栏推荐
- NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
- Rhcsa 04 - process management
- 网络 - VXLAN
- ModStartBlog 现代化个人博客系统 v5.2.0 源码下载
- The interactive solution of JS and app in the H5 page embedded in app (parameters can be transferred and callbacks can be made)
- 什么是上下文?
- 陪驾注意事项 这23点要注意!
- ROS2中CMake编译选项的设置
- A beautiful API document generation tool
- (指针)自己写一个比较字符串大小的函数,功能与strcmp类似。
猜你喜欢

Ppt tutorial, how to save a presentation as a PDF file in PowerPoint?

架构实战营 - 第 6 期 模块九之毕业设计
TCP-三次握手和四次挥手简单理解

Distributed system: what, why, how

Statistical genetics: Chapter 3, population genetics

旭化成首次参展第五届中国国际进口博览会(5th CIIE)

How to view installed r packages in R language

Senior developers tell you, how to write excellent code?

02 specific implementation of LS command

2021 RSC | Drug–target affinity prediction using graph neural network and contact maps
随机推荐
Wechat official account infinite callback authorization system source code
Graduation project: design seckill e-commerce system
Leetcode 121 best time to buy and sell stock (simple)
2020 Bioinformatics | TransformerCPI
Senior developers tell you, how to write excellent code?
RHCSA 01 - 创建分区与文件系统
RPC技术
Architecture practice camp - graduation project of module 9 of phase 6
A beautiful API document generation tool
Redis: hash type data operation command
96% of the collected traffic is prevented by bubble mart of cloud hosting
“找工作不要太在意工资”,这是我听过最大的谎言
Architecture training graduation design + summary
领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
Talking about what a high-quality little red book copy needs to have
leetcode 121 Best Time to Buy and Sell Stock 买卖股票的最佳时机(简单)
架构训练毕业设计+总结
Why use node
Unity Resource path
疫情远程办公经验分享| 社区征文