Soru

Zorluk: OrtaDesigning Infrastructure for Technical Requirements and High Availability

An international airline is designing the infrastructure for a microservice-based seat reservation API on Google Cloud. The architecture must handle unpredictable traffic spikes, maintain 99.99% availability, eliminate operational overhead associated with container cluster management, and support globally synchronous database transactions across multiple GCP regions with zero Recovery Point Objective (RPO). Which architecture best meets these technical and high-availability requirements?

  1. Deploy the API on Cloud Run across multiple regions behind a Global External HTTP(S) Load Balancer, and store reservation data in a multi-region Cloud Spanner instance.Cevap
  2. B
    Deploy the API on GKE (Google Kubernetes Engine) Autopilot clusters in multiple regions behind a Global External HTTP(S) Load Balancer, and store reservation data in a multi-region Cloud Spanner instance.
  3. C
    Deploy the API on Cloud Run across multiple regions behind a Global External HTTP(S) Load Balancer, and store reservation data in a regional Cloud SQL for PostgreSQL instance with High Availability enabled.
  4. D
    Deploy the API on Compute Engine Managed Instance Groups (MIGs) across multiple regions using HA Cloud VPN to synchronize transactions with an on-premises database.

Cevap

Deploying the microservice API on Cloud Run across multiple regions behind a Global External HTTP(S) Load Balancer, paired with a multi-region Cloud Spanner instance for database storage.
Cloud Run is a fully managed serverless platform for containerized stateless applications that scales automatically and eliminates container cluster administration. Fronted by a Global External HTTP(S) Load Balancer, incoming requests are efficiently distributed to regional Cloud Run instances. Cloud Spanner with a multi-region deployment configuration delivers external consistency and multi-region synchronous replication with zero RPO, satisfying strict transactional reservation requirements.

Adım Adım Çözüm

1
Evaluate compute requirement for zero cluster management overhead and serverless scaling
Cloud Run allows deploying stateless containerized APIs without managing GKE clusters or Compute Engine virtual machines.
The requirement explicitly states that operational overhead from container cluster management must be eliminated.
2
Evaluate database requirement for multi-region zero-RPO synchronous consistency
Cloud Spanner configured across multiple regions uses Paxos consensus to provide strong consistency and synchronous multi-region replication.
Cloud SQL is limited to single-region regional HA, whereas Cloud Spanner natively supports multi-region zero-RPO transactional consistency.
3
Combine compute and database components with global traffic routing
Global External HTTP(S) Load Balancer routes client requests to the nearest healthy Cloud Run region, which queries the multi-region Cloud Spanner backend.
This combination ensures high availability (99.99% stem target) and low latency worldwide.

Anahtar Kavram

Designing multi-region high-availability cloud architectures combining serverless compute and globally consistent relational databases.
Bu soruyu puanla