rxjs-exponential-backoff-retry

Esponential backoff retry for rxjs

Usage no npm install needed!

<script type="module">
  import rxjsExponentialBackoffRetry from 'https://cdn.skypack.dev/rxjs-exponential-backoff-retry';
</script>

README

Exponential backoff retry rof RxJs

Start retry loop after parent observable throws error.
Delay will be increase and randomize with jitter before every iteration.
If parent observable passed success, then accumulated delay will be reset, and have not influence on next produced item.

Installation

yarn add rxjs-exponential-backoff-retry

Basic usage

  defer(fetch('https://google.com'))
  .pipe(
    exponentialBackoffRetry()
  );