MordsithM
Convex Community2y ago
8 replies
Mordsith

Handling Rate Limits with Convex Scheduler

If I were to mirror a queue that runs exactly like a setInterval, how do I do that?

Scenario. I want to call a third-party service that has a 1req per minute rate limit. With most queue workers, using a simple configuration, you can specify that you want the worker to run jobs every 1 minute to beat the rate-limiting problem. If 10,000 users make a request at once, no problem since all this will be in the queue and the worker will process it every minute.

Hw do I configure a scheduler to work this way? Imagine 10, 000 users would hit the function to be scheduled. I want to process this using FIFO at set intervals
Was this page helpful?