I recently discovered the 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 ). 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!
I recently discovered the 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 ). 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!
Share Improve this question asked Jan 21, 2018 at 6:35 petercpeterc 7,87313 gold badges79 silver badges161 bronze badges2 Answers
Reset to default 8There is polly-js authored by @maurice. I am aware this covers retry policies; the authors of that library could ment further.
I don't (as the maintainer of Polly for .Net) have bandwidth at ths time to undertake a Javascript port. However, I would be happy to support (or advise, eg about concepts) anybody who wants to develop a Javascript/Angular equivalent.
For for anyone else. As well as polly-js I have since also e across cockatiel which actually seems to have a lot more in it (more like the version)
Its a pity the name makes it hard to find.