官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 南康市| 铜陵市| 辉县市| 东丰县| 柳江县| 夏河县| 秭归县| 贵阳市| 车险| 满洲里市| 苍山县| 凌云县| 和平县| 汝南县| 新宁县| 武汉市| 肥城市| 额尔古纳市| 泸州市| 乐清市| 怀仁县| 通榆县| 永吉县| 青河县| 永仁县| 绥宁县| 崇礼县| 南川市| 开阳县| 东光县| 青海省| 四平市| 华容县| 唐海县| 长沙市| 凤山市| 仙桃市| 奎屯市| 响水县| 中江县| 岫岩|