- Learning Apache Cassandra(Second Edition)
- Sandeep Yarabarla
- 196字
- 2021-07-03 00:19:23
Immediate consistency
When we write a piece of data to a database, it is our hope that that data is immediately available to any other process that may wish to read it. From another point of view, when we read some data from a database, we would like to be guaranteed that the data we retrieve is the most recently updated version. This guarantee is called immediate consistency, and it's a property of most common single-master databases such as MySQL and PostgreSQL.
Distributed systems such as Cassandra typically do not provide an immediate consistency guarantee. Instead, developers must be willing to accept eventual consistency, which means when data is updated, the system will reflect that update at some point in the future. Developers are willing to give up immediate consistency precisely because it is a direct trade-off with high availability.
In the case of Cassandra, that trade-off is made explicit through tunable consistency. Each time you design a write or read path for data, you have the option of immediate consistency with less resilient availability, or eventual consistency with extremely resilient availability. We'll cover consistency tuning in great detail in Chapter 10, How Cassandra Distributes Data.
- 樂(lè)高機(jī)器人:WeDo編程與搭建指南
- 腦動(dòng)力:Linux指令速查效率手冊(cè)
- R Data Mining
- Managing Mission:Critical Domains and DNS
- 蕩胸生層云:C語(yǔ)言開(kāi)發(fā)修行實(shí)錄
- 數(shù)據(jù)挖掘方法及天體光譜挖掘技術(shù)
- 21天學(xué)通C語(yǔ)言
- SAP Business Intelligence Quick Start Guide
- Statistics for Data Science
- 嵌入式操作系統(tǒng)原理及應(yīng)用
- 實(shí)用網(wǎng)絡(luò)流量分析技術(shù)
- Machine Learning Algorithms(Second Edition)
- Drupal高手建站技術(shù)手冊(cè)
- 大數(shù)據(jù):引爆新的價(jià)值點(diǎn)
- 穿越計(jì)算機(jī)的迷霧