In this guide
A small API can fit on almost any host. The difference appears when a second process must keep reading a queue, a database needs restoring, or a local upload must survive a redeploy. Compare the entire application as it runs on a normal Tuesday, including the services that stay on when traffic drops.
| Platform | Execution model | What to price |
|---|---|---|
| Render ↗ | Web services, workers and cron jobs | Workspace, service instances, data and transfer |
| Railway ↗ | Services grouped in a project | Plan minimum, CPU, RAM, volumes and egress |
| Fly.io ↗ | Regional virtual machines | Machine usage, root filesystems, volumes and transfer |
| DigitalOcean App Platform ↗ | Managed app components | Component sizes and database |
| Heroku ↗ | Web and worker dynos | Dyno types, quantities and add-ons |
| Google Cloud Run ↗ | Services, jobs and worker pools | Execution, idle minimums, storage and transfer |
What to choose
-
Render
Web service, worker and managed Postgres
Render separates public web services, continuous workers and scheduled cron jobs, and offers managed Postgres.
Keep in mind Free web services sleep after inactivity. A persistent disk has single-instance and deployment constraints.
-
Railway
A project with several connected services
Railway groups services, private connections and volumes in one project and meters the resources they actually use.
Keep in mind Measure memory, compute and egress. A volume and sleep behavior can change the cost and operation of each service.
-
Fly.io
Control over where each machine runs
Fly Machines run container images in selected regions, with explicit options for running, stopping and scaling instances.
Keep in mind Fly Volumes are local to their machines. Plan replication and price storage and traffic alongside compute.
-
DigitalOcean
Managed components in DigitalOcean
App Platform can deploy a web service and a worker as distinct components and connect them to a database.
Keep in mind Price every App Platform component and the database separately. A Droplet uses a different operational model.
-
Heroku
An existing app with dynos and add-ons
Heroku makes web and worker process types explicit and offers a catalog of separately priced add-ons.
Keep in mind Eco dynos can sleep. Treat the dyno filesystem as temporary and price Heroku Postgres or another data service separately.
-
Google Cloud Run
Containers tied to Google Cloud
Cloud Run offers HTTP services for requests, jobs for work that completes, and worker pools for continuous non-HTTP processes.
Keep in mind Price the matching execution model. Minimum instances, database, registry, logs and network usage can change the total.
Separate the API, queue worker and cron job
A webhook has a request to answer. A queue consumer has work to finish even when nobody calls the API. A nightly export has a start and an end. Those three processes have different failure modes. For example, a customer upload can return a job ID immediately while a worker handles the conversion. Put the desired concurrency and retry policy on the worker, and choose hosting that can run that worker for as long as the queue needs.
Decide what survives a restart
A Docker image packages the runtime. The deployed container can still lose anything written to its temporary filesystem. Keep user uploads in object storage or a volume with a recovery plan. For Postgres, check backup retention, restoration options, connection limits and whether the database is actually managed. A preconfigured database container can save setup time, while recovery and upgrades still depend on the terms of that database service.
Price the whole deployment for the same month
For an illustrative small SaaS, count one API, one continuous worker and one Postgres instance. Add persistent storage, backups, outbound traffic and any required workspace fees. On Render, compare instance sizes for each component. On Railway, compare actual resource charges with the plan minimum. On Fly.io, include storage that exists even when compute stops. A traffic spike may add little to a continuously provisioned instance until it needs scaling, while a usage-metered service can produce a different bill.
Vercel vs Render for a frontend with an API
An Astro or Next.js frontend can use Vercel for Git previews and framework routes, while Render or Railway runs a separate API or continuous worker. That split helps when a frontend rollout should be independent of a worker deployment. It also gives you two sets of logs, environment variables and billing. Cloudflare Containers also runs container images behind a Worker and has its own compute pricing. If the app is a single deployable web server and frontend previews matter less, one managed web service may be simpler to maintain.
Common questions
Is Render free hosting suitable for a production API?
Render free web services spin down after 15 minutes without incoming traffic. Free Postgres also expires after 30 days. Budget for paid compute and durable data if users depend on immediate responses and continued access.
Is Railway cheaper than Render?
Compare measured CPU, RAM, storage and egress against the equivalent Render service sizes and database. A worker that runs continuously can reverse the result you get from comparing only a sleepy demo API.
Can Fly.io run a database close to every API replica?
Machines can run in different regions. Local Fly Volumes do not automatically replicate across them. Plan database topology, writes and failover before changing machine placement.
Sources and method
Official deployment, runtime, storage and pricing documentation reviewed on 22 November 2026. No hands-on deployment test or cost benchmark.
Sources checked on .
- Render pricingrender.com
- Render background workersrender.com
- Render free services and data limitsrender.com
Show 13 more sourcesShow fewer
- Render persistent disksrender.com
- Railway plans and usagedocs.railway.com
- Railway volumesdocs.railway.com
- Railway Serverlessdocs.railway.com
- Fly Machinesfly.io
- Fly Volumesdocs.fly.io
- Fly.io resource pricingfly.io
- DigitalOcean App Platform pricingdocs.digitalocean.com
- Heroku dyno sizesdevcenter.heroku.com
- Heroku pricingheroku.com
- Cloud Run container runtime contractdocs.cloud.google.com
- Cloud Run pricingcloud.google.com
- Cloudflare Containers pricingdevelopers.cloudflare.com
