Interview Question - CAP theorem and ACID

看这两篇文章:
https://en.wikipedia.org/wiki/CAP_theorem

No distributed system is safe from network failures, thus network partitioning generally has to be tolerated. In the presence of a partition, one is then left with two options: consistency or availability. When choosing consistency over availability, the system will return an error or a time out if a particular information cannot be guaranteed to be up to date due to network partitioning. When choosing availability over consistency, the system will always process the query and try to return the most recent available version of the information, even if it cannot guarantee it is up to date due to network partitioning.[4]

In absence of network failure, that is when the distributed system is running normally, both availability and consistency can be satisfied.
CAP is frequently misunderstood as if one had to choose to abandon one of the three guarantees at all times. In fact, the choice is really between consistency and availability for when a partition happens only; at all other times, no trade-off has to be made.[5]

Database systems designed with traditional ACID guarantees in mind such as RDBMS choose consistency over availability, whereas systems designed around the BASE philosophy, common in the NoSQL movement for example, choose availability over consistency.[6]

https://www.quora.com/What-Is-CAP-Theorem-1

Anyway, Good luck, Richardo! -- 10/10/2016

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 一扇门打开,一扇门虚掩着 一个安静,一个是悦耳的音乐 我在门前静静凝立,把来生回顾 我总要打开一扇门,然后继续走下...
    王错错阅读 838评论 0 1
  • 跟女儿起先说好的约定仍旧没有变带小外孙的好活交给了亲家。我仿佛依旧活在10年前依然故我的模样,虽说有自私的成份...
    真浈阅读 1,729评论 0 1
  • 相信大家都会有一段美好的童年,打开童年的书回忆那时候的环境,虽然和电子设备比起来差远了,可生活却是现在孩子无法比拟...
    靚兮阅读 2,767评论 0 0
  • 师父告诉大家,人的瞋恨心不但造成了自己对自己的伤害,而且造成了对别人的伤害,那些想不通、带着恨心的人为了报复,不惜...
    若兰似连阅读 2,472评论 0 0