Sign in
Log inSign up

Best practices for Node.js job queue?

Siraj abbas's photo
Siraj abbas
·Jan 21, 2017

I am planning to implement a delayed job queue system in nodejs(express js) for tasks such as app analytics,image processing,file processing etc.. I tried following libraries

https://github.com/Automattic/kue

https://github.com/rvagg/node-worker-farm

I have following queries

  1. Do I need to host the job runner redis db on separate server machine
  2. What happens if the nodejs process restarts(whether task will resume or not)
  3. How to recover tasks if the server machine crashed and restarted
  4. How to stop application/database server without interrupting scheduled jobs