GCP Cloud Architecture (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
How does Cloud Run achieve Zero-to-One Scale and Concurrency?
senior LevelSystem Design
In Simple Words:
- Scale to Zero: If no HTTP requests arrive, Cloud Run deallocates all container instances, dropping hosting costs to $0.
- Cold Starts: Optimized to spin up new container instances in under 1 second.
- Concurrency (Default 80): Unlike AWS Lambda (which handles strictly 1 request per concurrent instance), a single Cloud Run container instance can process up to 1,000 concurrent requests simultaneously, slashing compute costs.