[Fixed]-Heroku scheduler vs clock process

1👍

Yes there are some! But as you already said, the main and most prominent difference of using a clock process, is the much finer level of granularity you can achieve. With the Heroku Scheduler, for example, you cannot achieve things like:

  1. Run every 5 minutes
  2. Run every 10 seconds

That being said another important difference between the two scheduling methods is reliability. When you use the Heroku Scheduler you are literally using a “black box”, with no control over the size of your infrastructure. With a clock process you are one step further, as you can choose the size of your dyno (maybe you have a scheduling process that demands some kind of hard computation (even though you’ll better dispatch the computational demanding tasks to background workers)).

Also, one could argue, if you have a complex scheduling system that calls many different external services and scripts, having control over the scheduling code may help you testing and organizing your code.

Leave a comment