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
3
votes
1 answer
How to configure to events in Resilience4j Spring starter
I have configured by resilience4j circuitbreaker factory bean like below.But i couldnot get a function to ovveride event listeners example to open , close etc .Please help
@Bean
public Customizer…

poseidon_rishi
- 83
- 1
- 9
3
votes
1 answer
Can Micronaut Circuit Breakers be skipped for some HTTP status codes?
Is there a way to configure the Micronaut Circuit Breaker so that it is not opened for specific HTTP status codes? If I for instance do a lookup on an item and that item is not found, then a server might return HTTP status 404. This might be a…

Frode Oldervoll
- 31
- 2
3
votes
1 answer
Cause and how to debug Elasticsearch CircuitBreakingException
I want to know the variable situation with this error.
> CircuitBreakingException[[parent] Data too large, data for
> [] would be [32633199948/30.3gb], which is larger
> than the limit of [32573515366/30.3gb], real usage:
>…

Johnson
- 147
- 2
- 7
3
votes
1 answer
Unclear circuitbreak "fallback" behavior
I want to use a fallback in case of failing, so the behavior in "open" state should be to call a fallback instead of throwing an exception.
Problem is that the fallback is called during the "closed" state, while for "open" state I still get the…

Phate
- 6,066
- 15
- 73
- 138
3
votes
1 answer
Spring Boot Resilience4J Annotation Not Opening Circuit
I've checked the questions on the site about Resilience4J, but have not had any luck with their answers. I'm trying to implement @CircuitBreaker annotation from Resilience4J in my Spring Boot 2.x project. The circuit breaker is implemented around a…

Jeremy Smith
- 311
- 2
- 13
3
votes
0 answers
How Synchronous fallbacks works for Asynchronous calls in Hystrix?
Let's say I have the following piece of code with Hystrix circuit breaker and fallback enabled:
@Component
public class MyServiceProxy {
@HystrixCommand(fallbackMethod = "syncFallback")
public Future asyncCall() {
return new…

user1613360
- 1,280
- 3
- 16
- 42
3
votes
1 answer
Check if a Polly circuit breaker in a wrap is closed?
I need to see is a circuit break is closed but my polices are in a policy wrap. How can find the CircuitBreakerPolicy (one or more) in the wrap?
Is there a better way to know is any breaker is open for a given policy?

Don Chambers
- 3,798
- 9
- 33
- 74
3
votes
0 answers
Circuit breaker on Spring JMSListener
I have many services that are annotated with the @HystrixCommand annotation. Up to now, they were called from a bean that implemented the MessageListener interface.
Now, I want to call these same services from a bean that is annotated with…

Andres
- 10,561
- 4
- 45
- 63
3
votes
1 answer
Spring cloud stream kafka pause/resume binders
We are using spring cloude stream 2.0 & Kafka as a message broker.
We've implemented a circuit breaker which stops the Application context, for cases where the target system (DB or 3rd party API) is unavilable, as suggested here: Stop Spring Cloud…

Yuval Simhon
- 1,439
- 2
- 19
- 34
3
votes
1 answer
Spring-retry - @Circuitbreaker is not retrying
I'm running into an issue where @CircuitBreaker is not retrying.
I have a service class (ex. Class UserService and method name getUser), this method calls another Spring bean (ex. AppClient and execute) which in turn makes call to remote…

Dilip P
- 33
- 1
- 5
3
votes
1 answer
Spring-Retry with Circuit breaker
I am trying to leverage both the retry and circuit breaker mechanism of spring-retry.
I tried to use both annotations(@Retryable and @CircuitBreaker) in a particular function(like below), but Circuit Breaker was not working.
@Service
public class…

Tanay Mathur
- 379
- 2
- 5
- 16
3
votes
2 answers
Request Caching with Circuit-Breaker(Opossum) in nodejs
Based on the Netflix Hystrix circuit-breaker design pattern i was trying to do the following:
const circuitBreaker = require('opossum');
import * as request from 'request-promise';
const circuit = circuitBreaker(request.get);
circuit.fallback(()…

Jeson Dias
- 883
- 2
- 11
- 26
3
votes
1 answer
Resilience4j circuit breaker used with reactive Flux never changes to OPEN on errors
I am evaluating resilience4j to include it in our reactive APIs, so far I am using mock Fluxes.
The service below always fails as I want to test if the circuit OPENs on multiple errors:
@Service
class GamesRepositoryImpl : GamesRepository {
…

codependent
- 23,193
- 31
- 166
- 308
3
votes
1 answer
Circuit breaker on http client can't close back after failure
An example of circuit breaker over akka http client that looks totally simple doesn't work expected for me.
object HttpWithCircuitBreaker extends App {
implicit val system = ActorSystem()
implicit val materializer = ActorMaterializer()
…

kharole
- 133
- 7
3
votes
3 answers
Circuit Breaker in a Microservices Architecture
What is the best way to add a Circuit Breaker pattern in a Microservices Architecture. Should it be on the microservice side (inside each microservice), inside an ELB or insider the Api Gateway? What would be the best design pattern?

Supun Muthutantrige
- 269
- 3
- 11