-
Notifications
You must be signed in to change notification settings - Fork 464
Adding circuit breaker internal module #4335
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
base: master
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few things to address
- nothing uses fx in this repo, lets not start now please. don't call this this
circuitbreakerfx/...
- move this to either
src/dbnode/client/circuitbreaker
orsrc/dbnode/x/circuitbreaker
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re: src/dbnode/client/circuitbreaker/internal/circuitbreaker/circuit.go
- don't worry about internal/ v not (the repo never adopted that idiom)
- and why do you have
circuitbreaker
being a sub-package ofcircuitbreaker
?
What's wrong with the simple version src/dbnode/client/circuitbreaker
?
also - please fix ci tests/lint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
What this PR does / why we need it:
This PR adds circuit breaker core library that provides APIs for a failure-rate based circuit breaking for high throughput systems. It is referenced from open source yarpc module, that is also used in uber go monorepo.
Special notes for your reviewer:
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: