microsoft-authentication-library-for-dotnet icon indicating copy to clipboard operation
microsoft-authentication-library-for-dotnet copied to clipboard

[Feature Request] Provide ability to turn off the default retry-once policy and recommend retry policy

Open rymeskar opened this issue 4 years ago • 2 comments

By default, MSAL retries http calls once on 5xx with a delay of 1 second.

Scenario In expert and high traffic scenarios, customers might want to provide own retry strategies, retry periods and resilient http client strategies (circuit breaker). The behavior within MSAL then intercepts with the logic that the clients might want to inject through the WithHttpClientFactory configuration.

Proposal Provide a knob to turn off the retry-once behavior of MSAL.

Note: see larger issue tracking this: https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/3561

rymeskar avatar Sep 08 '21 08:09 rymeskar

CC @trwalke

bgavrilMS avatar Jul 13 '22 17:07 bgavrilMS

We will remove the default retry policy completely, as there are concenrns about retry storms. Apps should deal with retries.

bgavrilMS avatar Jul 13 '22 17:07 bgavrilMS

MSAL 4.47.0 has been released, This issue is now fixed.

gladjohn avatar Sep 17 '22 00:09 gladjohn