Resilence4j Circuit Breaker Spring Webflux
If not a medium member, try using the link here to view it for free.
Hystrix is no longer in maintenance mode as per the source code’s Readme file.
Using hystrix had a lot of resources online for sure, and was easy to great extent may be because we were used to it 😎.
But learning a new framework always need some extra effort
In the case of resilence4j (which is still not that widely used compared to hystrix) the usage was straight forward enough.
They have great documentation here.
The article which you are interacting with has following expectations from the reader:-
- Have real need and interest to learn/implement Circuit Breaker using resilence4J
- Have the important tools/setup ready like JDK 11, an IDE, etc.
- Have basic understanding of the Spring, Spring boot, etc.
- Have some knowledge of the Circuit Breaker (as a concept).
Code Repository is hosted on github link is here (neuw/spring-boot-resilence4j-examples (github.com))
The main dependencies required in the code are :-
1. spring-cloud-starter-circuitbreaker-reactor-resilience4j2. spring-boot-starter-aop (without this the circuit breaker does not work)