396 questions
0
votes
0
answers
57
views
Kafka producer not able to reconnect to pipeline on restart
System is on two site, facing issues on resiliency so using circuit breaker. When I am on close state then sending message to the primary site on call back on secondary site both are using different ...
2
votes
0
answers
102
views
Fallback method in Spring Boot app not getting called when using Resilience4j
I have a simple microservices based app. It has 3 microservices. Movie-Catalog-Service, Ratings-Data-Service, Movie-Info-Service. Movie-Catalog-Service is dependent on Ratings-Data-Service and Movie-...
3
votes
1
answer
1k
views
The resilience4j circuitbreaker does not seems to work expected after the Spring Boot & Cloud dependencies upgrade
We are seeing an issue with resilience4j circuit breaker after a recent upgrade of Spring Boot & Cloud dependencies.
We upgraded the following below:
groupId
artifactId
old version
upgraded ...
1
vote
0
answers
60
views
Resilience4j Circuit breaker not working as expected
Im facing an issue with the Resilience4J circuit breaker implementation. I have written the following test case to test the functionality of the circuit breaker implementation with resilience4j-spring-...
2
votes
1
answer
94
views
Do Named HTTP clients use the same policy handlers instances?
Do HTTP policies instances are shared when I create named HTTP client in each request using IHttpClientFactory?
I am using the IHttpClientFactory to create a named-http-client per request:
var ...
-1
votes
1
answer
180
views
Polly Http Circuit Breaker Break only on Timeout Exception
We have a vendor that goes down a lot. We no longer want the circuit to break when they pass us back 500 errors, etc.. We just want the circuit to break when there is a Timeout Exception.
IAsyncPolicy&...
0
votes
0
answers
110
views
Dynamic values to @CircuitBreaker configuration
I am using this library to implement Circuit breaker in a Kotlin app using Quarkus and the package says to use fixed values, as for example (it's just one that you can find on github):
@CircuitBreaker(...
-1
votes
1
answer
72
views
Polly Circuit-breaker propogates 500 error but not 5xx+ in http calls
HttpConsentCircuitBreakerPolicy = HttpPolicyExtensions
.HandleTransientHttpError()
.Or<TimeoutRejectedException>()
.CircuitBreakerAsync(3,TimeSpan.FromSeconds(30), OnBreak, OnReset);
...
2
votes
1
answer
480
views
Using Circuit Breaker within Virtual Threads
Our application is based on Spring Boot 3.2 and runs on JDK 21. We've gone all-in on virtual threads, and can't sing their praises enough. Tomcat handles all requests with a virtual thread pool, our ...
1
vote
1
answer
2k
views
Spring Boot 3 ignores @CircuitBreaker
I am learning microservices and trying to implement circuit breaker pattern in one of my microservices. At the beginning i wanted to pick Netflix Hystrix library but after some googling i found out ...
1
vote
0
answers
269
views
Resilience4j CircuitBreaker not going in half open state in server
I have circuitbreaker implemented in my springboot application. I have used following dependency:
implementation 'org.springframework.cloud:spring-cloud-starter-circuitbreaker-resilience4j'
And I ...
1
vote
1
answer
66
views
Increase error counter in CircuitBreaker later from values in the body of the response
We have a set of connectors with external providers using REST APIs. We use HttpClient and Polly to make resilient queries to the endpoints.
One of the providers is actually an intermediary between ...
1
vote
0
answers
26
views
Controlling number of request per second using well defined mechanism?
I have below implementation this service is responsible for sending data to third party service and i want to control how many data we can send per second lets suppose i have 10000 records in each ...
1
vote
1
answer
443
views
How to migrate a standard CircruitBreaker policy from Polly V7 to V8?
Up until now, I used Polly's standard CircuitBreaker policy like this:
int retryCount = 2;
PolicyBuilder policyBuilder = Policy
.HandleInner<WebException>()
.Or<WebException>()
...
1
vote
0
answers
304
views
Resilience 4j annotations based CircuitBreaker fallback method getting called instead of Feign error decoder
I have a problem related to conflict between circuit breaker of resilience4j and open feign error decoder.
I have implemented both of these but in case of any runtime exception, the code flow never ...
0
votes
0
answers
461
views
In Spring Boot 3.2.0, circuitbreaker has error Handler dispatch failed: java.lang.StackOverflowError
My project state:
Java 17
Spring Boot 3.2.0
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-circuitbreaker-resilience4j</...
-1
votes
1
answer
1k
views
Seeking Enhancements for RestClient Configuration [closed]
I'm using RestClient for upstream communication and would like to add some enhancements to make it more robust. Here's my current setup:
SimpleClientHttpRequestFactory factory = new ...
1
vote
1
answer
207
views
WSO2 APIM 4.2 - Suspend endpoint and fail over to secondary server if 404 is received from backend
In WSO2 APIM 4.2 (open source version) we have setup a load balancer/fail over where we have a redundant back-end setup. In this example we are having an API deployed on 2 servers. If both servers are ...
1
vote
3
answers
2k
views
Can't use a ControllerAdvice with ExceptionHandlers while using Circuit Breaker from resilience4j
So, I was doing a simple spring boot project using resilience4j's tools, like @RateLimiter, @CircuitBreaker and @Retry. All was working fine, even with personalized exceptions, because they were ...
0
votes
0
answers
896
views
TimeoutException does not OPEN circuit in resilience4j. Why?
I am using below code, and what I have seen is BulkheadFullException and RuntimeException is changing the state of circuitbreaker from CLOSED to OPEN, whereas that's not the case with TimeoutException....
0
votes
1
answer
294
views
Can istio circuit breaker stop traffic for only one upstream server?
I have been tested OutlierDetection for one upstream pod. I expected that istio prevents request goes to target upstream pod.
My test environment:
Tested on docker-desktop, k8s, istio, github + ...
0
votes
1
answer
3k
views
How to change state of circuit breaker for testing purpose using springboot code
I have a requirement to generate a prometheus alert if state my resilience4j circuit breaker changes to Open.
In order to test it, I want to change its state forcefully. Like I can create a test Rest ...
0
votes
0
answers
964
views
How to push circuit breaker metrics to Datadog?
I have configured resilience4j-micrometer and spring-boot-starter-actuator in my service. Apparently this is enough to see metrics in Datadog but I do not see the values populated for the metric for ...
0
votes
1
answer
613
views
How to register circuit breaker fallback using resilence4j api?
Initially I used spring boot configuration for circuit breaker.
@CircuitBreaker(name = "myCircuitBreaker", fallbackMethod = "myFallbackMethod")
Then I realized that I need to ...
-1
votes
1
answer
827
views
Istio circuit breaker sending traffic to unhealthy Services
I'm quite new to istio and experimenting Istio circuit breaker concepts, for that I have configured the istio virtual service, destination rules and nginx pods.
My virtual service have two different ...