Search code examples
javascript.netangularrestpolly

Are there any JavaScript (Angular) equivalents of the .net Polly library


I recently discovered the .net library Polly . From the GitHub page..

Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback.

It looks very powerful and extremely easy to use, however I am after the same sort of thing for my Angular applications (Polly is only for .net). Perhaps I should see if the Polly team may consider a JS port.

I know Rxjs has retry, timeout etc (which I currently use), but was wondering if there was some package that perhaps wrapped this similar to the way you can with the Polly policies, and also include features such as the caching?

I've done a fair bit of searching, and not found anything yet.

Thanks in advance!


Solution

  • For for anyone else. As well as polly-js I have since also come across cockatiel which actually seems to have a lot more in it (more like the .net version)

    Its a pity the name makes it hard to find.