Skip to content

Rate limiting requests to Amazon AWS services #2340

Answered by martincostello
lonix1 asked this question in Q&A
Discussion options

You must be logged in to vote

Can you share a link to a specific HttpClient example you're looking at?

There are some HttpClient-specific ways to integrate Polly that "hide" it from the consumer by hooking into HttpClientFactory and adding Polly into the HTTP request pipeline transparently. The Microsoft extensions for Polly use this approach, for example.

Apart from the above, HttpClient isn't special and any code can be wrapped with Polly to do retries, circuit-breaking, rate-limiting, timeouts etc.

Our documentation for rate-limiting should be applicable for AWS, Azure or anything else.

If you want to go down the HttpClient-specific route, you would need to tie the creation of AWS clients into the HttpClient pipeli…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@lonix1
Comment options

@martincostello
Comment options

Answer selected by lonix1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants