question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CircuitBreaker configuration groups

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
RobWincommented, May 6, 2019

You can join slack again if you like, I can tell you what’s new and interesting for Ratpack.

0reactions
drmaascommented, May 6, 2019

Despite the slow pace of releases for Ratpack we are still using it 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found