Skip to content

How to use bullmq in a micro service #2652

Answered by manast
850036165 asked this question in Q&A

You must be logged in to vote

In javascript you cannot do that, when you have an async function it must complete or fail (or run forever if it does not timeout or something). If you control the service "algorithm/process" what you typically do is that you post some job there, and then return immediately, when the algorithm/process completes it posts the result in another queue, a result queue, that some other service listens to, and so on. Maybe this blog post can give you some ideas: https://blog.taskforce.sh/do-not-wait-for-your-jobs-to-complete/

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@850036165

Answer selected by 850036165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants