An online education organization is launching a new stateless HTTP microservice that receives student quiz responses, performs light validation, and publishes events to Google Cloud Pub/Sub. The workload experiences unpredictable, highly variable traffic with prolonged periods of complete inactivity during nighttime hours. The engineering leadership wants to minimize operational overhead and prevent paying for idle compute capacity. Which architecture recommendation best fulfills these requirements?
- Deploy the microservice as a Cloud Run containerized service configured to scale down to zero instances when idle.Cevap
- BDeploy the microservice to a Google Kubernetes Engine (GKE) Autopilot cluster managed by a Horizontal Pod Autoscaler.
- CDeploy the microservice across a Compute Engine Managed Instance Group (MIG) using a fixed minimum node count with autoscaling based on CPU utilization.
- DProvision Compute Engine Virtual Machines backed by 3-year Committed Use Discounts (CUDs) to host the microservice instances.
Cevap
Deploy the microservice as a Cloud Run containerized service configured to scale down to zero instances when idle.
Deploying to Cloud Run is the optimal architectural choice because Cloud Run automatically handles container execution, scales down to zero instances when no HTTP requests are being processed, and eliminates operational management of underlying infrastructure.
Adım Adım Çözüm
Anahtar Kavram
Selecting serverless container platforms (Cloud Run) for stateless HTTP microservices with variable traffic patterns to minimize operational overhead and cost.