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

[Enhancement] Parallelization of queue worker #1

Open
giranm opened this issue Jan 10, 2022 · 0 comments
Open

[Enhancement] Parallelization of queue worker #1

giranm opened this issue Jan 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@giranm
Copy link
Owner

giranm commented Jan 10, 2022

The current implementation of ratelimitqueue assumes a single worker thread which processes events; suitable for PagerDuty's current rate limit (120 per minute per key).

If PagerDuty decides to increase their rate limit per integration key, the event handler should be updated to process more events to meet the new rate limit. This is possible by ensuring queue is processed by a pool of workers in parallel.

Example implementation: https://github.com/JohnPaton/ratelimitqueue/blob/master/examples/example_workers.py

@giranm giranm added the enhancement New feature or request label Jan 10, 2022
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

1 participant