Fault Handling with Polly and .NET 6
Les Jackson
In this step by step video we build 2 simple .NET 6 Services and work with the Polly library to ensure we can handle any transient faults that may occur when one service calls the other.
The video includes:
• Overview of transient faults
• A look at the Retry Policy
• Step by Step Service build with .NET 6 & C#
• Implementing immediate, liner and exponential back off retry policies
• Working with the HttpClient and HttpClientFactory
• HttpClient & HttpClientFactory
Links
📕 My Book: https://link.springer.com/book/10.1007/978-1-4842-6255-9
🤩 Patreon Site (Exclusive Member Benefits!): https://www.patreon.com/binarythistle
📕 Webhooks Course: https://dotnetplaybook.learnworlds.com/course/webhooks
🔗 Blog: https://dotnetplaybook.com/fault-handling-with-polly-a-beginners-guide/
🔗 GitHub Repo: https://github.com/binarythistle/Polly-Beginners-Guide
⏲️ Time Codes ⏲️
PART 1 – INTRODUCTION
– 0:49 Welcome
– 3:01 What we’ll cover
– 4:38 What are Transient Faults?
– 7:59 Handling Transient Faults
– 14:20 What is Polly
PART 2 – RESPONSE SERVICE
– 15:41 Scaffold Response Service
– 21:48 Response Endpoint
– 28:57 Making our endpoint fail (randomly)
PART 3 – POLLY & THE REQUEST SERVICE
– 33:58 Scaffold Request Service
– 42:59 Making Calls without Polly
– 49:31 Immediate Retry Policy
– 1:01:56 Linear Retry Policy
– 1:08:01 Exponential Back off Policy
– 1:13:40 Introducing HttpClientFactory
– 1:18:59 Refactoring Request Controller
PART 4 – CREDITS
– 1:26:23 Patron Supporter Credits