前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >分布式CAP原理

分布式CAP原理

作者头像
全栈程序员站长
发布2022-08-31 15:42:59
1280
发布2022-08-31 15:42:59
举报

大家好,又见面了,我是你们的朋友全栈君。

Consistent data:

Operations commit or fail in their entirety(atomic)

操作的提交或者失败都是整体的(原子性)

Transactions never observe or result in inconsistent data(consistent)

事务不会导致不一致的数据

Uncommitted transactions are isolated from each other(isolate)

未提交的事务相互之间是隔离的

Once a transaction is committed it is permanent(durable)

一个事务的提交是永久性

Highly available:

Every request should succeed and receive a response

所有请求都必须成功的或者回复

Fault-tolerance:

When some nodes crash or some communication links fail, it is important that the service still perform as expected

当一些节点宕机或者网络连接失败,服务仍然能够perform as expected

定理1

It is impossible in the asynchronous network model to implement a read/write data object that guarantees the following properties:

●Availability

●Atomic consistency

在一个异步网络模型中是不可能实现读写请求达到下面两点要求的:

●可用性

●一致性

反证法证明之。

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/144379.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022年5月1,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档