circuit-breaker-as-promised
Hysterix-like circuit breaker for Javascript which wraps circuit-breaker-js and uses promises (via bluebird)
Installation
Usage
var request = var wrapWithBreaker = var BreakerOpen = wrapWithBreakerBreakerOpen var breakerRequest = ... Use as normal
You often don't want, e.g., http client errors, to trip the breaker, but still reject the returned promise as in the following example.
var breakerRequest =