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

后端 未结 4 1652
旧巷少年郎
旧巷少年郎 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:27

    The Availability in CAP means "All (non-failing) nodes are available for queries". It has NOTHING to do with the Wikipedia link, which is about "High Availability".

    For example, the PAXOS algorithm is CP (no Availability property) because the minority nodes "shut up" during a partition. But if you need Consistency, then PAXOS is considered "High Availability".

    Conversely, a single-node MySQL database server is CA (has the CAP Availability property). It can reboot (and be down for hours while it does BIOS check, FileSystem check, DB Repair, etc). When it finishes booting, it starts responding to queries again. That's perfect Availability (as per the CAP theorem), but horrible availability for "High Availability".

提交回复
热议问题