Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.39 KB

implement-retries-exponential-backoff.md

File metadata and controls

21 lines (17 loc) · 1.39 KB
title description keywords author ms.author ms.date ms.prod ms.technology ms.topic
Implementing retries with exponential backoff
.NET Microservices Architecture for Containerized .NET Applications | Implementing retries with exponential backoff
Docker, Microservices, ASP.NET, Container
CESARDELATORRE
wiwagn
05/26/2017
.net-core
dotnet-docker
article

Implementing retries with exponential backoff

Retries with exponential backoff is a technique that attempts to retry an operation, with an exponentially increasing wait time, until a maximum retry count has been reached (the exponential backoff). This technique embraces the fact that cloud resources might intermittently be unavailable for more than a few seconds for any reason. For example, an orchestrator might be moving a container to another node in a cluster for load balancing. During that time, some requests might fail. Another example could be a database like SQL Azure, where a database can be moved to another server for load balancing, causing the database to be unavailable for a few seconds.

There are many approaches to implement retries logic with exponential backoff.

[!div class="step-by-step"] [Previous] (partial-failure-strategies.md) [Next] (implement-resilient-entity-framework-core-sql-connections.md)