当前位置:网站首页>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 .
边栏推荐
- Wechat brain competition answer applet_ Support the flow main belt with the latest question bank file
- Asynchronous development process - touch your hand and lead you to realize a promise
- ctf-pikachu-XSS
- [microservice openfeign] use openfeign to remotely call the file upload interface
- MIN_RTO 对话
- A beautiful API document generation tool
- How to add custom API objects in kubernetes (1)
- 精品网址导航主题整站源码 wordpress模板 自适应手机端
- leetcode刷题:二叉树09(二叉树的最小深度)
- Wechat official account infinite callback authorization system source code
猜你喜欢

Exercises in quantum mechanics

什么是上下文?

Restore the subtlety of window position

多位科技公司创始人向Entrepreneur First提供高达1.58亿美元的C轮融资,协助其投资下一代全球创新者

R语言中如何查看已安装的R包

Redis:有序集合zset类型数据操作命令

Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)

浅谈JVM的那些事

Senior developers tell you, how to write excellent code?

Graduation project: design seckill e-commerce system
随机推荐
Idea modify body color
Redis: order collection Zset type data operation command
博朗与Virgil Abloh于2021年为纪念博朗品牌100周年而联合打造的“功能性艺术”将在博物馆展出Abloh作品期间首次亮相
RHCSA 08 - automount配置
架构训练毕业设计+总结
Keysight N9320B射频频谱分析仪解决轮胎压力监测方案
Distributed system: what, why, how
Imitation of "game bird" source code, mobile game issue evaluation, open service, open test collection, game download website template
Operation of ES6
FT2000+下LPC中断绑核使用说明
The interactive solution of JS and app in the H5 page embedded in app (parameters can be transferred and callbacks can be made)
Senior developers tell you, how to write excellent code?
什么是上下文?
Understand the principle of bytecode enhancement technology through the jvm-sandbox source code
疫情远程办公经验分享| 社区征文
Redis: operation command for collecting set type data
y55.第三章 Kubernetes从入门到精通 -- HPA控制器及metrics-server(二八)
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
Lnk2038 detected a mismatch of "runtimelibrary": the value "md_dynamicrelease" does not match the value "mdd_dynamicdebug" (in main.obj)