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

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.

主站蜘蛛池模板: 上饶市| 鄂托克旗| 乡宁县| 县级市| 曲周县| 于都县| 大田县| 莱西市| 苏尼特右旗| 曲阳县| 拉孜县| 南丹县| 五大连池市| 马关县| 万安县| 略阳县| 枞阳县| 高台县| 日照市| 白山市| 合山市| 柯坪县| 蓬莱市| 皮山县| 高尔夫| 济宁市| 惠州市| 定南县| 山丹县| 清河县| 克什克腾旗| 岳阳市| 定州市| 维西| 安溪县| 江都市| 黔江区| 德化县| 洞头县| 葫芦岛市| 金山区|