awolden / brakes

Hystrix compliant Node.js Circuit Breaker Library
MIT License
300 stars 35 forks source link

Added circuit generations to prevent timeouts from bleeding between c… #95

Closed awolden closed 6 years ago

awolden commented 6 years ago

Adds in the concept of circuit generations. A generation will be an integer that increments by one every time a circuit is opened. Service requests will be tagged with a generation and the generation will be checked on failed response to make sure we don't inadvertently pollute the current circuit with requests that are from a previous circuit generation.