You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making calls to an API that has two separate rate limits in place:
max 60 requests per minute; and
max 4 requests per second
Is there a way of adhering to these rate limits using p-queue? So far as I can understand, I can only set a rate limit constraint based on one but not both, using interval/intervalCap?
The text was updated successfully, but these errors were encountered:
What if you had two queues? One configured for 60 requests per minute, and another configured for 4 requests per second, then make each function call run through both queues.
I haven't tested this out, but I think this should work.
I am making calls to an API that has two separate rate limits in place:
Is there a way of adhering to these rate limits using
p-queue
? So far as I can understand, I can only set a rate limit constraint based on one but not both, usinginterval/intervalCap
?The text was updated successfully, but these errors were encountered: