vendredi 24 juillet 2015

Scheduling tasks on Node when scaling the app on cloud instances

If I want to schedule a task to run say once every 30 minutes. I could do this with a basic timeout or use a node module like node-schedule.

But If I deploy my app to the cloud, such as Amazon AWS or Azure, and scale the instances to say 10, will this task then be scheduled to run 10 times, one for each instance? How can I avoid this, or am I thinking about how cloud instanced work in the wrong way.




Aucun commentaire:

Enregistrer un commentaire