Skip to content

Conversation

@lchaoer
Copy link
Contributor

@lchaoer lchaoer commented May 23, 2025

Add a warning of using ShouldHandle in retry strategy, this is a lesson in our real practice, hope we can help more people.

In our practice, we add Retry->AttemptTimeout resilience strategies, and we configure the ShouldHandle delegate in retry strategy, but we only take care of the System.TimeoutException, omit the Polly TimeoutRejectedException, this makes all the requests hitting attempt timeout but not able to retry, and downgrade the service's availability.


Internal previews

📄 File 🔗 Preview link
docs/core/resilience/http-resilience.md Build resilient HTTP apps: Key development patterns

Add a warning of using ShouldHandle in retry strategy, this is a lesson in our real practice, hope we can help more people.
@lchaoer lchaoer requested a review from a team as a code owner May 23, 2025 08:16
@dotnetrepoman dotnetrepoman bot added this to the May 2025 milestone May 23, 2025
@dotnet-policy-service dotnet-policy-service bot added dotnet-fundamentals/svc community-contribution Indicates PR is created by someone from the .NET community. labels May 23, 2025
@lchaoer
Copy link
Contributor Author

lchaoer commented May 26, 2025

@IEvangelist , @iliar-turdushev could you please review this PR, just to add a warning comment in the doc, thanks

@IEvangelist IEvangelist enabled auto-merge (squash) May 28, 2025 14:33
@IEvangelist IEvangelist merged commit eb0134a into dotnet:main May 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community. dotnet-fundamentals/svc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants