在soul-bootstrap项目pom文件引入jar包
<dependency>
<groupId>org.dromara</groupId>
<artifactId>soul-spring-boot-starter-plugin-resilience4j</artifactId>
<version>${project.version}</version>
</dependency>
后台启用插件

然后配置你需要限流配置
到这里你就可以启动项目并开始压测了
压测结果
Starting at 2021/2/3 22:16:04
[Press C to stop the test]
14875 (RPS: 235)9)
---------------Finished!----------------
Finished at 2021/2/3 22:17:08 (took 00:01:03.3489337)
Status 500: 14875
RPS: 243.7 (requests/second)
Max: 44ms
Min: 1ms
Avg: 3.1ms
50% below 2ms
60% below 3ms
70% below 5ms
80% below 6ms
90% below 6ms
95% below 7ms
98% below 7ms
99% below 7ms
99.9% below 9ms
本文介绍了如何在Soul-bootstrap项目中引入Resilience4j插件的jar包,详细讲解了后台启用该插件的步骤,并提供了配置限流的指导。通过这些设置,项目启动后可以进行压测以评估效果。
268

被折叠的 条评论
为什么被折叠?



