From 75721c4a882f8e9a25d968faa10aa947a4ad66e4 Mon Sep 17 00:00:00 2001 From: Freeze <42697182+zbzbzzz@users.noreply.github.com> Date: Fri, 27 Jan 2023 18:56:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E4=BA=86=E4=B8=AA=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theorem&algorithm&protocol/cap&base-theorem.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/distributed-system/theorem&algorithm&protocol/cap&base-theorem.md b/docs/distributed-system/theorem&algorithm&protocol/cap&base-theorem.md index 8f77f284..fcef56b2 100644 --- a/docs/distributed-system/theorem&algorithm&protocol/cap&base-theorem.md +++ b/docs/distributed-system/theorem&algorithm&protocol/cap&base-theorem.md @@ -144,7 +144,7 @@ CAP 理论这节我们也说过了: 那实现最终一致性的具体方式是什么呢? [《分布式协议与算法实战》](http://gk.link/a/10rZM) 中是这样介绍: -> - **读时修复** : 在读取数据时,检测数据的不一致,进行修复。比如 Cassandra 的 Read Repair 实现,具体来说,在向 Cassandra 系统查询数据的时候,如果检测到不同节点 的副本数据不一致,系统就自动修复数据。 +> - **读时修复** : 在读取数据时,检测数据的不一致,进行修复。比如 Cassandra 的 Read Repair 实现,具体来说,在向 Cassandra 系统查询数据的时候,如果检测到不同节点的副本数据不一致,系统就自动修复数据。 > - **写时修复** : 在写入数据,检测数据的不一致时,进行修复。比如 Cassandra 的 Hinted Handoff 实现。具体来说,Cassandra 集群的节点之间远程写数据的时候,如果写失败 就将数据缓存下来,然后定时重传,修复数据的不一致性。 > - **异步修复** : 这个是最常用的方式,通过定时对账检测副本数据的一致性,并修复。