This commit is contained in:
by931
2022-09-06 22:30:37 +08:00
parent 66970f3e38
commit 3d6528675a
796 changed files with 3382 additions and 3382 deletions

View File

@@ -293,7 +293,7 @@ maintClient.alarmDisarm(alarmList.get(0));
<p>完成业务流程后,删除对应的 Key 释放锁。</p>
<h4>3.2 基于 Etcd 的分布式锁的原理图</h4>
<p>根据上一节中介绍的业务流程基于Etcd的分布式锁示意图如下。</p>
<p><img src="assets/d29c3de0-b9c9-11e8-bcd3-a9db59a0d5f6" alt="enter image description here" /></p>
<p><img src="assets/d29c3de0-b9c9-11e8-bcd3-a9db59a0d5f6" alt="png" /></p>
<p>业务流程图大家可参看这篇文章<a href="https://blog.csdn.net/koflance/article/details/78616206">《Zookeeper 分布式锁实现原理》</a></p>
<h4>3.3 基于 Etcd 实现分布式锁的客户端 Demo</h4>
<p>Demo 代码如下:</p>