Cloud Run
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."
Related Terms
Auto Scaling
Auto scaling is when the cloud automatically adds more servers when traffic spikes and removes them when it drops, so you're not paying for idle machines a...
Container
A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.
Docker
Docker is like a lunchbox for your app.
FaaS (Function as a Service)
FaaS is when you write a tiny function and deploy it to the cloud, and it only runs (and charges you) when someone calls it.
Fargate
Fargate is AWS's 'serverless containers' magic. You run Docker containers without ever seeing or touching an EC2 server. AWS figures out where to run them.
GCP (Google Cloud Platform)
GCP is Google's version of the giant rental computer warehouse.