Circuit breaker is a design pattern in modern software development. Circuit breaker is used to detect failures and encapsulates logic of preventing a failure to reoccur constantly (during maintenance, temporary external system failure or unexpected system difficulties).
Questions tagged [circuit-breaker]
385 questions
0
votes
0 answers
Controller advice problem with Circuit Breaker using Resilience4j
I am working in Micro-Services environment and i have 3 different application A, B and C.
i am using Resilience4j with Circuit Breaker in Spring Boot Application. And i am using 'C' application which is containing Controller Advice and added .jar…

nikhil2505
- 61
- 1
- 8
0
votes
1 answer
Is there a way to store requests when circuit breaker is open?
I need to save our requests to process them later when the circuit breaker leaves the fault state and goes back to closed. The only way I found was using rabbit-mq, is there another way using the Polly library?

raphael-melo
- 73
- 1
- 5
0
votes
1 answer
wrap a SOAP call (WebServiceGatewaySupport) with Hystrix
I am trying to find out an example to use hystrix with SOAP call and all i could find the examples of the same with REST.
From the hystrix documentation, it seems this is possible, if you could point me to the example that would be helpful.
Also, if…

broken98
- 43
- 6
0
votes
1 answer
Polly Circuit breaker not maintaining state with .net core HTTP Client
I have implemented the polly retry and Circuit breaker policy (wrapped). when the call fails and the circuit is open for the previous call the next call again goes to the retry and hit the circuit breaker again instead of just throwing the…

threeleggedrabbit
- 1,722
- 2
- 28
- 60
0
votes
1 answer
How to use MDC in with hystrix in Spring Boot 2?
We are using hystrix in our spring boot application. We wants to use MDC for appending specific attributes like Request Id and Request URI and Loggedin User to every log statement. This mechanism is not working wherever hystrix is…

Sumanth Varada
- 1,122
- 1
- 16
- 17
0
votes
1 answer
Resilience4j Retry: Should you create singleton of Retry or create new one for every request?
As the title suggests, how should I implement Retry for multiple requests? I noticed that for every Retry, you must specify some Retry ID.
// Create a Retry with default configuration
Retry retry = Retry.ofDefaults("id");
How does the ID affects…

Rifqi
- 53
- 7
0
votes
1 answer
how to capture CircuitState for AsyncCircuitBreakerPolicy
I have a variable asyncPolicy of type IAsyncPolicy which has one or more policy including AsyncCircuitBreakerPolicy. Now I want to get specific policy say AsyncCircuitBreakerPolicy before a API call, so that I can extract the status of Circuit.
Is…

user584018
- 10,186
- 15
- 74
- 160
0
votes
0 answers
how to implement custom method when Polly circuit is close
I have method which returns IAsyncPolicy and it has 2 or more policies along with CircuitBreaker and part of my DI.
Now in my implementation class I added one extra fallbackPolicy to handle BrokenCircuitException and wrap it…

user584018
- 10,186
- 15
- 74
- 160
0
votes
1 answer
Timeout and Retry Logic in Circuit Breaker pattern using Polly
I am implementing Circuit Breaker pattern with HttpClientFactory and Polly using this tutorial and here's the code below that i wrote based on my understanding of the tutorial. RetryHttpRequest class is the class where HttpClient is used.
…

superninja
- 3,114
- 7
- 30
- 63
0
votes
1 answer
Is there a circuit breaker extension for wso2 siddhi applications?
I was looking for a circuit breaker configuration or a circuit breaker extension to detect failures in my siddhi application, but I was not able to find anything.
Maybe I should implement my own custom circuit breaker pattern?

Diegox
- 29
- 7
0
votes
1 answer
Architecture with Hystrix and dozens of services
I'm maintaining an architecture that has the possibility to communicate with at least 80 external services, and we are using Hystrix on those services.
Those services have something in common: some of them, have the same backend in their sides -…

Bruce
- 21
- 7
0
votes
1 answer
Spring Microservices with Hystrix - fallback only Return/Throw Exception
I have been trying to implement hystrix fallback to only throw Exception rather than raking a response.
I have been searching up and down for ways to have the fallback method to only throw Exceptions. The whole point of implementing Hystrix here is…

Shanq Yeet
- 51
- 1
- 6
0
votes
1 answer
Choosing a proper actor supervisor strategy on open circuit breaker
Akka supervision strategies allows custom behavior depending on what kind of exception it thrown, so a supervisor can choose whether the failing actor should be stopped, restarted, resumed or the error is escalated to its parent. I am trying to…

Vagif Abilov
- 9,835
- 8
- 55
- 100
0
votes
1 answer
Access Service Provider Context in HystrixCommand's RunFallbackAsync
I am working to add the Hystrix CircuitBreaker pattern to an existing ASP.NET Core microservice, using Steeltoe CircuitBreaker, while maintaining the existing logging functionality with minimal refactoring (or as little as I can hope for).…

maxwell-ryan
- 13
- 3
0
votes
0 answers
Example fail fast circuit breaker with Spring Cloud / Reactive
I am looking at the Spring Cloud Circuit Breaker example with respect to using a Reactive API. I understand the basics and how the fallback mechanism works for WebClient but can't see how to implement a fail-fast solution for when the circuit…

Jack of Shadows
- 1
- 1