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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 一扇門打開,一扇門虛掩著 一個(gè)安靜,一個(gè)是悅耳的音樂 我在門前靜靜凝立,把來生回顧 我總要打開一扇門,然后繼續(xù)走下...
    王錯(cuò)錯(cuò)閱讀 144評(píng)論 0 1
  • 跟女兒起先說好的約定仍舊沒有變帶小外孫的好活交給了親家。我仿佛依舊活在10年前依然故我的模樣,雖說有自私的成份...
    真湞閱讀 315評(píng)論 0 1
  • 相信大家都會(huì)有一段美好的童年,打開童年的書回憶那時(shí)候的環(huán)境,雖然和電子設(shè)備比起來差遠(yuǎn)了,可生活卻是現(xiàn)在孩子無法比擬...
    靚兮閱讀 390評(píng)論 0 0
  • 師父告訴大家,人的瞋恨心不但造成了自己對(duì)自己的傷害,而且造成了對(duì)別人的傷害,那些想不通、帶著恨心的人為了報(bào)復(fù),不惜...
    若蘭似連閱讀 366評(píng)論 0 0

友情鏈接更多精彩內(nèi)容