Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaker per url #43

Open
menneni opened this issue Aug 18, 2022 · 1 comment
Open

breaker per url #43

menneni opened this issue Aug 18, 2022 · 1 comment

Comments

@menneni
Copy link

menneni commented Aug 18, 2022

We would like to use circuit breaker pattern while integrating with 3rd party API's, however we want to isolate failures at integration + customer level.

For example, example.com/test is one integration can be used by customer 1 and anotherexample.com/test is another integration used by customer 2.

Let's say, when example.com/test is down and circuit trips after threshold, we do not want to affect customer 2 and others except customer of that particular integration which is down, is this possible?

I guess challenge is we upfront do not know how many integrations will be needed so we need some dynamic way to define circuit breakers per combination of integration and customer (unique id of integration might be sufficient)

@bnm3k
Copy link
Contributor

bnm3k commented Jun 12, 2023

It is possible, you can have separate CircuitBreaker instances per integration + customer then use a map to get which instance to use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants