Infra Atlas · Decisions

App Engine or Compute Engine?

Google Cloud's PaaS-vs-IaaS choice — ship code, or run the machine.

Reviewed
The verdict

Pick App Engine to ship application code and let Google run it — no servers, no OS patching, autoscaling built in. Pick Compute Engine when you need the OS, root/SSH access, custom networking, GPUs, or anything that is not a stateless web app. The deciding line is the operations boundary: App Engine trades infrastructure control for near-zero ops burden; Compute Engine gives you full control and the responsibility that comes with it.

Head to head
CriterionApp EngineCompute Engine
AbstractionPaaS — deploy app code, Google runs the serversIaaS — you provision and manage the VMs
Scale to zeroStandard: yes. Flexible: no (min 1 instance)Only via schedule-based autoscaling
Cold startsYes — loading requests; warmup mitigatesNone inherent — you own the VM lifecycle
RuntimesStandard: Go, Java, Node, Python, PHP, Ruby. Flexible: any (Docker)Any — pick the OS, install anything
OS / root accessStandard: no SSH. Flexible: SSH, OS still managedFull root / SSH; Linux or Windows
Pricing modelStandard: instance-hours. Flexible: vCPU + memory + diskPer-second; sustained- & committed-use discounts
Max request timeStandard: 10 min auto / 24 h basic. Flexible: 60 minN/A — not a request-scoped platform
Ideal workloadStateless web apps & HTTP APIs, minimal opsDatabases, GPU/TPU jobs, daemons, lift-and-shift
When to pick which

Pick App Engine when

  • You have a stateless web app or HTTP API in a supported language and want to deploy code, not servers.
  • Traffic is spiky — autoscaling absorbs it, and Standard can scale to zero between bursts.
  • You want minimal ops: no VM lifecycle, no instance groups, no networking setup.

Pick Compute Engine when

  • You need root/SSH, a specific OS, kernel modules, or software App Engine will not host.
  • The workload is not a web app — databases, batch/HPC, GPU/TPU, long-running daemons.
  • You need full VPC control or fine-grained machine sizing and cost levers.
Sources
  1. Choose an App Engine environment — https://docs.cloud.google.com/appengine/docs/the-appengine-environments
  2. Compute Engine overview — https://docs.cloud.google.com/compute/docs/overview
  3. App Engine Standard — instance management — https://docs.cloud.google.com/appengine/docs/standard/how-instances-are-managed
  4. App Engine Standard runtimes — https://docs.cloud.google.com/appengine/docs/standard/runtimes
  5. Compute Engine autoscaler — https://docs.cloud.google.com/compute/docs/autoscaler
  6. Compute Engine VM pricing — https://cloud.google.com/compute/vm-instance-pricing
Related instruments