Skip to main content

Retry logic

Implementing retry logic (e.g. when calling another module with a REST API) can be a bit of a mess. You start at one place in your code and everything looks nice, then after a while a need for configuration develops, and then retry-logic is needed somewhere else. On top of that, software is developed in different teams.

At my work we are examining Polly ("Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.") to see if that framework can help us. So far, I have just made simple tests and it looks promising. Stay tuned. 

Comments