# Which hosting platforms scale to zero? Cloud Run, Azure, Fly.io, Railway, Render, App Runner and more

Gregale · Updated 2026-12-03

Cloud Run, Azure Container Apps, Fly.io, Koyeb and Modal scale to zero; Render and Heroku only on free tiers; App Runner never. When each stops, and wakes.

**Most of them do, on very different terms. Google Cloud Run, Azure Container
Apps, Fly.io, Koyeb and Modal scale to zero by default or with one setting,
Railway does once you turn on Serverless, and Vercel’s functions do. Render
and Heroku put only their Free and Eco tiers to sleep, DigitalOcean App
Platform has scale to zero in a private preview, and AWS App Runner doesn’t
scale to zero at all and is closed to new customers.** What differs is how
long each platform waits before it stops an idle app, what it still bills
while the app is at zero, and how long the first request then waits.

_Gregale publishes this page. Each platform’s behavior comes from its own
docs, checked on December 3, 2026:
[Cloud Run autoscaling](https://cloud.google.com/run/docs/about-instance-autoscaling),
[Azure Container Apps scaling](https://learn.microsoft.com/en-us/azure/container-apps/scale-app),
[Fly.io autostop/autostart](https://fly.io/docs/launch/autostop-autostart/),
[Koyeb Scale-to-Zero](https://www.koyeb.com/docs/run-and-scale/scale-to-zero),
[Modal scaling](https://modal.com/docs/guide/scale),
[Railway Serverless](https://docs.railway.com/deployments/serverless),
[DigitalOcean App Platform scaling](https://docs.digitalocean.com/products/app-platform/how-to/scale-app/)
and [Scale to Zero](https://docs.digitalocean.com/products/app-platform/how-to/scale-to-zero/),
and AWS App Runner’s
[autoscaling](https://docs.aws.amazon.com/apprunner/latest/dg/manage-autoscaling.html)
and [availability change](https://docs.aws.amazon.com/apprunner/latest/dg/apprunner-availability-change.html).
Render, Heroku and Vercel come from their docs as checked for our pages on
[Render’s free tier](https://gregale.dev/articles/does-render-free-tier-sleep) and
[Heroku’s plans](https://gregale.dev/articles/is-heroku-free) (December 2) and
[Vercel’s runtimes](https://gregale.dev/articles/can-vercel-run-python-go-docker) (December 3).
Gregale’s come from its [plans page](https://gregale.dev/docs/plans.md)._

## At a glance

| Platform                      | Scales to zero?                                  | When it scales down                                                                          | The first request after                                                                   |
| ----------------------------- | ------------------------------------------------ | -------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| **Gregale**                   | Yes, every app on every plan                     | Pauses about a second after the last request when idle; parks after 1 to 10 minutes, by plan | Resumes from a pause in about a millisecond; restores in 50 to 83 ms                      |
| **Google Cloud Run**          | Yes, by default                                  | When no requests are in flight; an idle instance can stay up to 15 minutes                   | A cold start; its docs give no figure                                                     |
| **Azure Container Apps**      | Yes, by default                                  | When its scale rule sees no work; event rules wait a 300-second cool-down                    | A cold start; its docs give no figure                                                     |
| **Fly.io**                    | Yes, with the settings `fly launch` writes       | After several idle minutes; the proxy checks every few minutes                               | About 2 seconds or more from stopped; a few hundred ms from suspended                     |
| **Koyeb**                     | Yes, on Standard instances and the Free Instance | After 5 idle minutes; 1 hour on the Free Instance                                            | 1 to 5 seconds from Deep Sleep; about 200 ms from Light Sleep (preview)                   |
| **Modal**                     | Yes, by default                                  | After its `scaledown_window` of idle seconds                                                 | A cold start; its docs give no figure                                                     |
| **Vercel**                    | Functions yes; containers scale down             | Containers after 5 idle minutes in production, 30 seconds in previews                        | A cold start; see [Does Vercel have cold starts?](https://gregale.dev/articles/does-vercel-have-cold-starts) |
| **Railway**                   | Yes, when you turn on Serverless                 | After 5 minutes without outbound traffic, checked on an interval                             | A short delay, by Railway’s docs                                                          |
| **Render**                    | Free web services only                           | After 15 minutes without inbound traffic                                                     | About a minute                                                                            |
| **Heroku**                    | Eco dynos only                                   | After 30 minutes without web traffic                                                         | A short delay; Heroku gives no number                                                     |
| **DigitalOcean App Platform** | In private preview, for web services             | After an inactivity period you set, from 10 minutes to 24 hours                              | Its docs give no figure                                                                   |
| **AWS App Runner**            | No                                               | Never below the minimum number of provisioned instances                                      | No cold start, because an instance is always provisioned                                  |

## Platform by platform

### Does Google Cloud Run scale to zero?

Yes. Minimum instances default to 0, and Cloud Run scales a service to zero
when it isn’t handling requests. To cut cold starts it may keep an idle
instance for up to 15 minutes, but under request-based billing, the default,
you pay only while requests are in flight, plus instance startup and
shutdown. A service that works outside
requests, such as a background thread, should set minimum instances to at
least 1, because only a request can scale it up from zero.

### Does Azure Container Apps scale to zero?

Yes. The minimum number of replicas per revision defaults to 0, and the
default HTTP scale rule scales an app with ingress down to zero. Event-driven
rules wait a 300-second cool-down after the last event. An app scaled to zero
has no usage charges; replicas kept in memory but not processing may be
billed at a lower idle rate. An app without ingress and without a scale rule
scales to zero and can’t start again, so give it a rule or a minimum of 1.

### Does Fly.io scale to zero?

Yes. With `auto_stop_machines = "stop"` and `min_machines_running = 0`, which
`fly launch` writes by default, Fly Proxy stops all of an app’s Machines when
there is no traffic and starts one when a request arrives. A stopped Machine
takes about 2 seconds or more to start; with `"suspend"` it resumes in a few
hundred milliseconds. A stopped or suspended Machine isn’t billed for CPU or
RAM, only for its root file system at $0.15 per GB for 30 days, and volumes
are billed in full.

### Does Koyeb scale to zero?

Yes, on Standard CPU and GPU instances with the minimum set to zero. A
service sleeps after 5 idle minutes by default, and Pro and higher plans can
change that. The Free Instance always sleeps after an hour without traffic.
Waking from Deep Sleep, the default, takes 1 to 5 seconds; Light Sleep, in
public preview and free during it, uses snapshots to start in about 200 ms.

### Does Modal scale to zero?

Yes. Modal Functions scale to zero by default when there are no inputs.
`min_containers` keeps warm containers, and `scaledown_window` sets how long
an idle container may wait before it shuts down.

### Does Vercel scale to zero?

Vercel Functions start on demand and don’t run without traffic. Containers on
the Container runtime, in beta, keep running until they’ve had no traffic for
5 minutes in production or 30 seconds in previews, and their provisioned
memory is billed while they run.

### Does Railway scale to zero?

Yes, once you enable Serverless (formerly App Sleeping) on a service. Railway
puts it to sleep after 5 minutes without outbound traffic, sampled on an
interval, so in practice it takes a little longer. Database connections,
telemetry and calls to other services on the private network count as
traffic and keep it awake. The first request wakes it, after a short delay.

### Does Render scale to zero?

Only on the Free plan: a Free web service spins down after 15 minutes without
inbound traffic and takes about a minute to start again. Paid instances don’t
spin down. See [Does Render sleep?](https://gregale.dev/articles/does-render-free-tier-sleep)

### Does Heroku scale to zero?

Only Eco dynos sleep: an Eco web dyno sleeps after 30 minutes without web
traffic, and the next request wakes it after a short delay. A Basic dyno, at
$7 a month, runs all the time. See
[Is Heroku free?](https://gregale.dev/articles/is-heroku-free)

### Does DigitalOcean App Platform scale to zero?

Only in a private preview: you request access from DigitalOcean. Scale to
Zero puts a web service to sleep after an inactivity period you choose, from
10 minutes to 24 hours, counting only traffic through the app’s hostname. A
sleeping component is billed at 10% of its standard price. Outside the
preview, autoscaling keeps at least one container.

### Does AWS App Runner scale to zero?

No. A service always keeps at least its minimum number of provisioned
instances; you pay for the memory of every provisioned instance and the CPU
of the active ones. App Runner is also closed to new customers: AWS points
new users to Amazon ECS Express Mode, and existing customers keep using it
without new features.

## Where Gregale fits

Gregale scales every app to zero, on every plan, without a setting to turn
on. About a second after its last request, an idle app’s microVM pauses in
memory, and paused seconds aren’t billed; the next request resumes it in
about a millisecond. (An app busy with timers or background work keeps
running while it works; [how scaling to zero works](https://gregale.dev/docs/scale-to-zero.md) has
the details.) An app left idle parks: after 1 minute on Free and Hobby, 5
minutes on Pro and 10 minutes on Scale, it’s saved to a snapshot and holds no
memory. The next request restores it from the snapshot in 50 to 83 ms in
[our measurements](https://gregale.dev/articles/cold-start-times-by-language). An app that has
to stay warm can keep minimum instances, billed like any running instance;
see [scaling policy](https://gregale.dev/docs/scaling-policy.md).

Most of the platforms above wait minutes before they stop billing, so an app
that gets a request every minute or two never sleeps there. For what that
does to a monthly bill on Cloud Run, Fly.io, Railway, Koyeb, Render and
Gregale, see [Scale-to-zero pricing in 2026](https://gregale.dev/articles/scale-to-zero-pricing-compared).

## What we verified

Each platform’s docs on the dates above. We didn’t deploy to these platforms
for this page, so wake times are the ones their docs state; where a platform
publishes none, the table says so. Gregale’s idle timeouts come from its
plans page on December 3, 2026, and its restore times from
[cold start times by language](https://gregale.dev/articles/cold-start-times-by-language).

## Questions

### Does Google Cloud Run scale to zero?

Yes. Minimum instances default to 0, so a service with no requests scales to zero. Cloud Run may keep an idle instance for up to 15 minutes, but with request-based billing, the default, you pay only while requests are in flight, plus startup and shutdown.

### Does AWS App Runner scale to zero?

No. A service always keeps at least its minimum number of provisioned instances and pays for their memory. App Runner is also closed to new customers; AWS points them to Amazon ECS Express Mode.

### Does Railway scale to zero?

Yes, once you enable Serverless on a service. Railway puts it to sleep after 5 minutes without outbound traffic, checked on an interval, and the next request wakes it after a short delay.

### Does Render scale to zero?

Only Free web services: they spin down after 15 minutes without inbound traffic and take about a minute to start again. Paid instances never spin down.

### Does DigitalOcean App Platform scale to zero?

In a private preview you request from DigitalOcean. Web services sleep after an inactivity period from 10 minutes to 24 hours and are billed at 10% of the standard price while asleep.

Canonical URL: https://gregale.dev/articles/which-hosting-platforms-scale-to-zero

