-
Notifications
You must be signed in to change notification settings - Fork 185
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 for host+service #19
Comments
Basically you should create a circuit breaker instance not for each host but for each service. If some part of hosts cannot work due to system failure, you should reduce the load of the remaining hosts. |
In case of memory and cpu utilization does this is cheap? |
By gobreaker, you can suppress requests that are likely to fail and avoid the waste of CPU and memory resources. |
thanks for help. Last question - how to ignore specific errors for example 404 and 403 error codes does not mean error in service. So i don't want to block it, but may be i want to block only 50x and 408... ? |
CircuitBreaker can wrap any function to send a request. You can ignore specific errors in |
thanks, I'm use two-step broker variant. |
i want to use gobreaker in my project, i have chained api that looks like this:
request -> api gw -> oauth -> svc1 -> svc2 -> response
oauth, svc1 can work on multiple hosts and if one fails another can work.
doe i need to create different instances of breaker for such thing? or how to deal with such cases?
The text was updated successfully, but these errors were encountered: