Rate limiting/throttling with a fifo queue
I'd like one of my cloudflare worker routes to fetch a third party api. This third party api has a rate limit of 60 requests per minute.
How can I account for this rate limit such that if I receive 100 requests from clients in one minute, the first 60 are processed and the rest are fifo queued until the minute is over, then they will be processed as well?
2 Replies
Use #queues-beta?
Cloudflare Docs
Cloudflare Queues · Cloudflare Queues
Cloudflare Queues is now in open Beta . Join the #queues-beta channel in our Developer Discord to learn more.