From 7ef8153d6fcd496e6e969d9028f4a5674bbcc024 Mon Sep 17 00:00:00 2001 From: "Yangkai.Shen" <237497819@qq.com> Date: Mon, 5 Sep 2022 21:45:03 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=20Curator=20?= =?UTF-8?q?=E5=88=86=E5=B8=83=E5=BC=8F=E9=94=81=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=20README=20=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo-distributed-lock/demo-distributed-lock-curator/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-distributed-lock/demo-distributed-lock-curator/README.md b/demo-distributed-lock/demo-distributed-lock-curator/README.md index ad36ec0..4361d72 100644 --- a/demo-distributed-lock/demo-distributed-lock-curator/README.md +++ b/demo-distributed-lock/demo-distributed-lock-curator/README.md @@ -170,7 +170,7 @@ $ docker compose -f docker-compose.env.yml up #### 2.2.2.测试 Curator 分布式锁 -1. 把 `CuratorDistributedLockAutoConfiguration` 类的注释解开,此时 Spring Boot 会自动装配我们的 Redisson 分布式锁 +1. 把 `CuratorDistributedLockAutoConfiguration` 类的注释解开,此时 Spring Boot 会自动装配我们的 Curator 分布式锁 2. 再次启动 `CuratorDistributedLockApplication` 3. 再次模拟 5000 请求数 100 并发的压测环境 `docker run -it --rm xkcoding/ab:alpine-3.16.2 ab -n 5000 -c 100 http://${替换成你电脑的内网IP}:8080/demo/stock/reduce` 4. 等待压测结束,前往数据库查看库存是否从 5000 减为 0