How to understand the “Availability” of the CAP theorem?

后端 未结 4 1635
旧巷少年郎
旧巷少年郎 2021-02-02 14:47

I don\'t know if this is a proper question here.

As we know, in the CAP theorem, \"A\" means \"Availability\". On wikipedia, the explanation of \"Availability\" is:

4条回答
  •  臣服心动
    2021-02-02 15:23

    An interesting point of view by Coda Hale

    A system that chooses Availability will handle a network partition by continuing to serve all requests even if they lead to inconsistencies (e.g nodes in different network partitions both accept possibly conflicting writes).

    A system that chooses Consistency will limit the amount of legal operations during a network partition (e.g writes are not accepted as they might lead to conflicts/inconsistencies).

    It is not possible to choose both.

    I suppose a hypothetical system can also choose to just crash during network partitions but this does not seem like a very practical design...

提交回复
热议问题