title: Is it a good idea to run NodeJS async functions in CRON Jobs?
body: <p><strong>Is it a good idea to run node async functions in cron jobs?</strong></p>
  
  <p>Yes, NodeJS is single threaded. What will happen when cron invokes function() multiple times? </p>
  
  <p>Say the situations is:
  - CRON Job runs 5 mins calling function()
  - The function() may take more than 5 minutes to run
  - The function() is async</p>
  
  <p>I need to a Backend application in NodeJS that does:
  - Read data from MongoDB (once)
  - Based on the data, there might be many Third Party API calls, say GOOGLE API to calculate driving distance between two points
  - Save the total distance data back to the MongoDB 
  - Update Redis cache</p>
  
  <p><strong>How would you do it?</strong></p>
  
  <p>Your comments are much appreciated!!</p>
  
  <p>Thank you.</p>