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

Dispatching in one application and processing in another one #55

Open
albertovaccarella opened this issue Sep 25, 2024 · 1 comment
Open
Assignees

Comments

@albertovaccarella
Copy link

albertovaccarella commented Sep 25, 2024

This is more a question than an issue, based on what I understood from the source code (since I couldn't find it in the docs nor in the issues).

Am I right in understanding that this BullMQ wrapper is meant to dispatch and process jobs within the same Adonis application?

My use case is a common one in service oriented architecture, where one service would post something to the queue (e.g. "some data processing completed") and some other would pick it up to do something with it (e.g. "send email to notifiy users about new data being ready").

@RomainLanz would you suggest to use BullMQ directly in this case or am I missing something about this package that would cater to my use case?

@RomainLanz
Copy link
Owner

Currently, the package dispatches a job inside your Redis storage. Then, a worker (another process) will listen, read, and execute your job when it is free.

You will likely have one or multiple workers handling your jobs in production.

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

No branches or pull requests

2 participants