adonisjs / discussion

Discussing about new features and sharing random thoughts: ⚠️ Not every request will be accepted
51 stars 5 forks source link

[4.0] Queues/Jobs #16

Open milosdakic opened 7 years ago

milosdakic commented 7 years ago

Looking into having a queue/job system implemented for Adonis. Very similar to the events system but will post the job into a db/file and queue it for a worker to handle.

Alas Laravel/Lumen.

RomainLanz commented 7 years ago

?

milosdakic commented 7 years ago

@RomainLanz updated my comment.

rbartholomay commented 7 years ago

For jobs I use this https://github.com/nrempel/adonis-scheduler.

And it runs fine!

outOFFspace commented 7 years ago

RabbitMQ?

radmen commented 6 years ago

@rbartholomay correct me if I'm wrong - adonis-scheduler is more like CRON rather then MQ handler? :)

@milosdakic recently I got a project based on Adonis 4 which required integration with some sort of MQ (it was not decided during the time of development). I couldn't find any suitable solution so decided to make my own MQ handler. You can find it here: https://github.com/DeSmart/queuejs

I was able to integrate it quite easily into Adonis. If you want to I could provide dirty solution (no unit tests, and definitely not as robust as it is in Laravel).

webdevian commented 6 years ago

I used https://github.com/nrempel/adonis-kue as an alternative to RabbitMQ. Unfortunately it seems to have gone stale and is not Adonis4 ready.

@danilopolani and I have done some work to make it compatible https://github.com/danilopolani/adonis-kue/commits/adonis4

rbartholomay commented 6 years ago

@radmen yes - it´s like cron...