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
2 answers
Why does Spring Cloud @EnableSidecar use @EnableCircuitBreaker
I have an application in python using port 8004, which has end-points. I need to integrate it into microservices platform, which has Eureka discovery server port 8001, Spring Boot Admin port 8002, gateway port 80. Gateway uses Zuul proxy, and it…

Yan Khonski
- 12,225
- 15
- 76
- 114
0
votes
1 answer
How to 'check' before picking off the Amqp/ RabbitMQ Queue (Spring AMQP)
Scenario:
A microservice picks up a message from a RabbitMQ Queue, it's converted to an object and then the microservice makes a REST call to external service.
It's going to deal with thousands 'n thousands of these messages, is there a way of…

sdiaz1000
- 27
- 6
0
votes
1 answer
Can my policy behavior change based on data in the execute?
I am using the Circuit Breaker Policy for database access. I have a multi-tenant structure with identical databases that store data for different clients. My application could hit any of the tenants. If one database is down the others may not be.…

Don Chambers
- 3,798
- 9
- 33
- 74
0
votes
1 answer
hystrix many threads in waiting state
We have used hystrix - circuit breaker pattern [library] in our one of the module.
usecase is:- we are polling 16 number of messages from kafka and processing them using pararllel stream,so, for each message in workflow it takes 3 rest calls which…

Rahul Singh
- 781
- 11
- 27
0
votes
1 answer
How to predefine hystrix command configuration
I want to predefine global configuration for all the hystrix commands in my project. I.e. I want to mark methods only with something like this:
@HystrixCommand(commandKey = "MFO_SERVICE", fallbackMethod = "fallback")
not like this
@HystrixCommand(
…

kirill.login
- 899
- 1
- 13
- 28
0
votes
1 answer
Circuit Breaker envoy proxy
I am going to setup an envoy proxy, but still confused about the Circuit Breaker. For example: max_connections (UInt32Value) is the maximum number of connections that Envoy will make to the upstream cluster. If not specified, the default is…

Hiếu Nguyễn
- 1
- 1
0
votes
0 answers
CircuitBreakerOpenException even when service is up
I am trying to access a given service that is hosted on a different server.
I can access this service using postman. but when I am trying to access this service within my project then sometimes I get CircuitBreakerOpenException even when service…

nand
- 517
- 2
- 13
- 29
0
votes
1 answer
Golang Channel Streams
I am relatively new to Golang and don't fully understand streams. I have a function (circuit breaker function) that is making Rest calls. I have it working but it is only streaming the "responseBody" back. I would actually like to stream back…

mornindew
- 1,993
- 6
- 32
- 54
0
votes
0 answers
Fallback method is not called in @HystrixCommand
Trying to test my fallback method, but unfortunately it is never called :(
Certain class calls method like this:
@Service
@EnableCircuitBreaker
public class ServiceOne
{
@Inject
private HystrixService hystrixService;
public String…

Sviatlana
- 1,728
- 6
- 27
- 55
0
votes
1 answer
Hystrix circuit breaker trigger an Event in Spring Micro service implementation
Is there a way we can identify when the Hystrix moves from circuit open to half open state (after sleep time interval). Can Hystrix trigger an event when this state change happen? Any Hystrix property can tell us this? If it can trigger an event,…

Nikhil V
- 1
- 1
0
votes
1 answer
How to stop existing request execution to stop and just run fallback method in hystrix
In hystrix,I am using execution.isolation.thread.timeoutInMilliseconds this configuration to limit the response in some specific time else go for fallback method,But this setting is also executing the request which was invoked in the backend.Is it…

Ankush Nakaskar
- 121
- 1
- 2
- 8
0
votes
1 answer
Not working - Programmatic approach for CXF's Circuit-Breaker feature
As per the documentation - https://cwiki.apache.org/confluence/display/CXF20DOC/JAX-RS+Failover#JAX-RSFailover-Code.1, I tried running the following code along with associated configurations, but the circuit breaker mechanism is not opening up once…

Ranadeep Sharma
- 21
- 5
0
votes
1 answer
Triggering a fallback using @HystrixProperty timeout for HTTP status codes and other exceptions
I have a function in my @Service class that is marked with @HystrixCommand.
This method acts as a client which sends a request to another service URL and gets back a response.
What I want to do is to trigger a fallback function when the response…

Anshuman Tripathy
- 113
- 1
- 3
- 12
0
votes
0 answers
Customizing the criteria for triggering Fallback in Hystrix Circuit Breaker
I would like to trigger a fallback from a @HystrixCommand Method based on my own criteria (checking for a specific response status).
My method basically acts as a client which calls a service in another URL (marked here as URL).
Here is my…

Anshuman Tripathy
- 113
- 1
- 3
- 12
0
votes
1 answer
Converting an @Async method in Spring-REST to an Asynchronous @HystrixCommand method with an asynchronous fallback
I have a method which has been marked as @Async in my @Service Class. This returns a Future type.
This method basically acts as a client which calls a service in another URL (marked here as URL).
@Async
public Future

Anshuman Tripathy
- 113
- 1
- 3
- 12