Skip to main content

Cloud and deployment · Beginner · 15 min

Compare Fly.io, Render and Railway for hosting a small app

By Padding · Updated 18 Nov 2026
Fly.io, Render and Railway (web docs) · November 2026

You will fill in a comparison table of Fly.io, Render and Railway for your own web app and database, covering builds, databases, regions, idle behaviour, disks, networking, previews, logs, pricing and how to leave, and pick one with written reasons.

On this page

Fly.io, Render and Railway all take a repository or a container image and run it for you, with HTTPS, a database and logs, and none of them asks you to manage a server. From the outside they look alike. They differ in where they can run your app, what happens when nobody is using it, how much of the database is really looked after for you, and how much work it is to move away later.

This tutorial is a decision guide for a small team hosting one web app and one database. You build a comparison table with one row per question, fill in a row at each step, and finish with a written choice. Each step gives the facts for all three platforms, with what they mean for a small app, and then asks you to write down what matters for yours.

Every fact here comes from the platforms' own documentation, checked on 26 November 2026. These products change often, especially free plans and prices. Before you commit, open the linked docs and re-check any row that decides your choice.

The running example is Shiftboard, a Node.js API with a PostgreSQL database used by shop staff in Lagos and Nairobi, mostly on mid-range Android phones over mobile data. Use your own app in place of it.

Step 1 · Write down what your app needs

Start with your app, not the platforms. Create a table with five columns: the question, what your app needs, and one column for each platform. Copy this into a spreadsheet or a Markdown file:

Markdown
| Question              | My app needs | Fly.io | Render | Railway |
| --------------------- | ------------ | ------ | ------ | ------- |
| Build                 |              |        |        |         |
| Database              |              |        |        |         |
| Region and latency    |              |        |        |         |
| Idle behaviour        |              |        |        |         |
| Disks                 |              |        |        |         |
| Private networking    |              |        |        |         |
| Previews              |              |        |        |         |
| Logs                  |              |        |        |         |
| Pricing model         |              |        |        |         |
| Leaving               |              |        |        |         |

Fill in the "My app needs" column now, before you read about any platform, so the platforms do not set your requirements for you. Answer in one short line each:

  • Build: do you already have a Dockerfile, or do you want the platform to work out how to build your code?
  • Database: which engine, roughly how big, and how bad is losing a day of data?
  • Region: which cities are your users in?
  • Idle behaviour: can the first visitor after a quiet hour wait a few seconds, or a minute?
  • Disks: does the app write files (uploads, SQLite) that must survive a redeploy?
  • Private networking: will you have a second service (a worker, a cache) that should not be public?
  • Previews: do you want a live copy of the app for each pull request?
  • Logs: how many days back do you need to search when something breaks?
  • Pricing: your monthly limit, and the card or account you will pay with.
  • Leaving: how much would it hurt to move in a year?

For Shiftboard the needs line for region reads "Lagos and Nairobi, latency matters more than price", and for idle behaviour "a few seconds is fine, a minute is not".

Check it worked

Your table has ten rows and the "My app needs" column is filled on every one. No platform column is filled yet.

Step 2 · Compare how each platform builds your code

