Saturday, 16 March 2019

Run a function in the cloud every 30 seconds?

I wrote a function that pings an IP every 30 seconds, and when the ping fails sends an SMS through Twilio. But I’m not sure where to run / host this. AWS Lambda and Google Cloud Functions come to mind but what would the cost be if this function runs 24/7? Alternatively I could wrap this in Express and kick the function off with a GET request and host this with AWS or Heroku... I guess what I’m asking is - what’s the cheapest option?

Submitted March 17, 2019 at 02:45AM by Fattyhawk

No comments:

Post a Comment