-
There are many servers running jobs, use the same queue, such as
Does all servers only complete max 5 tasks during 10s (global)? Or each server complete max 5 tasks during 10s (local). If limiter is global, how can I set local limiter ? thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
manast
Nov 18, 2022
Replies: 1 comment
-
The rate limiter is global for a given Queue, I wrote a blog post about rate-limiting that may be helpful to you (it is for BullMQ but the basics are the same): https://blog.taskforce.sh/rate-limit-recipes-in-nodejs-using-bullmq/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chenxxzhe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The rate limiter is global for a given Queue, I wrote a blog post about rate-limiting that may be helpful to you (it is for BullMQ but the basics are the same): https://blog.taskforce.sh/rate-limit-recipes-in-nodejs-using-bullmq/