• Docs
  • Talk to an expert
Blog
Blog
BlogProductCase studiesNewsInsights
Blog

Heroku vs Fly.io in 2026

HerokuPaaSmigrationautoscalingpreview environments
02 December 2026
Share
This post is also available in German and in French.

Note: pricing and features may have changed since publication. Check each provider’s documentation for current details.

Heroku and Fly.io both let you deploy an app without managing servers, but they ask different things of you. Heroku gives you dynos, a marketplace of add-ons, and Pipelines that move code from review to production. Fly.io gives you lightweight virtual machines you can place in regions around the world, with more of the wiring left to you. For a team weighing a move off Heroku, the question is how much of that wiring you want to own.

Everything below comes from each platform's public documentation, pricing pages, and announcements, checked on November 4, 2026. Both change often, so follow the links and confirm before you commit.

TL;DR

  • Heroku bills each dyno at a fixed monthly price, prorated to the second. Fly.io has no plan fee and bills running Machines by the second, at prices that vary by region.
  • Heroku's built-in autoscaling covers Performance, Private, and Shield dynos and scales on response time. Fly.io starts and stops a pool of Machines based on traffic, and offers a metrics autoscaler you deploy as your own app.
  • Heroku review apps run through Pipelines and seed data with a script you write. Fly.io builds review apps with a GitHub Actions workflow, and has no Pipelines equivalent.
  • Heroku offers managed Postgres, Key-Value Store, and a large add-on marketplace. Fly.io offers Managed Postgres and partner services such as Upstash for Redis and Tigris object storage.
  • In February 2026, Heroku announced a move to a sustaining engineering model focused on stability, security, reliability, and support.
  • If you run PHP, Python, or Node.js apps and want managed services, previews with a copy of production data, and a choice of cloud, Upsun Cloud is a third option to look at.

Heroku and Fly.io at a glance

Heroku packages infrastructure into dynos and add-ons. Fly.io gives you Machines and regions, and you assemble the rest.

 HerokuFly.io
Pricing modelFixed monthly price per dyno, prorated to the secondNo plan fee, Machines billed per second while running
Entry pricingEco $5/month (shared hours, sleeps), Basic $7/month$1 free trial, invoices under $5 waived
Production computeStandard-1X $25/month, Standard-2X $50/month per dynoFrom $2.19/month for a small shared Machine in Ashburn
ScalingManual dyno counts; autoscaling on Performance, Private, and Shield dynosAutostop and autostart, plus a deployable metrics autoscaler
Pull request environmentsReview apps through Pipelines and GitHubReview apps through GitHub Actions
Managed dataHeroku Postgres, Key-Value Store, Kafka, add-on marketplaceManaged Postgres, plus partner services such as Upstash and Tigris
RegionsUS and Europe on the Common Runtime, more with Private SpacesRegions across North America, Europe, Asia Pacific, South America, and Africa
ConfigurationProcfile and app.jsonfly.toml per app
ComplianceISO 27001 and SOC 2 across runtimes; PCI and HIPAA in Shield servicesSOC 2 Type II, HIPAA package with pre-signed BAA

 

What Heroku's 2026 announcement means for your apps

Heroku is still running and supported. The change is to its roadmap, which makes this a planning decision rather than an emergency.

Heroku's February 2026 update describes a transition to a sustaining engineering model focused on stability, security, reliability, and support, and its March 2026 update says it will keep releasing features that fit those goals. The February post also says customers paying by credit card can keep using Heroku with no changes to pricing, billing, service, or day-to-day usage. If your app is stable and the features you need already exist, staying is a reasonable choice. If you're counting on new capabilities, it's worth comparing options now, while there's no deadline.

How pricing works on each platform

Heroku charges per dyno size whether it's busy or quiet. Fly.io charges per second for running Machines, so stopped Machines cost little and regions change the price.

Heroku prices dynos by size. Eco is a $5 monthly subscription for a shared pool of 1,000 hours, and Eco dynos sleep when idle. Basic dynos cost $7 a month and stay on, with one dyno per process type. Production apps usually run Standard-1X at $25 or Standard-2X at $50 per dyno per month, and Performance dynos start at $250. Databases and other services are add-ons with their own plans.

