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
19
votes
2 answers
Hystrix Configuration
I am trying to implement hystrix for my application using hystrix-javanica.
I have configured hystrix-configuration.properties as…

Jay
- 429
- 2
- 8
- 23
17
votes
2 answers
What is the difference between a circuit breaker and a bulkhead pattern?
Can we use both together in Spring Boot during the development of microservice?

Nafaz M N M
- 1,558
- 2
- 27
- 41
15
votes
2 answers
How do I use a circuit breaker?
I'm looking for ways to make remote calls to services out of my control until a connect is successful. I also don't want to simply set a timer where an action gets executed every n seconds/minutes until successful. After a bunch of research it…

gcso
- 2,315
- 3
- 28
- 50
14
votes
1 answer
Istio(0.7.1) : Circuit Breaker Doesn't work for httpConsecutiveErrors
Circuit breaker doesn't trip on httpConsecutiveErrors: 1 (for 500 response). All requests pass through and give a 500 instead .
Circuit breaker should trip and should return 503(Service Unavailable) instead .
Follow the steps Circuit breaker…

Jeson Dias
- 883
- 2
- 11
- 26
13
votes
1 answer
Akka Circuit Breaker sharing between actors
I have a shared external resource (say a file store) which a pool of actors is using. Each time a new request is made to the file store a new actor is created to fill the request with a reference to the external system passed in.
The current…

NightWolf
- 7,694
- 9
- 74
- 121
12
votes
5 answers
Programmatically changing Hystrix properties
I have a circuit breaker set up that I would like to change parameters for runtime. Things like threads and timeout needs to be tuned at customer site.
I create a HystrixCommandProperties.Setter like this:
HystrixCommandProperties.Setter…

Anders S
- 438
- 4
- 15
10
votes
1 answer
Should Polly Policies be singletons?
I have a query, IGetHamburgers, that calls an external API.
I've registered the implementation of IGetHamburgers in my DI container as a Singleton. Im using Polly as a Circuitbreaker, if two requests fails the circuit will open.
My goal is that all…

JOSEFtw
- 9,781
- 9
- 49
- 67
10
votes
1 answer
Why can I write a generic catch statement in C# that does nothing?
Possible Duplicate:
Why can’t I catch a generic exception in C#?
I have been reviewing and writing Circuit Breaker code recently. The following method compiles, but the catch block is never entered. I have plenty of work-arounds, and this isn't…

Anthony Mastrean
- 21,850
- 21
- 110
- 188
9
votes
2 answers
Resilience4j vs Hystrix. What would be the best for fault tolerance?
When I initially learn about spring boot, I've learnt about spring cloud netflix hystrix as a circuit breaker. There were bunch of options such as multiple application properties and annotation base declarations for fault tolerance. In-addition to…

Sankalpa Wijewickrama
- 985
- 3
- 19
- 30
8
votes
1 answer
Resilience4j - Request timeout
I have a service which is using Hystrix circuit breaker pattern and it calls 3rd party service. With the help of
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "1000")
I have defined the timeout for the 3rd…

Swapnil
- 801
- 3
- 19
- 42
8
votes
3 answers
How to force a Hystrix circuit breaker open?
I would like to programmatically force a circuit breaker to open for a particular group. I thought I might be able to do that by setting the config on a command in a group to force open, and running that command. However, that doesn't seem to…

rzrelyea
- 1,467
- 1
- 13
- 19
7
votes
1 answer
Is it possible to have a circuit break for the database with Spring Boot?
Having a circuit breaker with Spring Boot for external calls (e.g. HTTP) is a common pattern that is rather easy to put into place, for example with resilience4j.
I cannot find any information about doing the same with database calls, via…

cgf
- 3,369
- 7
- 45
- 65
7
votes
1 answer
How to create circuit breaker config from application.properties?
I have the following configuration with which I create circuit breakers at runtime:
@Configuration
public class CircuitBreakerConfiguration
{
public final static String DEFAULT_CIRCUIT_BREAKER_REGISTRY = "DEFAULT_CIRCUIT_BREAKER_REGISTRY";
…

Saif
- 2,530
- 3
- 27
- 45
7
votes
1 answer
Proxy API with Circuit Breaker on AWS lambda
I'm building an API that will act as a proxy to n underlying API's that all do the same thing. It will use circuit breaker pattern to determine when one of the underlying API's is unavailable, therefore the proxy API will have state. One solution…

Myles McDonnell
- 12,943
- 17
- 66
- 116
7
votes
3 answers
Polly's CircuitBreakerAsync does not retry if exception occur
I am using Polly library for transient fault handling. For synchronous operations Polly circuit breaker policy works fine but when I created its async version it does not retries the execution. Kindly suggest :
Asynchronous method:
private async…

Demon Hunter
- 233
- 1
- 3
- 15