Can relational database scale horizontally

后端 未结 4 1948
自闭症患者
自闭症患者 2021-02-01 03:39

After some googling I have found:

Note from mysql docs:

MySQL Cluster automatically shards (partitions) tables across nodes, enabling databases

4条回答
  •  余生分开走
    2021-02-01 04:34

    Thanks for the question and answer. I was trying to explain this to someone like this:

    In terms of the CAP theorem, you can't have all three. So when a partition (network or server failure) occurs:

    • A relational database on a single server is giving you C (consistency). So when a P (partition - server/network failure) occurs, you can't have A (availability - db goes down)

    • A nosql datastore gives you A, so when a P occurs, you can't have C (one or more of your replicated partitions will be out of sync, until the n/w comes back and they all sync up). So it will only be eventually consistent

提交回复
热议问题