質問

I have a process that needs to be run periodically - on a Rails app, it would be a worker process. Is there an equivalent for node.js on Heroku?

I'm currently using node-cron to run the periodic process on the same server as my web application. Issues here are:

  • With only 1 web process, it won't run when the server idles
  • It will block incoming connections while running
  • When scaling, the process doesn't need to be run on multiple servers

If it is the case that Heroku simply does not yet handle this, I'm interested in seeing other Node PAAS providers solution here.

役に立ちましたか?

解決

you must have missed the new Heroku Cedar app that does all of what you want - read more at

http://devcenter.heroku.com/articles/node-js

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top