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
0 answers
Node promise-circuitbreaker - Returning a value from called function
I'm trying to use the promise-circuitbreaker node module.
I am able to pass a parameter to the called function, however, I am unable to have the called function return a value back.
Furthermore, I keep getting a timeout which I don't understand. I…

telefunken
- 138
- 7
3
votes
0 answers
Hystrix circuit not closing after downstream service recovers
I'm playing with the bootiful-microservice project by Josh Long. (Brixton subproject)
On the reservation-service I have added a simple status method that can sleep a configurable amount of time to simulate load:
@RequestMapping(method =…

phoenix7360
- 2,807
- 6
- 30
- 41
2
votes
1 answer
circuit breaker design pattern implementation advice
I'm implementing the circuit breaker design pattern for a large scale distributed system (on AWS).
Netflix gives a great description here: http://techblog.netflix.com/2011/12/making-netflix-api-more-resilient.html
I need some advice for the backend…

Mark Rose
- 971
- 9
- 15
2
votes
0 answers
spring-cloud-starter-netflix-hystrix compatible version for Spring boot 2.7.9
I'm using spring-boot-starter-parent 2.7.9 .
According to the Spring cloud release compatibility matrix , the version of spring cloud that is compatible with this version is 2021.0.3
2021.0.x aka Jubilee 2.6.x, 2.7.x (Starting with…

Gestalt
- 93
- 10
2
votes
1 answer
C# Polly Start counting CircuitBreaker Exception only on the last Retry attempt Exception
I'm trying to use Polly on an HttpClient with three policies: Retry, CircuitBreaker, Timeout.
The result I would like to achieve is that the CircuitBreaker always starts counting from the last error of the Retry and not from all errors.
For example,…

pampua84
- 696
- 10
- 33
2
votes
1 answer
Opening circuit breaker based on the response status with NodeJs (Opossum)
I am using opossum to implement circuit breaker for my nodeJs application.
Currently whenever there is an error, either it's Bad Request or Bad Gateway, the circuit breaker is opened and blocked the next calls.
Is there a way to implement to open…

Yu Yu
- 1,349
- 2
- 10
- 17
2
votes
1 answer
How to use circuit breaker based on a method parameter?
I have a http client that connects to the same api endpoint on different servers. Which server it connects to, depends on business logic.
Let's say the http client method is connect(url). How can I make sure that the circuit breaker takes the url…

Vincent Botteman
- 51
- 4
2
votes
0 answers
How to implement Couchbase circuit breaker on state change event?
I am new to using Couchbase. I have an implementation of the couchbase circuit breaker in one of our Spring Webflux-based applications.
Ref: The official document
public ReactiveBucket getBucket(String bucketName) {
…

Md. Hasan Basri
- 159
- 1
- 15
2
votes
1 answer
Circuitbreakerevents managment endpoint not found
I have resilience4j config and have managementconfig also.
management.endpoint.circuitbreakerevents.enabled=true
But I can't see any events because URL not found.…

Valdy B
- 151
- 1
- 1
- 9
2
votes
1 answer
Spring Cloud OpenFeign - Activate circuit breaker
According to the documentation, for activating the cricuit breaker I have to add feign.circuitbreaker.enabled=true in the properties.
It's working but I'd like to find a way of activating with an annotation.
I tried something like
…

tweetysat
- 2,187
- 14
- 38
- 75
2
votes
1 answer
Can't execute circuit breaker after containerization
I have a .NET 5 application, divided in microservices. I implemented the Circuit Breaker pattern using the Microsoft library and Polly.
Everything was tested and working accordingly - locally.
But when I try to run with docker, if none of the…

Miguel Ferreira
- 325
- 1
- 15
2
votes
0 answers
Why do rolled back exceptions on read-only transactions (Spring, JPA) overrule Resilience4j circuit breaker?
We're using Spring transactions with JPA and the Resilience4j library for circuit breakers in our application.
Our service, which makes use of the data repositories, has a fallback method defined via the circuit breaker to catch errors and return a…

JanDasWiesel
- 382
- 5
- 14
2
votes
0 answers
Implementing retry mechanism along circuit breaker in spring cloud gateway
I want to implement retry mechanism along with circuit breaker in spring cloud gateway. Currently when I add Circuit Breaker filter alone to the spring cloud gateway, it works fine. And if I add Retry filter alone, it also works fine. But I want the…

Aneesh Edavalath S
- 94
- 1
- 10
2
votes
5 answers
How to deal with 100 seconds timeouts while using Poly retry policy
I'm using retry policy in .net core application and am getting timeouts after exceeding 100 seconds period.
Might I use Poly in some incorrect way or it's by design and only timeout period increase might help?
Here is the way I use Poly:
Startup:
//…

Christy Pirumova
- 109
- 2
- 8
2
votes
1 answer
Is there a "Circuit Breaker" for Spring Boot Kafka client?
In case that Kafka server is (temporarily) down, my Spring Boot application ReactiveKafkaConsumerTemplate keeps trying to connect unsuccessfully, thus causing unnecessary traffic and messing the log files:
2021-11-10 14:45:30.265 WARN 24984 ---…

Honza Zidek
- 9,204
- 4
- 72
- 118