Course contentsShow
← Cloud and Infrastructure
Lesson 105 of 2,9892. Compute FoundationsFree lesson

GCP App Engine Standard and Flexible

Deploy applications on App Engine Standard for sandboxed environments or Flexible for custom runtimes.

GCP App Engine Standard and Flexible

What You'll Learn

You'll discover how to deploy applications on Google Cloud Platform using App Engine's two environments: Standard for quick, sandboxed deployments and Flexible for custom runtime needs.

Understanding App Engine Environments

App Engine is Google's fully managed platform-as-a-service (PaaS) that lets you deploy applications without managing the underlying infrastructure. GCP offers two distinct environments to match different application requirements.

App Engine Standard Environment

The Standard environment runs your application in a secure, sandboxed environment with predefined runtimes (Python, Java, Node.js, PHP, Ruby, Go). Think of it like an apartment with fixed floor plans—you get fast deployment and automatic scaling, but you work within set boundaries.

Key characteristics:

  • Starts up in seconds
  • Scales down to zero instances (no cost when idle)
  • Free tier available
  • Limited to specific runtime versions
  • Network and filesystem restrictions

App Engine Flexible Environment

The Flexible environment runs your application in Docker containers on Compute Engine VMs, allowing custom runtimes and configurations. It's like renting a house—you have more control over the environment but with slightly longer startup times.

Key characteristics:

  • Supports any language or runtime
  • Runs in Docker containers
  • Full network access and filesystem write capabilities
  • Always has at least one instance running
  • Can install custom libraries and dependencies

Which Should You Choose?

Use Standard when you need instant scaling, minimal cost for low-traffic apps, and your application fits supported runtimes. Use Flexible when you need custom dependencies, specific language versions, or require persistent disk writes.

Key Takeaway: App Engine Standard offers rapid, sandboxed deployments with automatic zero-scaling, while Flexible provides custom runtime flexibility through Docker containers—choose based on your application's constraints and control requirements.