1

Can i do api call every hour a free service so that it will not fall asleep? Like www.repl.it, netlify and Heroku?

What is the duration when they fall asleep? 2 hours?

Comments
  • 7
    https://cron-job.org

    It can ping your server at regular intervals.
  • 2
    If you need a stay alive, use a cron but if it's long term, you'll probably hit your monthly hours anyway and have a few days at the end of the month of down time and be forced up to a paid plan.

    If it's a service and not a website you could do a get in advance if it's predictable to make it wake up though.
  • 1
    Use a cron job to ping the server, like others have said

    As for how often, I’m fairly certain Heroku goes to sleep after 30 minutes, but I’m not sure about the others
  • 1
    @theabbie thanks I didn't know about cron-job.org has that service nice. Will try it now. My apps is for POC demo purposes only don't worry for long term.
  • 0
    Remember that most of those services have a maximum *total* time a month that your service can be up to prevent you doing just that.
  • 0
    Use two accounts on the same service (or on two diferent services if they check IP address) and alternate between them
Add Comment