diff --git a/docs/notes/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg b/docs/notes/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg
new file mode 100644
index 00000000..598ed2ed
Binary files /dev/null and b/docs/notes/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg differ
diff --git a/docs/notes/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg b/docs/notes/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg
new file mode 100644
index 00000000..97104ded
Binary files /dev/null and b/docs/notes/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg differ
diff --git a/docs/notes/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg b/docs/notes/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg
new file mode 100644
index 00000000..2ab8530a
Binary files /dev/null and b/docs/notes/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg differ
diff --git a/docs/notes/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg b/docs/notes/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg
new file mode 100644
index 00000000..eb46d412
Binary files /dev/null and b/docs/notes/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg differ
diff --git a/docs/notes/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg b/docs/notes/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg
new file mode 100644
index 00000000..895d1ed5
Binary files /dev/null and b/docs/notes/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg differ
diff --git a/docs/notes/分布式.md b/docs/notes/分布式.md
index 1f44dc2d..bbbb7dd0 100644
--- a/docs/notes/分布式.md
+++ b/docs/notes/分布式.md
@@ -71,7 +71,7 @@ EXPIRE 指令可以为一个键值对设置一个过期时间,从而避免了
Zookeeper 提供了一种树形结构级的命名空间,/app1/p_1 节点的父节点为 /app1。
-
+
### 2. 节点类型
@@ -112,7 +112,7 @@ Zookeeper 提供了一种树形结构级的命名空间,/app1/p_1 节点的父
2. 之后将本地消息表中的消息转发到 Kafka 等消息队列中,如果转发成功则将消息从本地消息表中删除,否则继续重新转发。
3. 在分布式事务操作的另一方从消息队列中读取一个消息,并执行消息中的操作。
-
+
## 2PC
@@ -124,7 +124,7 @@ Zookeeper 提供了一种树形结构级的命名空间,/app1/p_1 节点的父
协调者询问参与者事务是否执行成功,参与者发回事务执行结果。
-
+
#### 1.2 提交阶段
@@ -132,7 +132,7 @@ Zookeeper 提供了一种树形结构级的命名空间,/app1/p_1 节点的父
需要注意的是,在准备阶段,参与者执行了事务,但是还未提交。只有在提交阶段接收到协调者发来的通知后,才进行提交或者回滚。
-
+
### 2. 存在的问题
@@ -156,7 +156,7 @@ Zookeeper 提供了一种树形结构级的命名空间,/app1/p_1 节点的父
分布式系统不可能同时满足一致性(C:Consistency)、可用性(A:Availability)和分区容忍性(P:Partition Tolerance),最多只能同时满足其中两项。
-
+
## 一致性
@@ -193,7 +193,6 @@ BASE 是基本可用(Basically Available)、软状态(Soft State)和最
BASE 理论是对 CAP 中一致性和可用性权衡的结果,它的核心思想是:即使无法做到强一致性,但每个应用都可以根据自身业务特点,采用适当的方式来使系统达到最终一致性。
-
## 基本可用
diff --git a/docs/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg b/docs/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg
new file mode 100644
index 00000000..598ed2ed
Binary files /dev/null and b/docs/pics/76c7597a-8316-460d-b8fb-9752c4c43947.jpg differ
diff --git a/docs/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg b/docs/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg
new file mode 100644
index 00000000..97104ded
Binary files /dev/null and b/docs/pics/963fac12-4eac-4922-8a5f-f262c11f80fb.jpg differ
diff --git a/docs/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg b/docs/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg
new file mode 100644
index 00000000..2ab8530a
Binary files /dev/null and b/docs/pics/9ffb82ad-9b7f-44df-b93f-fc8b3f4093a6.jpg differ
diff --git a/docs/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg b/docs/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg
new file mode 100644
index 00000000..eb46d412
Binary files /dev/null and b/docs/pics/b3a421e3-41b4-4e99-b612-bc695a7f622f.jpg differ
diff --git a/docs/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg b/docs/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg
new file mode 100644
index 00000000..895d1ed5
Binary files /dev/null and b/docs/pics/c6fdb958-578d-4685-a5fa-400857be91d5.jpg differ