You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
GCP offers a comprehensive range of managed database services. This lesson covers the two most important relational options: Cloud SQL for traditional relational workloads and Cloud Spanner for globally distributed relational databases that need unlimited scale.
Cloud SQL is a fully managed relational database service. It handles provisioning, replication, backups, patching, and failover so you can focus on your application.
| Engine | Versions |
|---|---|
| MySQL | 5.7, 8.0 |
| PostgreSQL | 12, 13, 14, 15, 16 |
| SQL Server | 2017, 2019, 2022 |
Cloud SQL HA uses a regional configuration with a primary instance and a standby replica in a different zone:
Primary Instance (Zone A) ←— synchronous replication —→ Standby (Zone B)
Scale read-heavy workloads by creating read replicas:
| Dimension | Capability |
|---|---|
| Vertical | Up to 96 vCPUs, 624 GB RAM |
| Storage | Up to 64 TB, auto-increase available |
| Read scaling | Up to 10 read replicas |
gcloud sql instances create my-db \
--database-version=POSTGRES_16 \
--tier=db-custom-2-8192 \
--region=europe-west2 \
--availability-type=REGIONAL \
--storage-auto-increase
Cloud Spanner is a globally distributed, horizontally scalable relational database. It combines the structure of a traditional relational database with the scale of a NoSQL system.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.