轻量级容错组件 Resilience4j 发布了最新的 2.0.0 版本,版本号上了个大号,但是没有什么额外的更新,只是更新了依赖包,分别是:
- 移除对 Vavr 的依赖
- Upgraded to Java 17
- Upgraded to Kotlin 1.7.20
- Upgraded to Spring Boot 2.7
- Upgraded to Micronaut 3.7.3
Resilience4j 是一个轻量级的容错组件,其灵感来自于 Hystrix。
限速组件架构:
Resilience4j 提供了如下几款核心组件
-
resilience4j-circuitbreaker: Circuit breaking
-
resilience4j-ratelimiter: Rate limiting
-
resilience4j-bulkhead: Bulkheading
-
resilience4j-retry: Automatic retrying (sync and async)
-
resilience4j-cache: Response caching