Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top