Scale-to-zero hosting

Scale-to-zero hosting: apps that sleep and wake in seconds

Makofy’s Nap instance type is scale-to-zero hosting for web apps: after 15 minutes without requests the app is stopped, and the next request wakes it, typically in about 2 to 6 seconds, for a flat $1.50 a month. That compares with about a minute to wake on Render’s free tier and 30 idle minutes before a $5 Heroku Eco dyno sleeps.

Last updated · By the Makofy team (Muncar Ventures LLC)

How Nap sleeping and waking works

  1. Your web app runs normally on 512 MB of memory and 0.5 vCPU, with its HTTPS URL and any custom domains.
  2. Makofy’s gateway notes when the app last handled a request. Open connections such as WebSockets or server-sent events count as activity and keep the app awake.
  3. After 15 minutes with no requests, the app is scaled to zero: no instance runs until someone needs it.
  4. When a request arrives for a sleeping app, the gateway holds it, starts the app, and checks every second whether it is ready.
  5. As soon as the app accepts connections, the held request is passed through and answered. Visitors see a slower first page, not an error.
  6. If the app is still not ready after 45 seconds, browsers get a short “waking up” page that reloads itself, and other clients get a 503 with a Retry-After header.

Wake-up times compared

Prices checked November 2026. Wake time on Makofy depends on how quickly your own app starts listening.
OptionPrice per monthSleeps afterTime to wake
Makofy Nap$1.5015 idle minutesAbout 2–6 s for a typical small app
Render free tier$0A period of inactivityAbout 1 minute
Heroku Eco$530 idle minutesDyno restart
Makofy Starter (always on)$3.50NeverNo wake-up needed

What decides how fast your app wakes

Most of the wake-up time is your app starting. The platform side (scheduling the instance and routing the held request) is quick; what varies is how long your process takes before it listens on its port. A few habits keep that short:

  • Listen first, warm up later. Open the HTTP port as soon as possible and load caches or large files after the server is up.
  • Don’t run migrations on boot. Run them in a separate step so every wake doesn’t repeat them.
  • Connect to the database lazily. Open the pool on first use rather than blocking startup on it.
  • Keep the image small. A slim base image and no dev dependencies at runtime start faster. Go binaries and small Node.js or FastAPI apps are good fits.
  • Listen on `PORT`. Makofy sets it for web services (8080 by default); the app counts as ready once that port accepts connections, or when your health check path answers if you set one.

Good fits for scale to zero

  • Portfolios, demos and prototypes you share with a link.
  • Internal tools and admin panels used a few times a day.
  • APIs behind a hobby app with bursts of traffic and long quiet spells.
  • Webhook receivers whose senders retry or tolerate a few seconds’ delay on the first call.
  • Staging copies of an app that only need to be up while you test.

When not to use it

Nap is only for web services, because an incoming request is what wakes the app. Background workers, Discord and Telegram bots that hold a connection, and cron jobs have nothing to wake them, so they need an always-on type: Starter ($3.50), Basic ($6), Pro ($12) or Dedicated ($35). Also choose always-on for anything where every request must be fast, such as a checkout API or a public site with steady traffic; if the app is busy anyway it never sleeps, so Starter simply costs $2 more for a guarantee. See instance types for every option.

Try it

  1. Start the 7-day free trial (card required, no charge until it ends).
  2. Create a web app from GitHub, or run makofy deploy in your project folder (quickstart).
  3. Choose the Nap instance type in the app’s settings.
  4. Leave the app alone for 15 minutes, then open its URL and time the first response.

FAQ

Frequently asked questions

How long does a sleeping Makofy app take to wake up?

Typically about 2 to 6 seconds for a small web app; the gateway holds the first request while the app starts, so the visitor gets the page rather than an error.

When does a Nap app go to sleep?

After 15 minutes without requests. Open WebSocket or server-sent-event connections keep it awake.

What does scale-to-zero hosting cost on Makofy?

The Nap type is a flat $1.50 per app per month, with 512 MB of memory and 0.5 vCPU while it runs.

Can a background worker or bot scale to zero?

No. Nap is for web services, because a request is what wakes the app; workers, bots and cron jobs need an always-on type from $3.50/month.

Can I switch between Nap and an always-on type?

Yes, at any time from the app’s settings; the price change is prorated.

Related

Deploy your app in a few minutes.

Connect a GitHub repo or run makofy deploy. Flat price per app, 7-day free trial, card required.

Start free trial