An enterprise fintech startup is launching a stateless REST API microservice to process payment authorization requests. The service experiences unpredictable HTTP traffic spikes during stock market trading hours but receives virtually zero traffic overnight and on weekends. The architecture team must minimize overall infrastructure costs by allowing compute resources to scale down to zero when idle, while also minimizing operational maintenance overhead. Which architectural design best satisfies these business and technical requirements?
- Deploy the application container onto Cloud Run, configuring minimum instances to zero and maximum instances to auto-scale based on incoming HTTP concurrency.Answer
- BDeploy the application as a deployment on a multi-zonal GKE Autopilot cluster with Horizontal Pod Autoscaler (HPA) configured.
- CProvision a Managed Instance Group (MIG) of Compute Engine VMs sized for peak load, backed by a 3-year Resource Committed Use Discount (CUD).
- DDeploy the microservice on Compute Engine VMs backed by Cloud Spanner as a high-throughput caching layer to handle scaling spikes.
Answer
Deploy the application container onto Cloud Run, configuring minimum instances to zero and maximum instances to auto-scale based on incoming HTTP concurrency.
Deploying the stateless container onto Cloud Run directly aligns with both business requirements: minimizing cost and reducing operational overhead. Cloud Run automatically manages infrastructure operations, scales seamlessly in response to incoming HTTP requests during trading hours, and scales down to zero instances during idle periods, ensuring the startup only pays for active request processing time.
Step-by-Step Solution
Key Concept
Selecting serverless compute platforms (Cloud Run) over GKE or VM MIGs for stateless HTTP workloads with variable traffic to optimize cost and minimize operational overhead.