A fashion retail enterprise operates an order fulfillment pipeline that renders personalized PDF invoices upon user checkout. The workload is completely stateless and experiences highly unpredictable traffic, ranging from zero requests during off-peak hours to sudden bursts of 300 requests per minute during promotional flash sales. The lead architect needs to select a compute architecture that minimizes overall infrastructure costs by scaling to zero during idle periods while eliminating container orchestration cluster management overhead. Which solution should the architect choose?
- Deploy the containerized application on Cloud Run with minimum instances set to 0.Answer
- BProvision a standard Google Kubernetes Engine (GKE) cluster with node auto-provisioning and deploy the application using the Horizontal Pod Autoscaler.
- CDeploy the application on a Compute Engine Managed Instance Group (MIG) backed by a 3-year Committed Use Discount (CUD) to cover baseline compute capacity.
- DDeploy the application on GKE Autopilot paired with a multi-region Cloud Spanner instance to handle traffic spikes.
Answer
Deploy the containerized application on Cloud Run with minimum instances set to 0.
Deploying on Cloud Run with minimum instances set to 0 fulfills all business requirements. Cloud Run automatically scales containers based on incoming web traffic and scales down to zero when no requests are being processed, eliminating idle compute costs. As a fully managed serverless product, it requires zero cluster management overhead.
Step-by-Step Solution
Key Concept
Serverless Compute Right-Sizing and Scale-to-Zero Architecture