Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Rate Limiting #3019

Open
SChandel-cmd opened this issue Jan 18, 2025 · 1 comment
Open

Dynamic Rate Limiting #3019

SChandel-cmd opened this issue Jan 18, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@SChandel-cmd
Copy link

So for my project I was implementing rate limiters on specific workers, but I wanted the rate limiting to happen in a sort of dynamic way, as in
the job which the worker would be doing makes an api call to another service, and depending on the response time of that service, I want to increase/decrease the rate limit, but that would require me to kill the current worker and make a new one.
This is also a very high throughput scenario, so that's not an option since killing it would make me possibly lose running jobs and cause discrepancies.
But if it was possible to simply change the rate limit of a worker without having to restart it, that would be great. If anyone knows a workaround for this, that would be appreciated too.

@manast
Copy link
Contributor

manast commented Jan 20, 2025

There is manual rate limit, but I am not sure this will do what you want: https://docs.bullmq.io/guide/rate-limiting#manual-rate-limit

@manast manast added the enhancement New feature or request label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants