Retry is one of the core modules of the Resilience4j library
Questions tagged [resilience4j-retry]
42 questions
0
votes
0 answers
Resilience4j multiple ratelimiter
I have a service that makes calls to HTTP endpoints from other services.
Can I configure a total number of permits for calls for all the endpoints, not for each one separately? Does Resilience4j.RateLimiter allow this?
For example, I have 2 external…

gdcod
- 1
0
votes
0 answers
Does Resilience4J keep retry method parameters in memory for the next retry method?
Using Resilience4j for fault tolerance. The question is, does retry method keep the parameter values in memory for the next retry?
If so it would create another problem, of accumulating pending retry data in memory.
Imagine I'm sending an email,…

ancm
- 300
- 1
- 3
- 13
0
votes
1 answer
How to retry an operation when it fails
I have singleton client with the below contract
public interface MQPublisher {
void publish(String message) throws ClientConnectionException, ClientErrorException;
void start() throws ClientException;
void stop();
}
The class which is…

Kaushik Das
- 99
- 1
- 1
- 8
0
votes
1 answer
Resilience4j - Can you use annotations like @Retry in a kotlin app without Spring Boot?
I'm currently implementing retries and circuitbreakers using Resilience4j. Most of the examples online are using Spring Boot online and noticed that @Retry and @CircuitBreaker annotations are being used. However, I was wondering if a similar…

zb92
- 3
- 1
0
votes
1 answer
resilience4j-retry:1.7.1 - does not retry websocket connection
I am trying to connect to a remote websocket endpoint (inside spring boot app), and if it throws an Exception I use resilience4j-retry v1.7.7 with JDK 8 to retry connection. However resilience4j-retry tries to connect once and if it fails do not…

Rajib Deka
- 551
- 1
- 7
- 22
0
votes
1 answer
Resilience4j Retry - Memory consumption
I am using resilience4j with Spring Boot 2.x
What is the impact of using Retry and circuit breaker modules on memory and cpu?
Also what is the memory impact if I have 2000 events/s incoming each payload around 10Mb and I have kept the wait duration…

Mudit
- 58
- 6
0
votes
1 answer
CircuitBreaker cannot be resolved to a type using Resilience4J
I am trying to build a simple CircuitBreaker in my Spring Boot (which uses Swagger).
The idea is that the first app, calls another which can be Up or Down, I want to implement a CircuitBreaker which gives an error message if the second app is…

shurohige
- 21
- 5
0
votes
1 answer
Resilience4j retry with CompletionStage
private CompletionStage executeWithRetries(Request request) {
RetryConfig retryConfig = RetryConfig.custom()
.maxAttempts(5)
…

lakhansoren
- 162
- 1
- 1
- 9
0
votes
3 answers
Resiliency4j CircuitBreaker tried to call circuitBreaker logic in AOP in order to achieve not to call circuit breaker when it is disabled in config
Conditionally I want to switch the circuit breaker switch off/on by setting spring.cloud.circuitbreaker.resilience4j.enabled=false. My logic should stay intact from circuit-breaker logic.
I tried using the below demo example to extend to my…

ravibeli
- 484
- 9
- 30
0
votes
1 answer
Resilience4j + Spring boot @Retry not working with async methods
I have an @Async method where I'm trying to add @Retry but the fallback method is never being executed when an exception occurs. I am also trying to test this mocking that an exception is thrown, but as it never goes to the fallback method, it never…

Wrong
- 1,195
- 2
- 14
- 38
0
votes
1 answer
resilience4j springboot 2 annotations (@Retry, @CircuitBreaker) not working
I am working on a springboot application and want to add the resilience4j- retry mechanism.
I did the following steps:
Added the actuator, aop and resilience4j dependencies in pom.xml
org.springframework.boot
…

dgaur
- 3
- 1
- 4
-1
votes
1 answer
How do I perform retry based on HTTP response code in Springboot
@Retryable(value = ABCDException.class,
maxAttemptsExpression = 3,
backoff = @Backoff(delayExpression = "#{${application.delay}}"))
public String postABCDrequest(ABCDrequest abcdRequest) throws ABCDException {
try {
…

Vaibhav Meenakshi
- 5
- 1
- 3