A regional logistics provider is re-platforming its central dispatch system on Google Cloud. The workload consists of a lightweight, stateless REST API for route management and a 250 GB relational database. The solution must run within a single GCP region (us-central1), support automatic zonal failover with zero RPO for database transactions within the region, and minimize infrastructure management overhead. Which cloud architecture should you recommend?
- Deploy the stateless REST API to Cloud Run and host the database on Cloud SQL for PostgreSQL configured with High Availability (regional instance with primary and standby zones).Cevap
- BDeploy the stateless REST API to Cloud Run and provision a multi-region Cloud Spanner instance to store the transactional relational data.
- CDeploy a GKE Autopilot cluster across three zones to run both the stateless REST API containers and self-managed PostgreSQL database containers using StatefulSets.
- DDeploy the REST API on Compute Engine VMs in a Managed Instance Group (MIG) behind an Application Load Balancer, and configure the load balancer health checks to execute direct queries against the database backend.
Cevap
Deploy the stateless REST API to Cloud Run and host the database on Cloud SQL for PostgreSQL configured with High Availability (regional instance with primary and standby zones).
Combining Cloud Run for stateless containers with Cloud SQL High Availability satisfies all requirements: serverless execution minimizes operational overhead, while regional Cloud SQL HA ensures zero RPO and automatic failover across zones within us-central1 without over-engineering.
Adım Adım Çözüm
Anahtar Kavram
Single-Region High Availability and Managed Infrastructure Selection