Retry and Rate Limit chaining #1718
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi LBalsa, the pollydocs have been recently extended with several sequence diagrams regarding
In this case the retry will be your outer strategy and the rate limiter will be the inner. Depending on your rate limiter setup it either allows the request, queues it or rejects it. The retry will be triggered only if the rate limiter reject the request or the rate limiter does not handle the thrown exception.
Nesting |
Beta Was this translation helpful? Give feedback.
Hi LBalsa, the pollydocs have been recently extended with several sequence diagrams regarding
ResiliencePipeline
s to clarify how strategy chaining works.In this case the retry will be your outer strategy and the rate limiter will be the inner. Depending on your rate limiter setup it either allows the request, queues it or rejects it. The retry will be triggered only if the rate limiter reject the request or the rate limiter does not handle the thrown exception.
Nesting
ExecuteAsync
calls are considered anti-pattern. Here you can read more about this topic.