cockatiel
cockatiel copied to clipboard
🐦 A resilience and transient-fault-handling library that allows developers to express policies such as Backoff, Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback. Inspired by .NET Pol...
consider the following sampling breaker const breaker = new SamplingBreaker({ threshold: 0.2, duration: 5000, minimumRps: 1 }); If I make 4 continuous failure calls and goes to grab a cup...
Hi, Would be happy to get to a feature parity with .NET's Polly library. So far I'm using this library extensively.. and Caching policy is one part that is missing....
it looks like this is a closure, but it would be nice to have a way to get access to the policies on a wrapped policy. This however also seems...
Currently docs are on the class, not the ctor:  
Is there any guidance around getting this to work? I'm heavily hitting an API that I don't control, nor have much insight of their (seemingly inconsistent) rate-limiting functionality. I would...
Perhaps I'm using it wrong, but after 1025 attempts the jitter in the state goes to `Infinity` and for the 1026th attempt the delay is `NaN`. ```js const { decorrelatedJitterGenerator:...
Hi! I am likely doing something wrong, but nothing comes obvious from the docs, unfortunately. This is what I do in the constructor: ```ts this.retryPolicy = retry( handleWhen((err) => !(err...
re: https://github.com/connor4312/cockatiel/issues/81
Repro in nodejs (with TS support via [tsx](https://github.com/privatenumber/tsx)): ```typescript import { ExponentialBackoff, TimeoutStrategy, handleAll, retry, timeout, wrap, } from 'cockatiel'; const fail = (times: number) => { let c =...
Polly v8 introduced resilience pipelines, built-in telemetry, renaming policies to strategies, and a few other features. Are any of these on the cockatiel roadmap?