Fault Tolerant Web Service Requests with Polly

Polly is a resilience framework for .Net. With Polly, your applications will easily handle transient failures and longer outages in remote web services. This course will teach you how to use all the major features of Polly.
Course info
Rating
(50)
Level
Intermediate
Updated
Jan 4, 2018
Duration
2h 14m
Table of contents
Course Overview
Learning the Basics of the Polly Framework
Reusing Policies for Faster Development and More Robust Applications
Unit Testing Policies
Combining Policies to Protect Against Many Types of Failure
Improving Policy Execution with Information from the Caller
Caching for Faster Responses and Better Performance
Failing and Recovering Quickly with the Circuit Breaker
Using the Bulkhead Policy to Keep Your Application Up
Polly in .NET Core 2.1 and the HttpClientFactory
Where Do We Go from Here?
Description
Course info
Rating
(50)
Level
Intermediate
Updated
Jan 4, 2018
Duration
2h 14m
Description

Failures happen when calling remote services and handling these failures has never been easy. That was the case until the Polly project came along. Polly is a resilience framework for .Net. In this course, Fault Tolerant Web Service Requests with Polly, you will learn how to make your applications resilient to a wide range of failures and outages in remote services. First, you will learn to use the simple and very powerful retry policies. Next, you will see how to use some of the other policies offered by Polly like caching and fallback. You will also learn how to reuse policies across multiple applications and how to unit test everything. Finally, you will explore how to use the more advanced features of Polly - the circuit breaker and bulkhead isolation. By the end of the course, you will be able to use all the features of Polly to build robust applications that can tolerate short and long term outages in remote services.

About the author
About the author

Bryan Hogan has been working in the tech industry for the past 17 years, 12 of which are the C# .NET world. He hosts a podcast, interviewing people from around the world and writes a blog.

Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hello everyone, my name is Bryan Hogan. Welcome to my course, Fault Tolerant Web Service Requests with Polly. I am a software architect, podcaster, and blogger. I love learning new things, and I love talking about and writing about them. Polly is a resilience framework for .NET. When I started using Polly, I was blown away by what it could do and how easy it was to use. The Polly library has been downloaded over 2 million times and has an active developer community. Using Polly will make your web requests far more reliable and your applications much more stable. It does all of this with a minimal amount of code and is thread safe. You can use it with your .NET Core and Framework applications. In this course, I'm focusing on Polly and .NET Core 2 Web API applications, but almost everything I cover is applicable in Core 1 and Framework. I'm going to show you why web requests fail and why you need Polly. Then I'll get you coding with the simple, but super powerful Retry policy. I'll show you how to reuse your policies across multiple projects and applications and how to unit test your code before moving on to complex topics like caching, circuit breakers, and bulkhead isolation. By the end of this course, you will be able to use all the features of Polly to write rock-solid code, which not only keeps your application up, but also improves the performance and reliability of the services you call. Before beginning, you should be familiar with Web API and web services in general. I'll go through everything else you need to know. I hope you'll join me on this journey to learn Polly with the course Fault Tolerant Web Service Requests with Polly, at Pluralsight.