All three accept a Dockerfile. They differ in what happens when you do not have one.

  • Fly.io builds from a Dockerfile if your project has one. Without one it can use Cloud Native Buildpacks (Paketo, Heroku or Fly's Deno buildpack), or deploy an image you already pushed to a registry. Settings live in fly.toml in your repository.
  • Render has native runtimes for Node.js and Bun, Python, Ruby, Go, Rust and Elixir: you link the repository, pick the runtime and give build and start commands. For anything else (PHP, .NET, Java) it builds your Dockerfile or pulls a prebuilt image from a registry.
  • Railway builds with Railpack by default, which inspects your code and builds an image with no configuration. Railpack replaced Nixpacks, the builder Railway used before, so older guides that mention Nixpacks settings may be out of date. If your repository contains a Dockerfile, Railway uses that instead.

For a beginner the practical difference is this: a Dockerfile you write works on all three and on any other host, while a zero-config build is quicker to start but ties your build to that platform's detection rules.

Check it worked

Your "Build" row has an entry under each platform, for example "Dockerfile or buildpacks", "native Node runtime" and "Railpack, or my Dockerfile", and your needs column says which of these you will actually use.

Step 3 · Compare the database you would get

"Has Postgres" can mean very different things. Ask who takes the backups, who handles failover, and who does major version upgrades.

  • Fly.io offers Managed Postgres: a cluster on your organisation's private network with automatic backups and recovery, high availability with automatic failover, and encryption at rest and in transit. It is not available in every region (see the next step). You can also run any database yourself on a Fly volume, but then backups, failover and upgrades are your job.
  • Render runs Render Postgres as a managed service with recovery from backups, read replicas and high availability on paid plans, plus Render Key Value, which runs Valkey 8 (a Redis-compatible store) for new instances. The free Postgres database expires 30 days after you create it, holds 1 GB and has no backups, so treat it as a trial only.
  • Railway deploys PostgreSQL, MySQL, Redis and MongoDB from templates, each running as a service with a volume. Railway handles provisioning, storage, networking and image security patches. Backups, point-in-time recovery, high availability and connection pooling are features you switch on yourself, and Railway does not publish an uptime SLA.

Whichever you pick, plan to take your own regular pg_dump and keep a copy outside the platform. A database you can export easily is also what makes the "Leaving" row less painful.

Check it worked

Your "Database" row names, for each platform, the database product you would use and one line on who owns backups, for example "Railway Postgres template, I must switch on backups".

Step 4 · Compare regions for your users

Distance to your users decides how fast every request feels. As of 26 November 2026:

  • Fly.io lists 17 regions, including Johannesburg (jnb), the only region of the three on the African continent. Johannesburg has no Managed Postgres, so an app there would either use a managed database in another region, such as London (lhr), Amsterdam (ams) or Frankfurt (fra), or run its own Postgres on a volume in Johannesburg.
  • Render has five regions: Oregon, Ohio and Virginia in the US, Frankfurt and Singapore. Frankfurt is the closest to most African users. You cannot move an existing service or database to another region; you create a new one and migrate.
  • Railway has four: US West (California), US East (Virginia), EU West (Amsterdam) and Southeast Asia (Singapore). Amsterdam is the closest to most African users. You can change a service's region in its settings without downtime, except for services with a volume, which must be migrated. On the Free plan you cannot pick the region; Railway picks it for services without a volume.

Johannesburg is close for users in southern Africa, but it is not automatically faster for Lagos or Nairobi: undersea cable routes from West and East Africa often reach Europe more directly than South Africa. Measure from where your users are before you decide. The tutorial choose a cloud region for users in Africa has a small script that times connections from your own network.

Keep the app and its database in the same region. A web request that makes ten database queries across continents is slower than one that travels across a continent once.

Check it worked

Your "Region and latency" row names the region you would use on each platform, with a measured or estimated round-trip time from your users' city, for example "fra, about 110 ms from Lagos".

Step 5 · Compare idle behaviour, disks and private networking

These three rows decide how the app behaves day to day.

Idle behaviour. Scaling to zero saves money on quiet apps, at the cost of a slow first request.

  • Fly.io: with auto_stop_machines set in fly.toml, Fly's proxy stops or suspends idle Machines and starts one again when a request arrives. The docs give about 2 seconds or more for a cold start after a stop, and a few hundred milliseconds to resume after a suspend. min_machines_running keeps some running in your main region.
  • Render: paid instances run all the time. Free web services spin down after 15 minutes without inbound traffic and take about a minute to spin up again, and a workspace gets 750 free instance hours a month.
  • Railway: Serverless (formerly App Sleeping) sleeps a service after about 5 to 10 minutes with no outbound traffic. Database connections, telemetry and any other outbound traffic keep it awake, and the first request after a sleep can be slow or return a 502 error.

Disks. A persistent disk ties the service to one instance on all three.

  • Fly.io: a volume belongs to one Machine on one physical host, and Fly does not copy it anywhere. Daily snapshots are kept for 5 days by default, but the docs say not to rely on them as your only backup.
  • Render: disks are for paid services only. A service with a disk cannot scale to more than one instance and loses zero-downtime deploys. Snapshots are taken daily and kept for seven days.
  • Railway: one volume per service, no replicas on a service with a volume, and a short downtime on each redeploy.

If your app stores uploads on disk, consider putting them in object storage instead and keeping the app itself stateless. That leaves you free to scale and to move.

Private networking. All three let services talk without going over the public internet, with different scopes.

  • Fly.io: every app in your organisation is on one private IPv6 network across all regions, reachable as <app>.internal, and you can join it from your laptop with WireGuard.
  • Render: services share a private network only within one region and one workspace. Free web services can send private traffic but cannot receive it.
  • Railway: services in the same project environment reach each other at <service>.railway.internal, even across regions.

Check it worked

Your "Idle behaviour", "Disks" and "Private networking" rows are filled for all three platforms, and each needs cell has a yes or no next to it, for example "Render free: a one-minute spin-up, no".

Step 6 · Compare previews and logs

Previews let you see a pull request running before you merge it.

  • Fly.io has no built-in preview feature. You add a GitHub Actions workflow using the superfly/fly-pr-review-apps action, which creates an app for each pull request using a Fly API token stored as a repository secret.
  • Render has two levels. Service previews create a copy of one service for each pull request and delete it when the pull request is merged or closed. Preview environments copy several services and their databases together, but need a Pro workspace and a Blueprint (render.yaml).
  • Railway creates a PR environment for each pull request once you switch it on in project settings, and deletes it when the pull request is merged or closed.

Previews that include a database start empty on Render, and every preview costs compute while it runs. Decide whether you need them now or later.

Logs matter on the day something breaks.

  • Fly.io: fly logs tails live output, and the Grafana log search keeps 7 days. To keep logs longer you ship them elsewhere, for example with the Fly Log Shipper app.
  • Render: the log explorer keeps 7 days on Hobby, 14 on Pro and 30 on Scale and Enterprise, and you can stream logs to a third-party provider.
  • Railway: 3 days on Free, 7 on Trial and Hobby, 30 on Pro and up to 90 on Enterprise. There is no log drain setting; to keep logs longer you run a forwarder such as Vector or send them from your app.

Check it worked

Your "Previews" and "Logs" rows are filled, and the logs cells give a number of days for the plan you would actually buy, for example "Railway Hobby: 7 days".

Step 7 · Compare pricing models

Compare how each platform charges before you compare numbers: the model decides which apps are cheap and which are not. These figures were checked on 26 November 2026 and are in US dollars.

  • Fly.io is pay as you go with no monthly platform fee. Running Machines are billed by the second, stopped ones pay only for their root filesystem, and volumes cost 0.15 USD per GB per month even when detached. Machine prices vary by region. Outbound data transfer costs 0.12 USD per GB from the Africa and India region group, against 0.02 USD per GB from North America and Europe, so a busy app served from Johannesburg pays more for the same traffic. Personal organisations can use a Free plan with 5 USD of usage a month after adding a card.
  • Render charges a workspace plan (Hobby 0, Pro 25, Scale 499 USD per month) plus a fixed price per instance size, prorated by the second, with disks, extra bandwidth and extra build minutes billed on top.
  • Railway charges a plan (Free 0 USD a month with 1 USD of usage included; Hobby 5 and Pro 20 USD a month, each including the same amount of usage), then bills CPU, memory, volume storage and egress by the minute beyond that allowance.

Fixed instance prices (Render) are easier to predict. Usage billing (Fly.io, Railway) is cheaper for apps that sleep, and can surprise you when traffic or memory use grows. Price your own app on each platform's pricing page or calculator with your real instance size, database and expected traffic, and set a spending alert where the platform offers one.

All three list their prices in US dollars. If you pay with a naira, shilling or cedi card, check that your bank allows international dollar payments and how much it adds for exchange, and consider a dedicated card with a set limit so a usage spike cannot drain your main account.

Check it worked

Your "Pricing model" row gives each platform's model in a few words and your own estimated monthly total for your app, with the date you checked, for example "Render: Pro 25 + one instance + Postgres, priced 26 Nov 2026".

Step 8 · Rate how hard it is to leave

The cheapest time to plan your exit is before you arrive. Check three things for each platform: can you take your build with you, your configuration, and your data?

  • Fly.io: your app is a Docker image, which runs on any container host. fly.toml is Fly-specific, but it is short. Managed Postgres data leaves with pg_dump, and a database you run yourself on a volume leaves the same way.
  • Render: with a Dockerfile, the image moves anywhere. With a native runtime there is no image, so you write a Dockerfile or build scripts when you leave. A Blueprint (render.yaml) describes your services, databases and environment groups in one file, which helps you rebuild the setup somewhere else, though the format is Render's own.
  • Railway: a Railpack build has no Dockerfile in your repository, so moving means writing one, unless you used your own Dockerfile from the start. railway.json or railway.toml holds only build and deploy settings, not your databases or the whole project. Database templates export with the usual tools, such as pg_dump for Postgres.

On every platform, keep secrets in environment variables rather than in code, and keep a list of every variable your app reads. That list is the hardest thing to rebuild in a hurry.

Score each platform from 1 (easy to leave) to 3 (hard to leave) for your own setup, not in general.

Check it worked

Your "Leaving" row has a score from 1 to 3 for each platform with one line of reason, for example "Railway: 2, Railpack build, I would need a Dockerfile".

Step 9 · Pick one and write down why

Go through the table row by row. In each row, mark the platform that best meets your needs column. A row where all three meet your need tells you nothing, so ignore it. Then look for deal breakers: a single row where a platform fails a hard need (no region near your users, a database you cannot back up, a cold start your users will not accept) rules it out whatever the other rows say.

Write three lines under the table:

Markdown
Choice: <platform>, <region>, <plan>
Because: <the two or three rows that decided it>
Revisit when: <the change that would make us move, e.g. traffic triples or we need a second region>

For Shiftboard, the deal-breaker check removes one option first. Fly.io in Johannesburg fails the same-region rule: Managed Postgres is not offered there, so the app would either query a London database across the continent or run its own Postgres on a single volume with no replication, and backups would be the team's job. So the Fly.io candidate becomes London (lhr), with app and Managed Postgres side by side. That leaves three European options: Fly.io London, Render Frankfurt and Railway Amsterdam. In this example the team's measurements from Lagos and Nairobi come back close together for all three, so latency stops deciding, and the database and pricing rows decide instead:

Markdown
Choice: Render, Frankfurt, Hobby workspace with a paid web instance and paid Postgres
Because: Region and latency is close for all three European options; Database is Render Postgres with backups looked after by Render; Pricing model is a fixed instance price the team can budget in US dollars
Revisit when: users in southern Africa become a large share, or we need a second region or preview environments (Pro workspace)

Your own table may point elsewhere. If Railway Amsterdam measured clearly faster from Lagos, for example, the region row would decide and the team would accept switching on backups itself.

Share the table with your team and agree on the choice before anyone deploys. The table is also the record you come back to when "Revisit when" happens.

Check it worked

Every row of your table is filled for all three platforms, and the three lines under it name one platform, the rows that decided it, and the event that would make you reconsider.

Next steps

Need this done for you?

Padding does this work for growing companies, from the first diagnosis to a system that keeps working.

Platform Engineering

Get new tutorials

New tutorials, about twice a month.