Intermediate LevelCloud Computing (AWS/GCP/Azure)
What is GCP Cloud Run and how does it run serverless web containers on top of Knative?
❓ Interview Prompt: Explain GCP Cloud Run serverless container platform, Knative open-source roots, scale-to-zero, and concurrency settings.
Google Cloud Run is a fully-managed serverless compute platform that runs stateless OCI/Docker containers, built on top of the open-source Knative standard.
Core Features:
1
Scale-to-Zero & Fast Auto-Scaling: Scales instances dynamically from 0 to thousands based on incoming HTTP request traffic.
2
Container Freedom: Supports any programming language, binary, or framework packaged inside a standard Docker container listening on port 8080.
3
Concurrency Control: Unlike AWS Lambda (1 request per instance at a time), Cloud Run instances can process up to 250 concurrent HTTP requests per container instance, drastically cutting container costs!
Code Implementation Example
bash
# Deploying container to GCP Cloud Run via gcloud CLI
gcloud run deploy my-web-app \
--image gcr.io/my-project/web-app:v1 \
--platform managed \
--region us-central1 \
--allow-unauthenticated \
--concurrency 80💡Deploying web container to GCP Cloud Run with concurrency limit of 80.
🎯 Interview Key Takeaway
GCP Cloud Run executes serverless Docker containers with scale-to-zero and multi-request container concurrency.
#Cloud Run#GCP#Containers#Knative#Intermediate
Back to all Cloud Computing (AWS/GCP/Azure) Questions→