Skip to content

Cloud Run

Medium — good to knowCloud & Infra

ELI5 — The Vibe Check

Cloud Run is GCP's magic platform for running containerized apps without managing servers. You give it a Docker container, set how much CPU/RAM it needs, and it runs it on demand. It scales to zero when nobody's using it and to hundreds of instances during traffic spikes. It's basically GCP's answer to Lambda but for full containers.

Real Talk

Google Cloud Run is a fully managed serverless platform for running stateless containers. It auto-scales from zero to N instances based on HTTP traffic or events, with per-100ms billing. Containers must listen on a port and handle HTTP requests. Supports any language/framework since it's container-based.

Show Me The Code

# Build and deploy to Cloud Run
docker build -t gcr.io/my-project/my-app:latest .
docker push gcr.io/my-project/my-app:latest

gcloud run deploy my-app \
  --image gcr.io/my-project/my-app:latest \
  --platform managed \
  --region us-central1 \
  --allow-unauthenticated \
  --memory 512Mi

When You'll Hear This

"We deploy the API as a Cloud Run service — it handles autoscaling automatically." / "Cloud Run scales to zero overnight so we don't pay for idle capacity."

Made with passive-aggressive love by manoga.digital. Powered by Claude.