I got a question about ratelimiter, i see no examp...
# ktor
d
I got a question about ratelimiter, i see no examples of nested ratelimits. Does the inner rateLimit override the parent routes rate limit or do both actually apply?
a
The rate limit providers are processed in order from outer to inner. So, for each request, the plugin consumes a token from each provider. The first exhausted provider responds with a 429 status and stops processing.
👀 1
d
Awesome, thank you! So then it can only support narrower rate limits the further down you nest, so we need to reconsider our approach