Softwr

Cloud · head to head

Google Cloud Run vs Google Compute Engine

Google Cloud Run logo

Google Cloud Run

Cloud

Managed platform for running containers and functions on Google Cloud

From
On request
Free plan
No
Google Compute Engine logo

Google Compute Engine

Cloud

Google Cloud virtual machines billed per vCPU and per GB of memory

From
On request
Free plan
No

The short version

  • Only Google Cloud Run lists deploy any container image; only Google Compute Engine lists machine families.
  • Where Google Cloud Run falls short: runs only on Google Cloud, so there is no self-hosted option.
  • Where Google Compute Engine falls short: you manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove.

How do Google Cloud Run and Google Compute Engine differ?

Google Cloud Run and Google Compute Engine differ on pricing model and platforms (Web against Web, API). Only the attributes on which Google Cloud Run and Google Compute Engine actually diverge.

Attributes where Google Cloud Run and Google Compute Engine differ
AttributeGoogle Cloud RunGoogle Compute Engine
Pricing modelUsage-basedPer vCPU and per GB of memory per hour
PlatformsWebWeb, API

Identical on both: starting price (On request), free tier (No).

Not yet recorded: category for Google Compute Engine.

Which features does each one have?

They share no listed features; 9 appear only for Google Cloud Run and 5 only for Google Compute Engine. 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 Google Compute Engine

  • Machine families
  • Custom machine types
  • Sustained use discounts
  • Committed use discounts
  • Free e2-micro

What is each one used for?

Google Cloud Run is most often brought in for hosting web APIs and microservices; Google Compute Engine for lift-and-shift of virtual machine workloads to Google Cloud. The jobs each tool is most often brought in to do.

Google Cloud Run

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

Google Compute Engine

  • Lift-and-shift of virtual machine workloads to Google Cloudnot Google Cloud Run
  • GPU and high performance computing jobsnot Google Cloud Run
  • Self-managed databases or legacy servers needing OS controlnot Google Cloud Run
  • Cost-optimised batch work on spot capacitynot Google Cloud Run

Where do Google Cloud Run and Google Compute Engine fall short?

Google Cloud Run's most cited limit: runs only on Google Cloud, so there is no self-hosted option. Google Compute Engine's: machine type choice is wide, and picking the wrong family wastes money until you resize. 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

Google Compute Engine

  • You manage patching, hardening and scaling, so the effective cost includes operations time that serverless options remove
  • Bills combine vCPU, memory, disks, network egress and licences, which makes forecasting hard without the pricing calculator
  • Machine type choice is wide, and picking the wrong family wastes money until you resize
  • Sustained use discounts do not stack with committed use discounts, so savings depend on getting commitments right
  • Network egress charges can exceed compute cost for data-heavy applications

How much do Google Cloud Run and Google Compute Engine cost?

Google Cloud Run

On request

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

Google Compute Engine

On request
  • On demandOn request
    • vCPU and memory billed separately
    • Sustained use discounts up to 30%
    • Committed use discounts available

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 Google Compute Engine if

  • You need machine families.
  • You work on Web, API.
  • You also want custom machine types.

Questions people ask

Is Google Cloud Run or Google Compute Engine better?
It depends on the job. Google Cloud Run fits hosting web APIs and microservices; Google Compute Engine fits lift-and-shift of virtual machine workloads to Google Cloud. Google Cloud Run starts at On request and Google Compute Engine at On request.
Which is cheaper, Google Cloud Run or Google Compute Engine?
Google Cloud Run starts at On request and Google Compute Engine at On request.
Does Google Cloud Run or Google Compute Engine run on more platforms?
Google Cloud Run runs on Web. Google Compute Engine runs on Web, API.
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 Google Compute Engine is typically brought in for.
What can Google Cloud Run do that Google Compute Engine 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. Google Compute Engine covers Machine families, Custom machine types, Sustained use discounts, Committed use discounts.

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
Google Compute Engine: How is Compute Engine billed?

Per vCPU and per GB of memory per hour, plus disks and network.

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
Google Compute Engine: Is there a free VM?

Yes, Google Cloud offers a free e2-micro instance under its free programme.

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
Google Compute Engine: What discounts exist?

Sustained use discounts of up to 30% and committed use discounts.

Share

Related pages

Other head to heads