最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin3浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 8

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

发布评论

评论列表(0)

  1. 暂无评论