A regional retail enterprise is migrating a stateless REST API backend for its customer loyalty application to Google Cloud. The application experiences variable traffic patterns with heavy request volume during daytime business hours and virtually zero traffic overnight. The company's primary business objective is to minimize baseline infrastructure costs and operational management overhead while maintaining high availability during operational hours. Which deployment architecture best meets these business and cost requirements?
- Deploy the containerized REST API application to Cloud Run and allow it to scale down to zero instances during idle periods.Cevap
- BProvision a regional Google Kubernetes Engine (GKE) Standard cluster with a fixed node pool spread across three availability zones.
- CDeploy the application on Compute Engine Virtual Machines backed by 3-year Committed Use Discounts sized for peak capacity.
- DMigrate the application backend service and transactional database to a multi-region Cloud Spanner deployment.
Cevap
Deploying the containerized application to Cloud Run with scale-to-zero capability minimizes operational overhead and eliminates idle baseline infrastructure costs.
Deploying the stateless REST API to Cloud Run directly aligns with business goals by providing a fully managed serverless environment. Cloud Run scales automatically based on HTTP traffic, scaling down to zero instances during overnight idle periods so the enterprise incurs no compute costs when the app is not in use, while also eliminating cluster management overhead.
Adım Adım Çözüm
Anahtar Kavram
Serverless compute right-sizing and scale-to-zero cost optimization for stateless workloads
Tahmini Süre:1m 30s