A healthcare enterprise is modernizing its telemetry processing service on Google Cloud. The application receives persistent WebSocket connections streaming real-time metric updates from medical IoT devices. The workload is stateless and packaged as a Docker container. During nighttime off-peak hours, device traffic drops to zero, and the platform must automatically scale down to zero active instances to eliminate infrastructure costs. During daytime operational hours, the service experiences sudden traffic spikes and must eliminate cold-start latency for incoming connections while minimizing operational overhead by using a fully managed serverless infrastructure. Which compute architecture should the Lead Cloud Architect recommend?
- Deploy the containerized service on Cloud Run, configuring request concurrency to accommodate multiple WebSocket connections per instance, setting minimum instances during operational hours, and allowing autoscaling to zero instances during off-peak hours.Answer
- BDeploy the containerized service on a Google Kubernetes Engine (GKE) Standard cluster configured with a Horizontal Pod Autoscaler (HPA) and Cluster Autoscaler to scale pods and nodes down to zero during idle periods.
- CDeploy the containerized service on a Compute Engine Managed Instance Group (MIG) behind an Application Load Balancer using an autoscaling policy based strictly on average CPU utilization set to 80%.
- DDeploy the containerized service on App Engine Flexible Environment while purchasing 3-year Committed Use Discounts (CUDs) for the underlying Compute Engine instances to cover baseline traffic.
Answer
Deploying the containerized service on Cloud Run with high request concurrency, minimum instances configured during operational hours, and scale-to-zero enabled off-peak meets all technical, operational, and cost requirements.
Cloud Run is the optimal Google Cloud compute platform for stateless containerized applications that require zero operational infrastructure management. It natively supports WebSockets and allows multiple concurrent requests per instance. By configuring minimum instances during peak operational hours, cold starts are eliminated. During off-peak hours, setting minimum instances to zero allows Cloud Run to scale down completely, incurring zero compute cost.
Step-by-Step Solution
Key Concept
Selecting Cloud Run for stateless containerized workloads requiring serverless operations, WebSocket protocol support, custom concurrency, and cold-start mitigation via minimum instances.