Question about rate limiting
Created by: matthiasfeist
Hi!
I have bull running a queue on 2 machines with the same redis cluster which is working fine. Both machines take a job from the queue and process it correctly. Since these jobs call some rate limited APIs I'd like to configure the rate limit in bull.
I'm not really certain however if the rate limit is a global setting or would only apply for one machine. So in my case if the external API could do max 60 requests per minute and I have 2 machines processing the jobs, do I need to set the rate limit to 60/m since it's global per redis server or to 30/m since I'm having 2 machines? This is not entirely clear to me from the docs.
Thanks for the help.