What is the equivalent of setting a Laravel queue in Express?

Laravel offers a feature called Queues where you delegate a long running task to a second worker using a service (beanstalkd, Amazon SQS, MQ Bunny). A quick example is sending email through a queued job rather than from a controller. The mentioned job in the queue can determine whether the task was completed or if it failed, try again a certain number of times.

What is the Express (NodeJS) equivalent of this function (if it exists)? I tried researching the topic by looking directly at the service resources (like RabbitMQ) and I only found a tutorial like this one , but just reading it looks like they are implementing this thing off the ground.

Perhaps my expectations are what is wrong here, but isn't there the equivalent of just writing the business logic code for the queued queue and dispatching it?

+3


source to share


1 answer


In our case, when we need to implement background jobs to send email with attachments to mass users using node and express, we came across a powerful npm Kue module that provides all the functionality that RabbitMQ provides in php

Official documentation



Hope it helps!

+2


source







All Articles