breaker icon indicating copy to clipboard operation
breaker copied to clipboard

Accept a listener to notify of breaker status changes.

Open awochna opened this issue 8 years ago • 0 comments

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!

awochna avatar Feb 14 '17 22:02 awochna