yammer / circuit-breaker-js Goto Github PK
View Code? Open in Web Editor NEWHystrix-like circuit breaker for JavaScript.
Home Page: http://yammer.github.io/circuit-breaker-js/
License: MIT License
Hystrix-like circuit breaker for JavaScript.
Home Page: http://yammer.github.io/circuit-breaker-js/
License: MIT License
I would like to use it in my node/express REST app. Unfortunately at the moment I can't see the way to do it, the library seems to me focused on browser usage only. Would you accept a pull request that fixes this and adds server-side module.exports functionality?
Hello,
As PR #10 has been merged last month, is it possible to publish a new version on NPM ?
Thanks in advance.
I wanted to potentially use this module or something similar, however it appears no activity has been made on this project for awhile.
Has this module been official abandoned?
Thanks!
I recently discovered my implementation was throwing an exception before calling the success
or failure
methods. Personally I'd expect that circuit-breaker would take that to mean failure. How to reproduce:
var breaker = new CircuitBreaker();
breaker.run(function(success, failed) {
throw new Error("uncaught error");
});
How I'm fixing this now:
var breaker = new CircuitBreaker();
breaker.run(function(success, failed) {
try {
throw new Error("example");
} catch (e) {
failed();
}
});
Would it make sense to add this behavior to the circuit-breaker library?
Hello.
First thank you very much for implementing this library!
I would like to discuss the use case that I have: I set a timeout on the request and abort the request when it occurs, then I count such error to be a failure, so I don't really need timeoutDuration
from the library.
I plan to set timeoutDuration
to be 1 second later than my socket timeout, so it won't be triggered, but it seems to be a hack.
The api for run
as it stands is equivalent to accepting a constructor of a promise. Would you be open to a PR which allows for accepting a promise as well?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.