Hello devz!

Typically, we want to get data from a distant service. This service can be slow, could not respond, or just be down… But can we still be robust in our application? Using the Retry Pattern with Polly, you can!

The Retry Pattern allows us to retry a task in case of exceptions, can put a delay between these retries, can manage timeout, etc…

Polly is an awesome open source project part of the .Net Foundation. Polly has many options and excels with it’s circuit breaker mode and exception handling.

In this simple example, I will demonstrate how to manage a transient operation using the Retry Pattern with Polly and C#.

Polly is a really useful tool to manage transient operations and contains many options. What we did here was just a simple tutorial containing the most important configuration settings.

Happy coding!  🙂