Fly.io's pricing has no plan to choose. A running Machine is billed by the second at its CPU and RAM preset, and a stopped Machine pays only for its root file system, at $0.15 per GB a month. A shared-CPU Machine with 256 MB costs $2.19 a month in Ashburn, Virginia, and other regions apply a multiplier. Volumes, egress, dedicated IPv4 addresses, and support plans, which start at $29 a month, are billed separately. Apps that can stop Machines when traffic is quiet benefit most. In exchange, the bill has more lines to track than a dyno count.

How each platform scales your app

Heroku's autoscaling is tied to its higher dyno tiers. Fly.io's built-in option starts and stops Machines you've already created, and metric-based scaling runs as an app you manage.

On Heroku, you scale by changing dyno size or count. Native autoscaling is available for Performance, Private, and Shield dynos, and adjusts web dynos one at a time based on a target p95 response time. If that doesn't fit your app, Heroku's docs suggest third-party add-ons from its marketplace.

Fly.io has two forms of autoscaling. With autostop and autostart, Fly Proxy starts and stops a pool of Machines you create, based on traffic, and never creates or deletes Machines, so your pool size sets the ceiling. For other signals, such as queue depth, Fly.io provides fly-autoscaler, which you deploy as a separate app. It reads metrics from Prometheus or Temporal and can create, delete, start, or stop Machines based on rules you write.

Review apps, staging, and the data inside them

Heroku has Pipelines and review apps built in. On Fly.io, you build the same workflow from separate apps and a GitHub Actions workflow.

Heroku review apps need Pipelines, the GitHub integration, and an app.json file. Each review app gets new instances of the add-ons listed there, and you fill the database with a postdeploy script that runs once at creation.

Fly.io's review apps guide uses a GitHub Actions workflow and the fly-pr-review-apps action. The starting workflow deploys a single app with no other resources, so you extend it yourself to add a database or Redis. Fly.io's Heroku migration guide notes that Fly.io doesn't have Pipelines and suggests creating separate apps for staging and production.

On both, previews run against whatever data your scripts put there. That works for many apps, and it matters more when bugs depend on the shape and size of real data.

Databases and managed services

Heroku's add-on marketplace covers a lot of ground. Fly.io offers Managed Postgres and a smaller set of partner services, and volumes for anything you run yourself.

Heroku runs managed Postgres, Key-Value Store, and Apache Kafka, and its add-on marketplace covers many other services, from logging to search. Fly.io offers Managed Postgres cluster plans from $38 a month, each with high availability, automated backups, and connection pooling. Its migration guide maps common Heroku add-ons to Fly.io options, such as Upstash for Redis and Tigris for object storage. For other services, you run them yourself on Machines with volumes, which sit on one server and attach to one Machine, without automatic replication between them.

Moving from Heroku to Fly.io

Fly.io publishes a step-by-step Heroku migration guide that covers web apps, Postgres, Redis, workers, and secrets.

Fly.io's guide covers web apps in any language, Postgres, Redis, background workers, and environment variables. You export your Heroku config vars and import them as Fly.io secrets, create Managed Postgres and Redis to replace the Heroku add-ons, and define web and worker processes in fly.toml. Heroku's git push deploy becomes fly deploy, which you can run from a GitHub Actions workflow if you want deploys on every commit.

Regions and compliance

Fly.io offers more regions on its standard platform. Heroku keeps PCI and HIPAA inside its enterprise Shield services.

Heroku apps on the Common Runtime run in the US or Europe, and Private Spaces add regions such as Frankfurt, London, Montreal, and Mumbai. Its compliance center lists ISO 27001, 27017, and 27018 and SOC 1, 2, and 3 across runtimes, while PCI DSS and HIPAA cover Shield services.

Fly.io's pricing page lists regions from Ashburn and Amsterdam to Johannesburg and São Paulo. It holds SOC 2 Type II, offers a data processing agreement, and sells a HIPAA package for $99 a month with the BAA pre-signed.

Which one fits your app?

Stay on Heroku if its built-in workflow covers you. Pick Fly.io if you want regional placement and per-second billing, and you're comfortable owning more setup.

