📌  相关文章
📜  CAP 定理 - Go 编程语言 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:01.633000             🧑  作者: Mango

代码示例1
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

- When a network partition failure happens should we decide to
    - Cancel the operation and thus decrease the availability but ensure consistency
    - Proceed with the operation and thus provide availability but risk inconsistency