Suggestion: Multiple req_throttle()
limits in one request's policies
#555
Labels
feature
a feature request or enhancement
Some APIs have multiple throttle limits: i.e. no more than 4 requests/second and no more than 20 requests per minute and no more than 200 requests/hour.
Current behavior (as far as I've been able to verify) is that placing multiple
req_throttle()
policies on a request results in just the last policy being enforced.A desired behavior (if feasable) is a pool of throttles, with delay required to satisfy all throttles, for the above scenario:
results in stepwise increase in throttle delays. So 20 requests could happen in as little as 5 seconds, but once 20 requests are sent the throttle engages the next limit and holds until one minute is past to continue sending requests. This same occurs with respecting the 200 request/hour limit.
The benefit of this is it permits bursts of activities to occur quickly, but respects the larger scale limit(s) in place should users be doing more significant API access tasks.
The text was updated successfully, but these errors were encountered: