Softwr

Cloud · head to head

Google Cloud Run vs Heroku

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No

The short version

  • Heroku is a cloud platform as a service.
  • Heroku starts at $5/mo; Google Cloud Run prices on request.
  • Only Google Cloud Run lists deploy any container image; only Heroku lists dynos (containers).
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.

How do Google Cloud Run and Heroku differ?

Google Cloud Run and Heroku differ on starting price (On request against $5/month), pricing model (Usage-based against Subscription) and platforms (Web against Web, API, Workers). Only the attributes on which Google Cloud Run and Heroku actually diverge.

Attributes where Google Cloud Run and Heroku differ
AttributeGoogle Cloud RunHeroku
Starting priceOn request$5/month
Pricing modelUsage-basedSubscription
PlatformsWebWeb, API, Workers

Identical on both: free tier (No), category (Cloud).

Not yet recorded: founded for Google Cloud Run.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 20 only for Heroku. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Google Cloud Run

  • Deploy any container image
  • Source-based builds for common languages
  • Services with automatic scaling and scale to zero
  • Jobs for scheduled or manual tasks
  • Worker pools for background processing
  • Traffic splitting and rollback between revisions
  • Custom domains and managed TLS
  • Request-based and instance-based billing

Only in Heroku

  • Git-based deployment
  • Buildpacks
  • Dynos (containers)
  • Add-ons marketplace
  • Postgres database
  • Environment variables
  • Logging
  • API

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Heroku for application hosting. The jobs each tool is most often brought in to do.

Google Cloud Run

  • Hosting web APIs and microservicesnot Heroku
  • Scheduled batch jobsnot Heroku
  • Queue consumers on worker poolsnot Heroku
  • Deploying containers without managing clustersnot Heroku
  • Event-driven backends with Pub/Subnot Heroku

Heroku

  • Application hostingnot Google Cloud Run
  • Database as a servicenot Google Cloud Run
  • CI/CD pipelinesnot Google Cloud Run
  • API deploymentnot Google Cloud Run

Where do Google Cloud Run and Heroku fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Heroku's: there is no free dyno tier; the cheapest Eco dyno is $5 per month. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Google Cloud Run

  • Runs only on Google Cloud, so there is no self-hosted option
  • The container file system is in memory and not persistent
  • Worker pools do not autoscale natively and need at least one instance
  • Services are stateless, so state needs external storage

Heroku

  • There is no free dyno tier; the cheapest Eco dyno is $5 per month
  • Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
  • Free SSL and 10 process types start at the Basic dyno at $7 per month
  • Private and Shield dyno types require a Private Space, which is billed on top of the dynos
  • Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
  • Dyno prices are per dyno per month, so an app with several process types multiplies the bill

How much do Google Cloud Run and Heroku cost?

Heroku starts at $5/mo. Plan by plan below, from each vendor's own pricing page.

Google Cloud Run

On request

No published plan breakdown. See the Google Cloud Run review.

Heroku

$5/month
  • Eco Dyno$5/mo
    • 0.5 GB RAM
    • Git/Docker deploy
    • Custom domains
  • Basic Dyno$7/mo
    • 0.5 GB RAM
    • Always-on
    • Free SSL
  • Standard-1X Dyno$25/mo
    • 0.5 GB RAM
    • Horizontal scaling
    • App metrics
  • Standard-2X Dyno$50/mo
    • 1 GB RAM
    • Horizontal scaling
    • App metrics

Which should you pick?

Choose Google Cloud Run if

  • You need deploy any container image.
  • You also want source-based builds for common languages.

Choose Heroku if

  • You need git-based deployment.
  • You work on Web, API, Workers.
  • You also want buildpacks.

Questions people ask

Is Google Cloud Run or Heroku better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Heroku fits application hosting. Google Cloud Run starts at On request and Heroku at $5/month.
Which is cheaper, Google Cloud Run or Heroku?
Google Cloud Run starts at On request and Heroku at $5/month.
Does Google Cloud Run or Heroku run on more platforms?
Google Cloud Run runs on Web. Heroku runs on Web, API, Workers.
What is Google Cloud Run best used for?
Google Cloud Run is most often used for hosting web apis and microservices, scheduled batch jobs, queue consumers on worker pools, deploying containers without managing clusters. Of those, hosting web apis and microservices and scheduled batch jobs are not what Heroku is typically brought in for.
What can Google Cloud Run do that Heroku cannot?
Google Cloud Run covers Deploy any container image, Source-based builds for common languages, Services with automatic scaling and scale to zero, Jobs for scheduled or manual tasks. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.

Answered from the vendors’ own pages

Google Cloud Run: What can Cloud Run run?

Any container image, or source code for Go, Node.js, Python, Java.NET and Ruby that Google builds into a container.

Source
Heroku: How much does Heroku cost?

Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.

Source
Google Cloud Run: How is Cloud Run billed?

Allocated CPU and memory are billed in 100 millisecond granularity, in request-based or instance-based mode. A free tier is available.

Source
Heroku: What is the cheapest always-on Heroku plan?

The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.

Source
Google Cloud Run: Can Cloud Run scale to zero?

Yes. Services scale to zero when idle unless a minimum number of instances is set.

Source
Heroku: How is Heroku Postgres priced?

Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.

Source
Share

Related pages

Other head to heads