Staying on Heroku makes sense if:

  • You rely on Pipelines, review apps, and add-ons that would take real work to rebuild.
  • You run PCI or HIPAA workloads in Shield and they're working well.
  • Your app is stable and the features you need already exist.

Fly.io is a good fit if:

  • You want to run Machines in specific regions close to your users.
  • Your traffic is quiet much of the time and Machines can stop when idle.
  • You're comfortable building review apps, staging, and metric-based scaling into your own workflows.
  • You want HIPAA coverage as an add-on package.

When to consider a third option: Upsun Cloud

If you're a PHP, Python, or Node.js team that wants Heroku's managed feel with services, previews, and cloud choice built into one configuration, Upsun Cloud is worth a look.

Teams leaving Heroku often want to keep managed services rather than run their own. On Upsun Cloud, you declare services such as PostgreSQL, MariaDB, Redis, Valkey, OpenSearch, RabbitMQ, and Kafka in the same .upsun/config.yaml file as your apps and workers, and the platform runs them. PHP, Python, and Node.js are among the supported runtimes. If you're converting a Procfile, our guide to translating Procfiles to service definitions walks through it.

Preview environments that start with data. On Upsun Cloud, every environment is tied to a Git branch, and a new environment inherits the data and services of its parent, including databases and file storage. With the GitHub integration, opening a pull request creates an environment with a copy of its parent's data, and merging removes it. Cloning data is the default, and you can switch it off. If production holds personal data, you can sanitize it in preview environments, for example with deploy hooks. Previews without a custom domain are hidden from search engines, but anyone with the URL can reach them until you set HTTP access control.

 


A choice of cloud. Upsun Cloud runs on AWS, Azure, Google Cloud, and OVHcloud, and you can deploy across providers and regions from the same configuration. Moving an existing project to another cloud means moving it to a region on that cloud: you set up the project there, push the same code and configuration, copy your files and data, then switch DNS. The region migration guide covers the steps, and you should plan for a brief outage at the switch.

Compliance coverage. Upsun Cloud's compliance coverage includes ISO 27001, SOC 2 Type 2, PCI DSS Level 1, HIPAA, and GDPR, but it varies by region. HIPAA workloads run in a single US region, and the Upsun Trust Center lists which regions each certification covers.

Pricing is resource-based: you set CPU, RAM, and disk for each app and service, per environment. Upsun Cloud autoscales applications and workers horizontally: it adds or removes instances when CPU or memory crosses the thresholds you set. It can do the same for MariaDB and PostgreSQL read-only replicas. You still choose the CPU, RAM, and disk for each instance. The Heroku-to-multicloud migration guide covers the wider move.

You can try it with a 15-day free trial.


 

Frequently asked questions (FAQ)

Is Fly.io cheaper than Heroku?
It depends on your traffic and regions. Fly.io's per-second billing tends to cost less for apps whose Machines can stop when idle, and its prices vary by region. Heroku's per-dyno prices are easier to forecast for steady workloads. Price your own setup on both pricing pages.

Does Fly.io have Heroku Pipelines?
No. Fly.io's Heroku migration guide suggests creating separate apps for staging and production, and its review apps run through a GitHub Actions workflow.

What replaces Heroku add-ons on Fly.io?
Fly.io's migration guide maps Heroku Postgres to Fly.io Managed Postgres and Heroku Redis to Upstash for Redis. Other add-ons may need an external provider or a service you run yourself.

Can I autoscale on Heroku's Standard dynos?
Heroku's built-in autoscaling covers Performance, Private, and Shield dynos. For Standard dynos, Heroku's docs point to third-party add-ons.

Is Heroku shutting down?
Heroku hasn't announced a shutdown. Its February 2026 update describes a move to a sustaining engineering model, and credit card customers keep the same pricing and service.

Where does Upsun Cloud fit?
Upsun Cloud suits PHP, Python, and Node.js teams that want managed services defined in one configuration file, preview environments with a copy of production data, and a choice between AWS, Azure, Google Cloud, and OVHcloud.

Stay updated

Subscribe to our monthly newsletter for the latest updates and news.

Deploy possibility.
Try Upsun for free.

Build with DispatchDeploy on Cloud