问题
(Most of the questions asked here about this subject are a bit old, and I was wondering what had change in the Node ecosystem it all those years.)
I'm basically looking to implement a job queue in an app of mine in node.js. I've heard about and seen Sidekiq in action in the Ruby world and how great of a job it does, and was wondering if something similar existed in node.
Workers will be written in Javascript so it doesn't have to be polyglot (it's great if it is, but definitely not a requirement).
A big plus would be an easy way to visualize the jobs currently running, those that failed etc.
What do you guys use? What lib/service do you know about that fits these requirements?
回答1:
Try https://github.com/taskrabbit/node-resque.
Resque and Sidekiq share the same data structures. In node, getting multiple jobs to process at once is very simple.
回答2:
You can simply use Sidekiq, there are npm interfaces.
The npm package is at: https://www.npmjs.com/package/sidekiq
来源:https://stackoverflow.com/questions/35790924/what-is-a-good-sidekiq-like-job-system-for-node-js