Background processes in Node.js

前端 未结 6 1605
刺人心
刺人心 2020-12-22 16:48

What is a good aproach to handle background processes in a NodeJS application?

Scenario: After a user posts something to an app I want to crunch th

6条回答
  •  感动是毒
    2020-12-22 17:39

    I suggest to use a proper Node.js framework to build you app.

    I think that the most powerful and easy to use is Sails.js.

    It's a MVC framework so if you are used to develop in ROR, you will find it very very easy!

    If you use it, It's already present a powerful (in javascript terms) job manager.

    new sails.cronJobs('0 01 01 * * 0', function () {
       sails.log.warn("START ListJob");
    }, null, true, "Europe/Dublin");
    

    If you need more info not hesitate to contact me!

提交回复
热议问题