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

Accept a listener to notify of breaker status changes. #1

Open
awochna opened this issue Feb 14, 2017 · 0 comments
Open

Accept a listener to notify of breaker status changes. #1

awochna opened this issue Feb 14, 2017 · 0 comments

Comments

@awochna
Copy link
Owner

awochna commented Feb 14, 2017

The basic idea is that you could pass a process that you want to receive status changes from a particular breaker:

user_service = Breaker.new(%{url: "http://example.com/user", notify: other_pid})

When the breaker is tripped, it'll send a message to the process, giving you control over logging or debugging non-trivial network failures.

I'm not sure how useful this kind of thing is yet, sound off with your input!

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

No branches or pull requests

1 participant