Lessons in this course (9)

4. Databases — Cloud SQL (SQL Server), AlloyDB, Spanner, Firestore, Bigtable, Memorystore

Intermediate★ Must knowLesson 4 of 9
ServiceTypeUse
Cloud SQLManaged SQL Server, PostgreSQL, MySQLMost business apps; lift-and-shift SQL Server
AlloyDBPostgreSQL-compatible, high performance (columnar engine for analytics)Demanding PostgreSQL workloads
SpannerGlobally distributed, strongly consistent relational (SQL) with horizontal scaleGlobal financial/inventory systems needing scale + consistency
FirestoreServerless document database with real-time listeners and offline mobile syncMobile/web apps, user profiles
BigtableWide-column NoSQL for huge throughput (HBase API)Time series, IoT, analytics at petabyte scale
MemorystoreManaged Redis/Valkey/MemcachedCaching, sessions
BigQueryServerless data warehouse (SQL over petabytes)Analytics, BI, ML

Cloud SQL for SQL Server: editions Express/Web/Standard/Enterprise (licence included), high availability (regional instance with a standby in another zone, automatic failover), automated backups + point-in-time recovery, read replicas, private IP, maintenance windows. Connect with:

  • Private IP from Cloud Run/GKE via VPC (Direct VPC egress or Serverless VPC Access).
  • Cloud SQL Auth Proxy / language connectors — IAM-authorised, encrypted tunnel without managing IP allow-lists (for SQL Server, run the proxy as a sidecar or locally).
text
Server=10.20.0.5;Database=Shop;User Id=shop_app;Password=<from Secret Manager>;Encrypt=True;TrustServerCertificate=False