Hi Everyone!
This is continuation of the series of posts on Polly v8 and .NET 8.
In this series of posts, I will try to cover some of the new features of Polly v8 and .NET 8. Below are the topics I am planning to cover in this series :
Implementing Retry Strategy for HttpClientFactory using Polly(v8) and .NET 8
This Post - Re-Authorize Efficiently Using Polly And .NET HttpClientFactory in .
Hi Everyone!
As we all aware, Polly v8 is released sometime back and so is .NET 8, it is ready for Production use 🥳.
In this series of posts, I will try to cover some of the new features of Polly v8 and .NET 8. Below are the topics I am planning to cover in this series :
This Post - Implementing Retry Strategy for HttpClientFactory using Polly(v8) and .NET 8
Recently, Polly team did fabulous job 🎉 by releasing the new version 8.0.0. It has lot of improvements and also they re-implemented Policy as Strategy. Polly v8 introduces the concept of resilience pipelines, a powerful tool that put together one or more resilience strategies.Here is the all changes you can find.
The Problem Microsoft provides a extension Microsoft.Extensions.Http.Polly which allows us to use Polly with HttpClientFactory. It is very easy to use and you can find the documentation here.
In today’s world, we are using a lot of APIs to build our applications. To make your .NET based applications more ressilient and fault tolerant, go to solution is to use Polly. Probably, you are already using it. So,I’m not going to explain how to use it in general. You can find some excellent documentation here.
However, In this post I’m going to discuss about one of the typical scenario where we need to refresh the authentication token when using Polly.