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

How to achieve Producer to Consumer(s) pattern? (Kafka like) #898

Closed
sorooshme opened this issue Nov 29, 2021 · 2 comments
Closed

How to achieve Producer to Consumer(s) pattern? (Kafka like) #898

sorooshme opened this issue Nov 29, 2021 · 2 comments

Comments

@sorooshme
Copy link

Hey, We are planning on using BullMQ for our notification system.

Consider the following example:

await notificationQueue.add('new-notification', notificationData);

new Worker('email-notification', emailProcessor);
new Worker('whatsapp-notification', whatsappProcessor);
new Worker('push-notification', pushProcessor);
// And many more...

How to achieve this? adding an event and processing it in multiple workers? something like Kafka consumer groups

@manast
Copy link
Contributor

manast commented Nov 29, 2021

This maybe? https://docs.bullmq.io/bullmq-pro/groups

@sorooshme
Copy link
Author

Yes, that addresses my question, Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants