Retry is one of the core modules of the Resilience4j library
Questions tagged [resilience4j-retry]
42 questions
14
votes
2 answers
Issue with io.github.resilience4j version 1.7.2 (SpelResolverConfigurationOnMissingBean.spelResolver() method that does not exist)
I'm using io.github.resilience4j. Everything is working fine with 1.6.1 version but when upgraded to 1.7.1 version my application is not running. Please find my code changes below.
My pom.xml dependencies
…

Mahesh Yadav
- 240
- 2
- 3
- 13
5
votes
1 answer
What is the expected behavior of Resilience4J Retry?
I'm using Resilience4J in a Spring Boot project to make a call to a REST client like so:
@Retry(name = "customerService")
public Customer getCustomer(String customerNumber) {
restTemplate.exchange("https://customer-service.net", HttpMethod.GET,…

FerdTurgusen
- 320
- 5
- 13
4
votes
2 answers
Integrating circuitbreaker, retry and timelimiter in Resilience4j
I am trying to use Resilience4j features.
My use case is to combine the 3 modules:
circuitbreaker
retry
timelimiter
I want to combine all these modules and execute the method only once.
Code
Here is what I have tried.
Supplier supplier =…

N B
- 71
- 1
- 7
3
votes
1 answer
Testing SpringBoot with annotation-style Resilience4j
I'm using annotation-style Resilience4j with my SpringBoot app called "demo". When calling an external backend via RestTemplate I want to use TimeLimiter and Retry to achieve the following:
Limit the REST-call duration to 5 seconds --> if it takes…

Sidekick.John
- 183
- 3
- 14
2
votes
1 answer
Resiliency4j circuit breaker with retry configuration not working
I am using both @CircuitBreaker and @Retry annotations on a service method. When I apply both the configurations, the retry configurations are not taking affect.
Below is the configuration:
resilience4j:
circuitbreaker:
instances:
…

zilcuanu
- 3,451
- 8
- 52
- 105
2
votes
0 answers
Webflux and Resilience4j retry issue
wanted to ask a basic question about webflux and resilience4j's retry.
We are running Java SpringBoot with Webflux and Resilience4J (not Spring Cloud Circuit Breaker).
While running the application its giving error (Somehow full stack trace is not…

Deepak Baloni
- 43
- 5
1
vote
0 answers
How can I implement the circuit breaker pattern and retry pattern at the same time using Resilience4j with Spring Boot and microservices?
I'm doing a project using Spring Boot and Micro-services architecture.
I have two micro-services one calling the other to process a request from API gateway. I'm trying to implement the circuit breaker pattern and retry pattern at the same time…

Somesh Vemula
- 11
- 1
1
vote
2 answers
Why Retry is not triggered when I use resilience4j functional configuration?
I had successful experiments with spring boot configuration for resillence4j but I want to try functional configuration.
So I have implemented following code:
RetryConfig config = RetryConfig.custom()
.maxAttempts(6)
…

gstackoverflow
- 36,709
- 117
- 359
- 710
1
vote
2 answers
what is the difference between Circuit Breaker and Retry in spring boot microservice?
One of my colleagues asked me this question what the difference between Circuit Breaker and Retry is but I was not able answer him correctly. All I know circuit breaker is useful if there is heavy request payload, but this can be achieve using…

Satyaprakash Nayak
- 454
- 5
- 22
1
vote
0 answers
can we implement Resilience4j @Retry on JPA repository methods like findAll, findbyId etc?
@Repository
interface Test extends JpaRepository {
@Retry(name="database")
Optional findById(Id id);
}
can we implement @Retry on JpaRepository methods ?
if some issue occur with findById() method it will retry 2 times and circuit…

Trupti shinde
- 11
- 1
1
vote
1 answer
Kotlin Flow with Resilience4j RateLimiter and Retry
I have Resilience4j version: 1.7.1, Kotlin version: 1.7.0, Kotlin Coroutines: 1.6.1.
I'd like to use RateLimiter and Retry in kotlin code, but documentations don't contain information how to use Kotlin Flow with them.
I have a simple code:
suspend…

Darkin Rall
- 377
- 1
- 4
- 17
1
vote
1 answer
Resilience4j Retry does not retry
I have the following code where if I keep the retry annotation on the controller method, then it is getting retried but if I keep the retry annotation on a different method, it doesn't retry. Scenario is, in the API method, createOrder(), I fetch…

Kaushik Das
- 99
- 1
- 1
- 8
1
vote
1 answer
Resilience4j How to route to fallback method then return back to original method after specific amount of time
I am working with resilience4j and spring boot,
I need to accomplish the below scenario,
When I have a failure in the originalMethod
After 5 attempts route to the fallback method
After a specific time like 5 minutes return back to the…

Elsayed
- 2,712
- 7
- 28
- 41
1
vote
0 answers
Resilience4j Retry is not working as expected
I have two services "product-service" and "rating-service". I am making a rest call from product-service to rating-service to get the data. I have written the Retry configuration in product-service and expecting whenever an exception raised from…

Rasool
- 43
- 1
- 4
1
vote
1 answer
How can I add retry and custom recovery method in a circuit breaker - functional java
I'm trying to add a resilience 4j circuit breaker to my project. For that, I have a custom mechanism if the call fails and a retry. How can I change the execution sequence of these two? Is there a way where I can execute my custom mechanism first…

u13k
- 9
- 1