yet-another-circuit-breaker
TypeScript icon, indicating that this package has built-in type declarations

1.10.1 • Public • Published

Yet another circuit breaker (YACB)

Valor-mmm codecov Known Vulnerabilities

This WILL be a simple, configurable utility for the circuit breaker pattern. Wrapped around asynchronous functions.

Up to this point, this is still a WIP, which is only partially functional. I will update the readme, after the first actual release.

Roadmap

In the near future

  1. Implement logic to change configurations during runtime.
  2. Enable configuration to limit requests in Half-Open state.
  3. Performance tests.

Sometime / Maybe

  1. Possibility to provide a logger through an interface.
  2. Custom failure test function (check, which results mean failure).
  3. Ability to check operation during OPEN state to switch to HALF-OPEN more early.
  4. AI to evaluate the right time to switch to HALF-OPEN state (maybe as plugin).

Package Sidebar

Install

npm i yet-another-circuit-breaker

Weekly Downloads

4

Version

1.10.1

License

MIT

Unpacked Size

160 kB

Total Files

110

Last publish

Collaborators

  • valor-mmm