Retry is one of the core modules of the Resilience4j library
Questions tagged [resilience4j-retry]
42 questions
1
vote
0 answers
Resilience4j with spring boot
Earlier, i used CircuitBreaker and Retry annotations with void method. It worked.
But Timelimiter was not working.
@Timelimiter(name = "example_tl")
@CIRCUITBREAKER(name = "example_cb", fallbackMethod = "sendDataFallBack")
@Retry(name =…

Stephan
- 91
- 1
- 1
- 6
1
vote
1 answer
Handle exception after reaching max attempts in resilience4j-retry using Spring Boot
I have a scenario I want to log each retry attempt and when the last one fails (i.e. maxAttempts reached) a exception is thrown and let's say an entry to a database is created.
I try to achieve this using Resilience4j-retry with Spring Boot,…

Nikolas Charalambidis
- 40,893
- 16
- 117
- 183
0
votes
0 answers
Resilience4j's patterns are not being executed due to CustomExceptionHandler
I was asked to implement both @CircuitBreaker and @Retry patterns in a project where a CustomExceptionHandler (@ControllerAdvice) is used to perform interceptions.
As custom outputs (based on custom models) are being returned instead of default…

Julio Vargas
- 23
- 4
0
votes
0 answers
Retry mechanism for Kafka Consumer
Here's a reformatted version of your Stack Overflow question:
I am already familiar with how the @Retry annotation from Resilience4j works for synchronous functions, but I'm unsure of how to design an Auto Retry mechanism for Kafka calls. Here's the…

postgis-user
- 19
- 5
0
votes
0 answers
Resilience4J still jumping into fall back method after switching to disabled state
I am trying to test r4j changes, I want to be able to turn it off. I am using the transitionToDisabledState method but it is still jumping to fall back method although the state is disabled. Am I missing something here? Thanks in advance.
Sorry if…
0
votes
0 answers
Duration between RequestNotPermitted
I play with resilence4j so I've implemented following service:
@Service
@Slf4j
public class MyService {
@CircuitBreaker(name = "myCircuitBreaker", fallbackMethod = "doSmthFallbackCb")
@Retry(name = "doSmth", fallbackMethod =…

gstackoverflow
- 36,709
- 117
- 359
- 710
0
votes
1 answer
Order of execution for Resilience4j annotations?
We are calling few downstreams from our service, and we need to provide the circuit breaker, retry, timelimiter and bulkhead feature to all the downstream services call.
Current code-base:
@Override
@Bulkhead(name = "downstream1", type =…

tusharRawat
- 719
- 10
- 24
0
votes
1 answer
Resilence4j: Losing MDC Context and correlationId HTTP headers when retries are executed
We are facing an issue when executing retries on a Feign or Spring reactive WebClient HTTP client. We are setting the correlationId in the headers of the HTTP request (using an interceptor with Feign or a filter with Spring reactive WebClient), and…
0
votes
0 answers
What is the type of timeout provided by resiliency 4j timelimiter?
What is the type of timeout provided by resiliency 4j circuit breaker ?
Is it connection timeout / or response timeout ?

user1354825
- 1,108
- 4
- 21
- 54
0
votes
0 answers
resilience4j retry - pass method argument to event listener
I am trying to work on poc using resilience4j retry libs to replace spring retry.
I have a question if someone can help point me to right direction:
spring retry has listener support which has open(RetryContext rtx, ..) method, which is called…

Kiras
- 69
- 6
0
votes
1 answer
Resilience4J retryOnException not working
Retry on exception is not working for Resilience4j 1.7.
Can anyone else confirm? At this point I'm just writing simple tests to try this without success.
I also submitted a ticket here: https://github.com/resilience4j/resilience4j/issues/1886
Any…

baumannalexj
- 766
- 1
- 9
- 20
0
votes
2 answers
Resilience4J Retry not auto-configured in Spring boot 3
I'm in the process of migrating to Spring Boot 3. In Spring Boot 2 Resilience4J Retry was auto-configured and worked out of the box using the following setup:
application.yaml:
resilience4j.retry:
instances:
some-instance
# retry config…

Michiel
- 2,914
- 1
- 18
- 27
0
votes
0 answers
Resilience4j : Intercept 401 Response, refresh token and Retry
In Resilience4j, do we have support to intercept retry request? For e.g. when we make an API call and get Authentication failed with http status code as 401. Before retrying again, we would like to make a different API cal to get refresh token and…

Ankit Pandoh
- 548
- 5
- 14
0
votes
0 answers
How to configure RetryConfigCustomizer of resilience4j
I have a very simple spring boot application to test the resilience4j retry mechanism.
Dependency I set in the build.gradle are as…

LynAs
- 6,407
- 14
- 48
- 83
0
votes
1 answer
Missing property (BadRequest) for Groovy template expansion
I'm using Resilience4j and I need to ignore some exceptions when using Retry. One of the exceptions is the: org.springframework.web.reactive.function.client.WebClientResponseException$BadRequest
resilience4j.retry:
instances:
testA:
…

Adriano
- 53
- 1
- 6