Polly Framework VS Microsoft Transient Fault Handling
Asked Answered
Q

1

12

I want to introduce transient fault handling in our .net application. I saw two nu-get packages are available as of now. One is Polly framework and the other one is Microsoft transient fault handling application block.

We investigated and saw both support asynchronous functions and different retry strategies. Polly framework also supports circuit breaker additionally. Could someone suggest which framework to use with some solid reasons. Also, it would be really helpful if pros and cons of both the frameworks along with support on internet community and scope for future extension and support can be highlighted. Thanks in advance.

Quadratics answered 6/4, 2016 at 9:28 Comment(3)
I would go with Polly - it's lighter weight and easier to work with - lower friction. disclaimer: I have not worked with the application block solution.Brioche
Additionally, the MSTFHAB (as I will call it from now on) appears to be designed for use only for Azure hosted application, though it can be made to work on premise too.Brioche
Thanks for your replies. Yes Microsoft's solutions also works with the in house application that throws transient errors. One important thing which i noticed on MSDN blog is : This is already part of Azure package and should be used from there itself directly and on msdn is is marked as obsolete as well in few articles.Quadratics
P
19

Answering as [disclosure] the lead dev on Polly under the App-vNext umbrella, I'll confine myself to factual answers to your question about support from the internet community and future prospects for the library:

The Polly team will welcome any community feedback from the SO community!

Pittel answered 8/5, 2016 at 15:41 Comment(6)
The story is like Newtonsoft Json.Net which is now recommended by MS (de)serializer for JSON. The competition of alternatives is good, but focusing on de facto winner is great.Kilovoltampere
I've changed my mind and now I look for a simple alternative to Polly. It's just too sophisticated for real use. P.S. It is worth noting Json.Net was fired from .Net and is replaced by System.Text.Json nowKilovoltampere
So what is the microsoft library for?Axon
@YonatanNir It is deprecated, not maintained anymore, just forget that libraryQuick
@PeterCsala Is there a retry library from MS?Axon
@YonatanNir Even though polly did not start its career as MS library, now it is a valuable member of the .NET foundation. Please also note that the integration between polly and httpclient is now owned by the asp.net team (microsoft.extensions.http.polly package).Quick

© 2022 - 2024 — McMap. All rights reserved.