Background processes in Node.js

前端 未结 6 1594
刺人心
刺人心 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:36

    I tried bee-queue & bull and chose bull in the end. I first chose bee-queue b/c it is quite simple, their examples are easy to understand, while bull's examples are bit complicated. bee's wiki Bee Queue's Origin also resonates with me. But the problem with bee is <1> their issue resolution time is quite slow, their latest update was 10 months ago. <2> I can't find an easy way to pause/cancel job.

    Bull, on the other hand, frequently updates their codes, response to issues. Node.js job queue evaluation said bull's weakness is "slow issues resolution time", but my experience is the opposite!

    But anyway their api is similar so it is quite easy to switch from one to another.

提交回复
热议问题