Difference between node-cron module and Heroku scheduler

I have a node application running on Heroku.
I want some jobs to run periodically every few seconds in order to fetch data from an external MySQL database to my MongoDB.
After searching extensively, I have found many ways to do this.

My problem: I cannot fully understand the difference between the cron module and Heroku scheduler and the pros and cons.

Some differences I noticed:
If I use Heroku Scheduler, there is a 10 minute limit.
If I use the node-cron module, I run it in the main index.js file and it will run every few seconds if I want to.

But how do these two methods affect when running multiple speakers?
In this case, the scripts will run multiple duplicate times?

+3
node.js mongodb cron heroku


source to share


No one has answered this question yet

Check out similar questions:

3044
What's the difference between tilde (~) and caret (^) in a .json package?
1822
What's the difference between dependencies, devDependencies and peerDependencies in the npm package.json file?
867
How to remove npm modules in js node?
3
Is there a way to run scheduled jobs on Heroku without interrupting the new dinosaur?
3
Scheduling Heroku Scheduler vs Heroku Temporize Scheduler, what's the difference?
2
Heroku Iron.io worker vs cron vs worker dino
2
How to implement cron job (using scheduling node) in Node JS application
2
How to implement a simple cron job with Heroku and Django
1
Do I need to use the heroku scheduler?
0
Heroku R10 + Node.js Cron load timeout



All Articles
Loading...
X
Show
Funny
Dev
Pics