Questions tagged [circuit-breaker]

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).

385 questions
0
votes
1 answer

Circuit breaker Pattern

Is that fallback method and actual method should return same return type. @HystrixCommand(fallbackMethod = "reliable") public String readingList() { URI uri = URI.create("http://localhost:8090/recommended"); return…
Thirukumaran
  • 357
  • 3
  • 5
  • 17
0
votes
2 answers

Hystrix-javanica -Hystrix Timeout fallbacks are not triggering

Need to use circuit breaker for one of the projects and using hystrix for the purpose. But hystrix fallback are not triggered even after timeouts. Please help if something is been missed. Thank you in advance.…
Sharath
  • 407
  • 5
  • 16
0
votes
0 answers

Circuit breaker state fluctuates until stably open

I set the following properties: HystrixCommandProperties.Setter commandProperties =…
Kanupriya
  • 3
  • 2
0
votes
1 answer

circuit breaker for high avalability in microservices architecture

I am trying to learn about Circuit breaker that ensures high availability of the services. I am new to it. Can somebody explain me what actually it is and how can I use to have avalability in the system. I see lot of arctiles for the same but I am…
0
votes
0 answers

hystrix volume threshold config

default_circuitBreakerRequestVolumeThreshold=20 does default config in hystrix mean only 20 requests are allowed in 10 sec interval with 1 second bucket? Eg: If there are more than 2 requests every second in last 10 seconds does hsytrix open the…
R C
  • 21
  • 1
  • 7
0
votes
1 answer

Circuit breaker for Log4j 2

Context: Java web application running in Tomcat, Log4j 2 version 2.5. Logging set up to go to one Sentry instance using the Raven connector and one ELK (ElasticSearch + Logstash + Kibana) instance. Configuration looks like this…
vektor
  • 3,312
  • 8
  • 41
  • 71
0
votes
2 answers

Fallback disables - Hystrix

I'm using Hystrix in my environment associated with Liferay and other external services. My circuit gets some fails and opens the circuit to a specific service. Everything is fine so far. However, the circuit never changes to closed again. My…
cmsantos
  • 317
  • 1
  • 4
  • 13
0
votes
0 answers

how to track transition from circuit open to close to notify Devs?

I have written custom event notifier and registered it in HystrixPlugins. I have requirement like need to send notifications when Circuit is opened and closed. To track circuit-open I can use below event type HystrixEventType.SHORT_CIRCUITED but…
Rakesh
  • 139
  • 7
0
votes
1 answer

Is hystrix with circuit breaker good for call forwarding and high TPS case?

I have three services A, B, and C. A receives calls from two sources, and forwards most calls to B service, some to C, and handles a few based on URIs. Before forwarding calls to B or C, A does a little trivial work. The peak requests per second…
Martin
  • 190
  • 5
  • 14
0
votes
2 answers

How to make async call to DotNetCircuitBreaker

I'm using the DotNetCircuitBreaker and tries to call a async metod like this private async void button1_Click(object sender, EventArgs e) { var circuitBreaker = new CircuitBreaker.Net.CircuitBreaker( TaskScheduler.Default, maxFailures:…
0
votes
1 answer

spring cloud zuul static routes with circuit breaker

I have configured Zuul with static routes to other micro services. Is there a way to enable CircuitBreaker when calling out to other services?
blindstack
  • 251
  • 3
  • 10
0
votes
1 answer

Unable to apply "sleepWindowInMilliseconds" property in Hystrix

Hi I am trying to use Hystrix pattern in my sample program. Using following version com.netflix.hystrix:hystrix-core:1.4.21 import com.netflix.hystrix.HystrixCommand; import com.netflix.hystrix.HystrixCommandGroupKey; import…
sc so
  • 303
  • 1
  • 5
  • 13
0
votes
1 answer

Apache Camel Circuit Breaker initially in open state

I wanted to try out the Apache Camel Circuit Breaker (http://camel.apache.org/load-balancer.html) Pattern. It does not behave as I would like. Camel Routing My routing looks like this from("direct:foo") .loadBalance() …
Hubert Ströbitzer
  • 1,745
  • 2
  • 15
  • 19
0
votes
1 answer

Mockito testing a method that has a step that calls a gateway service

I am implementing a circuit breaker solution to my code using the Spring-Breaker project and was writing the test cases for the same. Consider the following example: @CircuitBreaker methodA() { //some code gatewayServiceCall() //some…
Caffeinated Coder
  • 670
  • 1
  • 8
  • 24
0
votes
1 answer

What is the best practice for a Circuit Breaker, catch all Exceptions or specific ones?

So I'm using Polly (fantastic) for a circuit breaker in C#. I was using it to just catch a handful of exceptions when calling a web service, for example: _policy = Policy .Handle() …
Ian Rathbone
  • 73
  • 1
  • 8
1 2 3
25
26