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?
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?
