A renewable energy enterprise is designing the architecture for a new web application backend that ingests real-time telemetry from solar inverter gateways over HTTPS. The application logic is packaged into a stateless container image that requires custom system-level C libraries. Traffic fluctuates heavily throughout the day, dropping to zero during nighttime hours. The engineering team has strict instructions to minimize operational overhead and avoid paying for compute resources when idle. Which compute platform should you recommend to meet these requirements?
- Deploy the application container on Cloud Run, setting the minimum number of instances to zero and allowing fully managed autoscaling based on HTTP request concurrency.Answer
- BDeploy the application container to a Google Kubernetes Engine (GKE) cluster using Standard mode with the Cluster Autoscaler enabled to scale nodes down during off-peak hours.
- CDeploy the application container across a Compute Engine Managed Instance Group (MIG) using custom VM images, and configure autoscaling strictly based on target CPU utilization.
- DProvision a fixed cluster of Compute Engine virtual machines covered by a 3-year Committed Use Discount (CUD) to handle the daily peak load at the lowest hourly rate.
Answer
Deploy the application container on Cloud Run, setting the minimum number of instances to zero and allowing fully managed autoscaling based on HTTP request concurrency.
Cloud Run is the optimal Google Cloud compute platform for stateless containerized web microservices with variable HTTP/HTTPS traffic. It supports custom binary dependencies within standard Docker images, abstracts all underlying infrastructure management, and natively scales instances down to zero when no requests are being processed, satisfying the zero idle cost mandate.
Step-by-Step Solution
Key Concept
Selecting serverless container platforms (Cloud Run) for stateless HTTP workloads with variable demand and zero-scale requirements
Estimated Time:1m 30s