You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the Azure client SDKs perform their own retry logic. If I wanted to use Polly's circuit breaker with an Azure client, would you suggest that the Polly circuit breaker just detect exceptions that the Azure client raises?
Hi @francischeung Yes, that's a completely valid way to proceed, to combine Polly's circuit-breaking with Azure's built-in retry logic, and your code sample looks perfect for this.
When Polly v5.0 is launched in the next four weeks or so, there may be other factors to consider regarding using Azure's retries versus Polly's. Polly v5.0 is adding a whole host of wider resilience features, and the ability to combine all those resilience strategies into a PolicyWrap. For certain combinations of Polly resilience strategies, the most logical place for retry is going to be somewhere in the middle of the policy wrap ... something like:
Placing a retry in the midst of Polly's (forthcoming) wider resilience strategies like this, could be done with Polly's Retry policies, but not with Azure's retry policies (you couldn't mix Polly's on both sides of Azure's). so at that point you might want to switch to Polly retry as well.
We are aiming to have v5.0 as an alpha nuget release in week beginning 24 October.
Most of the Azure client SDKs perform their own retry logic. If I wanted to use Polly's circuit breaker with an Azure client, would you suggest that the Polly circuit breaker just detect exceptions that the Azure client raises?
The text was updated successfully, but these errors were encountered: