Articles

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

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.

Updated

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, Azure Container Apps scaling, Fly.io autostop/autostart, Koyeb Scale-to-Zero, Modal scaling, Railway Serverless, DigitalOcean App Platform scaling and Scale to Zero, and AWS App Runner’s autoscaling and availability change. Render, Heroku and Vercel come from their docs as checked for our pages on Render’s free tier and Heroku’s plans (December 2) and Vercel’s runtimes (December 3). Gregale’s come from its plans page.

At a glance

PlatformScales to zero?When it scales downThe first request after
GregaleYes, every app on every planPauses about a second after the last request when idle; parks after 1 to 10 minutes, by planResumes from a pause in about a millisecond; restores in 50 to 83 ms
Google Cloud RunYes, by defaultWhen no requests are in flight; an idle instance can stay up to 15 minutesA cold start; its docs give no figure
Azure Container AppsYes, by defaultWhen its scale rule sees no work; event rules wait a 300-second cool-downA cold start; its docs give no figure
Fly.ioYes, with the settings fly launch writesAfter several idle minutes; the proxy checks every few minutesAbout 2 seconds or more from stopped; a few hundred ms from suspended
KoyebYes, on Standard instances and the Free InstanceAfter 5 idle minutes; 1 hour on the Free Instance1 to 5 seconds from Deep Sleep; about 200 ms from Light Sleep (preview)
ModalYes, by defaultAfter its scaledown_window of idle secondsA cold start; its docs give no figure
VercelFunctions yes; containers scale downContainers after 5 idle minutes in production, 30 seconds in previewsA cold start; see Does Vercel have cold starts?
RailwayYes, when you turn on ServerlessAfter 5 minutes without outbound traffic, checked on an intervalA short delay, by Railway’s docs
RenderFree web services onlyAfter 15 minutes without inbound trafficAbout a minute
HerokuEco dynos onlyAfter 30 minutes without web trafficA short delay; Heroku gives no number
DigitalOcean App PlatformIn private preview, for web servicesAfter an inactivity period you set, from 10 minutes to 24 hoursIts docs give no figure
AWS App RunnerNoNever below the minimum number of provisioned instancesNo 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?

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?

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 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. An app that has to stay warm can keep minimum instances, billed like any running instance; see scaling policy.

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.

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.

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.