yet-another-circuit-breaker

A simple utility to apply the circuit breaker pattern to any asynchronous function.

Usage no npm install needed!

<script type="module">
  import yetAnotherCircuitBreaker from 'https://cdn.skypack.dev/yet-another-circuit-breaker';
</script>

README

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).