A Faster Free Heroku (Kinda) | Quick Hack

If you've been building stuff on web for a while now, you've probably heard of HEROKU and NETLIFY

Just-In-Case you haven't heard about it

Quick Intro on Heroku and Netlify

  1. Heroku: A free PaaS (Platform as a Service), basically a cloud service that let's you host and share your web apps.
  2. Netlify: A free hosting service for static sites, basically react, vanilla javascript, etc projects.

NETLIFY is Usually Used on Frontend Projects.
HEROKU is Usually Used on Backend Projects.
Netlify + Heroku

The Problem with Heroku

Pro's:

  1. Heroku is Easy to Use.
  2. Heroku is Free.

Con's:

  1. Heroku has Premium

Heroku's free tier uses dynos (Stuff That Hosts Your Code) that sleeps after 30 mins of inactivity

Once a dyno falls asleep, It takes time for it to awaken.
So the initial response is slow and the damage is already done.

Work Around

Re-Read This Line

Heroku's free tier uses dynos (Stuff That Hosts Your Code) that sleeps after 30 mins of inactivity

If You Haven't Got It Yet, Re-Read It Again

Heroku's free tier uses dynos (Stuff That Hosts Your Code) that sleeps after 30 mins of inactivity

💡Light Bulb💡

30 mins of inactivity

All We Need To Do is Do Something Every 30mins.
Nah 15mins to be on the safer side

For node.js dev(s) Out There

// Run Every 15 mins => 900 secs => 900000 ms
setInterval(()=>console.log("😂😜🤣🤓"),900000)

GGWP,
@LucidMach
✌

29