CircuitBreaker configuration groups
See original GitHub issueI’d like to be able to define a common configuration for a group of circuit breakers.
Scenario: I have n backends that are independent of each other and should have their own circuit breakers. However, they should have the same config.
It could be configured simliar to the existing config:
resilience4j.circuitbreaker:
templates:
group1:
ringBufferSizeInClosedState: 5
ringBufferSizeInHalfOpenState: 3
waitInterval: 5000
failureRateThreshold: 50
eventConsumerBufferSize: 10
registerHealthIndicator: true
recordFailurePredicate: com.foo.FooRecordFailurePredicate
recordExceptions:
- org.springframework.web.client.HttpServerErrorException
ignoreExceptions:
- org.springframework.web.client.HttpClientErrorException
And using it could look like circuitBreakerRegistry.circuitBreaker("group1", getHost(serviceUrl);
or circuitBreakerRegistry.circuitBreaker("group1." + getHost(serviceUrl);
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Implementing a Circuit Breaker with Resilience4j - Reflectoring
A deep dive into the Resilience4j circuit breaker module. This article shows why, when and how to use it to build resilient applications....
Read more >CircuitBreaker - resilience4j
The CircuitBreaker is implemented via a finite state machine with three normal states: CLOSED, OPEN and HALF_OPEN and two special states DISABLED and ......
Read more >How to Use Resilience4j to Implement Circuit Breaker?
The circuit breaker is a design pattern where you stop executing some code when the previous attempt(s) have failed. For example, calling web ......
Read more >Your Circuit Breaker is Misconfigured - Shopify Engineering
I'll show you how to predict how your application will behave in times of failure and how to configure every parameter for your...
Read more >Introducing Spring Cloud Circuit Breaker
The Spring Cloud Circuit Breaker project provides an abstraction API for adding circuit breakers to your application. At the time of this blog ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can join slack again if you like, I can tell you what’s new and interesting for Ratpack.
Despite the slow pace of releases for Ratpack we are still using it 😃