A regional e-commerce platform is re-architecting its containerized order reservation backend on Google Cloud. The application consists of stateless HTTP services handling unpredictable traffic spikes during promotional events. The solution must run within a single GCP region while ensuring high availability across multiple zones, automatic scaling from zero, and minimal cluster management overhead. The underlying relational database requires ACID transactional integrity within the region and automatic standby failover. Which architecture meets these technical and high availability requirements with the lowest operational complexity?
- Deploy the stateless microservices on Cloud Run connected via Serverless VPC Access to a regional Cloud SQL instance configured with High Availability (HA).Answer
- BDeploy the stateless microservices on a multi-zone Standard Google Kubernetes Engine (GKE) cluster and connect to a regional Cloud SQL instance configured with High Availability (HA).
- CDeploy the stateless microservices on Cloud Run connected via Serverless VPC Access to a multi-region Cloud Spanner instance.
- DDeploy the stateless microservices on Cloud Run and configure HTTPS Load Balancer health checks to execute direct SELECT queries on the backend database.
Answer
Deploying the stateless microservices on Cloud Run coupled with Serverless VPC Access to a regional Cloud SQL for PostgreSQL/MySQL HA instance satisfies high availability, auto-scaling, and single-region transactional requirements while minimizing operational overhead.
The combination of Cloud Run and Cloud SQL in High Availability (HA) mode perfectly satisfies all technical requirements. Cloud Run provides serverless container execution that scales seamlessly with traffic spikes while eliminating cluster maintenance overhead. Cloud SQL HA uses synchronous replication across two zones within the region to deliver automatic failover and high availability for relational workloads.
Step-by-Step Solution
Key Concept
Designing serverless high availability architectures using Cloud Run and Cloud SQL HA