[nodejs] start node js server at debian start up

2018-03-14 Thread Sameer Joshi
Hi Raphael, You can use 'pm2' (https://www.npmjs.com/package/pm2) to manage your node processes. 1. Start the node applications from pm2 instead of vanilla node pm2 start server.js --name=someName 2. Use the startup command (http://pm2.keymetrics.io/docs/usage/startup/) to create a startup

[nodejs] Re: Node.js Long running Task scenario

2018-03-14 Thread Murukesh Sadasivan
Adding to Zlatko anwser, You definitely need a queuing system (or probably is using it already). That is because it's a long running job from what I understand (as you mentioned magnitude of hours). The queuing system can be a simple custom solution based on a database or even plain filesystem