写点什么

第六周作业

用户头像
Jack
关注
发布于: 2020 年 11 月 29 日

第一题:请简述 CAP 原理



一致性Consistency:

一致性是说,每次读取的数据都应该是最近写入的数据或者返回一个错误(Every read receives the most recent write or an error),而不是过期数据,也就是说,数据是一致的。



可用性Availability :

可用性是说,每次请求都应该得到一个响应,而不是返回一个错误或者失去响应,不过

这个响应不需要保证数据是最近写入的(Every request receives a (non-error) response, without the guarantee that it contains the most recent write),也就是说系统需要一直都是可以正常使用的,不会引起调用者的异常,但是并不保证响应的数据是最新的。



分区耐受性Partition tolerance:

分区耐受性说,即使因为网络原因,部分服务器节点之间消息丢失或者延迟了,系统依然应该是可以操作的(The system continues to operate despite an arbitrary number of messages being dropped (or delayed) by the network between nodes)。



总结:



用户头像

Jack

关注

还未添加个人签名 2018.03.08 加入

还未添加个人简介

评论

发布
暂无评论
第六周作业