Stack Picker
a developer-grade decision engine
Back to the picker
Compute / Hosting

Google Cloud Run

Serverless containers on Google Cloud.

Official site
Monthly cost
$0+ / mo
2M req/mo free; usage-based
Popularity
4/5
LLM knowledge
4/5
Difficulty
Medium
#serverless

What Google Cloud Run is good at

Strengths
  • +Any container image
  • +Scales to zero
  • +Simple pricing
Tradeoffs
  • Cold starts for rarely-used services
  • GCP tie-in

Coding-agent prompt

You're working with Google Cloud Run. Serverless containers on Google Cloud.

Best practices:
- Lean on: any container image
- Lean on: scales to zero
- Lean on: simple pricing

Things to watch for:
- Watch out for: cold starts for rarely-used services
- Watch out for: gcp tie-in

General guidance:
- Canonical docs: https://cloud.google.com/run — check here before inventing APIs.
- Keep secrets in environment variables, never commit them.
- Write TypeScript where the ecosystem supports it; add types to every exported function.
- Add tests for the critical paths before declaring the task done.
- Read-the-docs is usually faster than guessing — cite the docs page in code comments when you apply a non-obvious pattern.

Beginner's guide to Google Cloud Run

In one line: Serverless containers on Google Cloud — scales to zero when unused.

Cloud Run takes your app packaged in a container (a Docker image) and runs it. It scales automatically and you only pay when it's actually handling requests.

Browse all categories