Only can use restTemplate to call service api by using resilience4j?
See original GitHub issueResilience4j version: 1.7.1
Java version: 17
I’m new to use resilience4j. I write a service A and a service B. I add circuit-breaker in service B , because I will call service A api in service B. At first, I use other http library to call api, then I find resilience4j record service A error response as success call. but after I use spring restTemplate
bean to call service A api, it work correctly.
Did I only use restTemplate
to call service api when using resilience4j?
Issue Analytics
- State:
- Created 10 months ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Making your RestTemplate fault tolerant with Resilience4J
A frequent approach to HTTP in the Spring world is to use RestTemplate. Let's protect it with Resilience4J and its CircuitBreaker.
Read more >Guide to Resilience4j With Spring Boot - Baeldung
Learn how to use the Resilience4j library with a simple Spring ... and add a bean for the RestTemplate that will help us...
Read more >Resilience4j Session-3 Making RESTAPI fault tolerant using ...
In this tutorial we are going to learn how make spring boot based RESTAPI fault tolerant. Under certain circumstances we observe that ...
Read more >Resilience4j Tutorial with Spring Boot | Circuit Breaker, Retry ...
In this tutorial, we will implement Resilience4j with Spring boot and different modules available for it. We will see the theory part and ......
Read more >Rate-Limiting with Spring Boot and Resilience4j - Reflectoring
When working with Spring Boot Resilience4j, we usually only use the @RateLimiter annotation and don't deal with the RateLimiter instance itself.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
thanks for your help!I learn a lot. you are a master absolutely and so kind. Thanks again!
It’s here: https://github.com/resilience4j/resilience4j/blob/master/resilience4j-spring/src/main/java/io/github/resilience4j/circuitbreaker/configure/CircuitBreakerAspect.java