GCP Cloud Architect Study Guide – Databases

FeaturesSizeLatencyComparable
Cloud SQLManaged MySQL, PostgreSQL and SQL ServerUp to 30TB
Cloud SpannerUnlimited scale relational databasePBRegional Low Latency R/W
Multiregional Low Latency Read
Oracle
DynamoDB
Cloud BigtableNo-SQL, Key Value, Low Latency PB< 10msHBase
Cassandra
Firestore (Datastore)No-SQL, document based, key:value pairsPB>10ms
Firebase
Memory StoreIn-memory, managed Redis and Memcached compatibleReids:300GB
Memcached:5TB
<10ms

Cloud SQL Notes and Best Practices

  • Encrypted and have automatic backup available.
  • Data replication and automatic failover between zones

Cloud Spanner Notes and Best Practices

  • Globally replicated ensures very high availability (99.999%)
  • Strong consistency across all replicas as well as external consistency (commit order is preserved)
  • Local availability for better response times
  • Regional instances replicate across 3 zones.
  • Multi-Regional instances replicate across multiple regions. This allows for read latency to be maintained but write latency is impacted due to the mechanisms to ensure consistency.
  • Place read-write workloads with read-write replicas, read-only workloads with read-only replicas

Bigtable Notes and Best Practices

  • Single key based index.
  • Scale linearly with additional nodes
  • Highly durable using Colossus magic

FireStore (Datastore) Notes and Best Practices

  • Do not write to a document more than 1x per second
  • Regional and multi-regional options are available, select based on costs, availability and latency
  • Multi-regional availability is 99.999%
  • Datastore mode allows for backwards compatibility to Datastore and is required for App Engine integration
  • Supports offline data persistence

MemoryStore Notes and Best Practices

  • Replication across zones for standard tier to provide HA
  • Must use Private Service Access to connect.
  • Memcached is in BETA.

Summary of use cases

Use Cases
Cloud SQLSQL Support for OLTP
ERP, CRM, E-Commerce, Web
Cloud SpannerSQL Support for OLTP
Global Financial Ledger
Supply Chain/Inventory Management
BigTableStreaming time series data (IoT)
Fraud detection
Personalization
Ad tech
Financial Analysis
FirestoreUser Profiles
User Sessions
State Management
MemorystoreLow latency in memory data storage

Comments are closed.