Skip to main content

App Engine

Exam guide§2.1

Fully managed PaaS: upload code and App Engine deploys and runs the infrastructure for you. You focus on application logic, not servers. Know the two environments (Standard vs Flexible) and the versions + traffic-splitting model.

What App Engine gives you

A PaaS binds your code to the libraries and services it needs, so more effort goes into application logic instead of deployment. You upload code; App Engine provisions the runtime, scaling, and load balancing.

  • Languages (Standard): Java, Node.js, Python, PHP, C#, .NET, Ruby, Go. Flexible runs any language via a Docker container.
  • Structure: one app per project, organized as App > Services > Versions > Instances.
  • Integrated ops: wired into Cloud Monitoring, Cloud Logging, Cloud Profiler, and Error Reporting out of the box.

Standard vs Flexible

StandardFlexible
RuntimeLanguage-specific sandbox, fixed OSAny language via custom Docker container
StartupFast (seconds)Slower (minutes - boots a VM)
Scale to zeroYes (idle apps cost nothing)No (minimum 1 instance)
Local diskCannot write to local diskCan write to local disk
SSH accessNoYes (into the container VM)
Best forBursty/low-utilization web + mobile backendsCustom runtimes, background processes, specific libs
GotchaApp Engine is single-region and non-changeable

An App Engine app is tied to one region, chosen at creation and not changeable afterward. If a question needs multi-region or global reach, that points to Cloud Run (region-independent) instead.

Versions & traffic splitting

  • Each deploy is a version; you can keep multiple versions and roll back instantly.
  • Traffic splitting routes a percentage of requests across versions for A/B testing, canary, and gradual rollout.
NumbersApp Engine limits
  • Max services per app: 5 (free), 105 (paid).
  • Max versions per app: 5 (free), 210 (paid).
  • Max instances with manual scaling: 20.
  • Scaling types: automatic (per-instance request queues), basic (cheap, higher latency), manual (fixed instances).
  • Standard-environment URL: https://PROJECT_ID.REGION_ID.r.appspot.com.

Recap

DECISIONWhen App Engine?
Focus on writing code, not deploying/managing the environmentApp Engine
Website, mobile/gaming backend, or RESTful APIApp Engine
Need a specific supported language + fast scale-to-zeroApp Engine Standard
Custom runtime / Docker, background work, local diskApp Engine Flexible
Need multi-region or region-independentCloud Run (not App Engine)
Full control over OS / kernelCompute Engine (not App Engine)
Pick this when: want to ship code and let Google run everything, don't need to build the infra yourself