QuickDevGuide

Home › GCP

Cloud Run in Depth — GCP

Cloud Run runs stateless containers that listen on $PORT, scaling from zero to many instances per request load. Setting Guidance --concurrency requests per instance (default 80); lower for CPU-heavy work --min-instances > 0 removes cold starts for latency-sensitive services --cpu-boost, --cpu-throttling faster startup; "always allocated" CPU for background work Revisions & traffic --no-traffic deploy, then split: --to-revisions=new=10 (canary) Secrets --set-secrets from Secret Manager (env var or mounted file) Networking Direct VPC egress / Serverless VPC connector for private IPs (Cloud SQL, Memorystore) Auth --no-allow-unauthenticated + IAM roles/run.invoker for service-to-service calls Jobs gcloud run jobs for batch tasks that run to completion Container contract Listen on…

Key Takeaways