Replies: 1 comment 2 replies
-
It limits the processor. You can learn about rate limiting in detail here (it is for BullMQ but the same principles apply): https://blog.taskforce.sh/rate-limit-recipes-in-nodejs-using-bullmq/ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I have a conceptual question regarding ratelimit option,
With above configurations, it means limit
5000
jobs per second. My question is what exactly it ratelimits. Does it ensures that not more than 5000 jobs per second. are added into the queue whenimageProcessQueue.add()
is called ordoes it mean do not process more than 5000 jobs per second when
imageProcessQueue.process()
is called. ?From documentation,
It was mentioned
groupKey
, does it means it will only ratelimit those data points when added into queue havegroupKey
. Does grouping adds performance issues as it may create a new queue to hold grouped jobs ?let's say if I ratelimit based on some
ProductId
, it means all data points in the queue having same ProductId would be grouped and ratelimited based on the unique ProductId value, or will it be ratelimited cumulatively irresepctive of ProductId value, It will just useProductId
as a word in grouping.Beta Was this translation helpful? Give feedback.
All reactions