Questions tagged [spring-cloud-circuitbreaker]

20 questions
4
votes
0 answers

Avoid wrapping cause in NoFallbackAvailableException when using Spring Cloud Circuit Breaker

I'm using Spring Cloud Circuit Breaker 2.0.0 (resilience4j implementation) for circuit breaking in my application. Let's say a have method define like this: String doStuff() { ... // Oh no, something went wrong throw new…
Johan
  • 37,479
  • 32
  • 149
  • 237
3
votes
0 answers

implement circuit breaker with openfeign in spring-boot 2.4 and spring cloud 2020

If I want to upgrade to spring-boot 2.4 and spring cloud 2020. Now that spring-cloud-starter-netflix-hystrix has been removed from spring-cloud-netflix, How can I implement circuit breaker with openfeign? I did a direct import but my IDE cannot…
2
votes
1 answer

Resilience4j Retry module in Spring Cloud Circuitbreaker

I'm trying to migrate my Spring Boot 2 Resilience4j implementation to the one provided by Spring Cloud Circuitbreaker. So basically, from resilience4j-spring-boot2 + resilience4j-reactor dependencies to…
1
vote
0 answers

How can I implement the circuit breaker pattern and retry pattern at the same time using Resilience4j with Spring Boot and microservices?

I'm doing a project using Spring Boot and Micro-services architecture. I have two micro-services one calling the other to process a request from API gateway. I'm trying to implement the circuit breaker pattern and retry pattern at the same time…
1
vote
0 answers

Spring Cloud Gateway with Resilience4J Circuit Breaker did not go to open state

While attempting to integrate Resilience4J with Spring Cloud Gateway, some features such as retry appear to be working properly, but the Circuit Breaker did not open the state although failure was counted as shown at below screenshot. @Bean public…
1
vote
0 answers

Spring Cloud AWS messaging with a circuit breaker

I would like some pointers/guide in how to configure a circuit breaker when working with "Spring Cloud AWS messaging" with an annotation driven approach: I'm using spring cloud AWS to work with an SQS and I wan't to use the "SqsListener"…
1
vote
2 answers

Is Spring Cloud Stream affected by CVE-2022-22963 (spring cloud function)

The CVE-2022-22963 - spring cloud function vulnerability was recently discovered and a simple fix was provided by the team here: cve-report-published-for-spring-cloud-function We are getting spring-cloud-function-context:3.0.6 from…
1
vote
1 answer

Resilence4j 1.7.1 is not executing - jdk 17

I am not sure if this is a jdk compatibility issue or if I am missing something. I tried resilence4j git dependency as below: implementation group: 'io.github.resilience4j', name: 'resilience4j-spring-boot2', version: '1.7.1' implementation group:…
1
vote
1 answer

Using circuit breaker in spring boot

I have recently studied the circuit breaker pattern and I am doing a POC to implement it in my spring boot application. I found that spring provides an implementation of resilience4j out of the box. I am studying an article who's github repo I am…
0
votes
1 answer

Resilience4j goes from CLOSED to HALF_OPEN directly without going to OPEN

In a circuit breaker setup using resilience4j, the Circuit Breaker goes from CLOSED to HALF_OPEN directly without going to OPEN. Not just this, this happens when we are not providing the success of failure metrics to it. Two things are not clear…
0
votes
1 answer

FallbackExecutor : No fallback method match found

Already have a fallback methods with argument as exception but still get error spring6.fallback.FallbackExecutor : No fallback method match found java.lang.NoSuchMethodException 13:51:19.941 INFO --- o.s.web.servlet.DispatcherServlet :…
0
votes
0 answers

Spring Cloud and Resilience4j Circuit Breaker - cannot retrieve instance of existing circuit breaker for test validation

I am asking a question similar to this one, and I have tried many different ways of acquiring an existing circuit breaker, created via annotation, within my integration test. I tried Autowiring in both the main class and test…
0
votes
0 answers

Spring Cloud Circuit Breaker TimeLimiter goes always to fallback

I am usin Spring Cloud Circuit Breaker Timelimiter with Spring 2.7.10 and Java 8. Problem is that fallback is called (or No fallback available) instantly and circuitbreaker.run never goes to the called method. What could be the problem? Sorry for…
0
votes
0 answers

CircuitBreaker fallbackMethod not being called

I am building a microservices application using java spring boot. Currently, there are 4 services: Discovery server, api-gateway, portfolio-service, market-data-service. I want to make use of the Circuit Breaker for fault tolerant. However when I…
0
votes
1 answer

Setting timeout to OpenFeign client

I'm trying to setup a timeout to my feign clients when they try to access to other of my services. In order to test my circuit breaker method. This is my basic setup. I'm using spring-boot 3.0.2 and spring cloud version 2022.0.1 I have a…
1
2