Let’s Get Certified
Module 05 / 13 · Planning and implementing a cloud solution

Match storage and databases to access patterns

A booking ledger needs relational constraints and strongly consistent writes from more than one continent. Could a warehouse replace its transaction store?

Match storage and databases to access patterns

Choose Spanner for strongly consistent relational writes that must scale beyond a single primary across continents.

Work through the decision

A booking ledger needs relational constraints and strongly consistent writes from more than one continent. Could a warehouse replace its transaction store?

Check your reasoning

Use a suitable multi-region Spanner configuration and choose keys that distribute writes. Use the warehouse for analytical scans. Test transaction latency from the actual writer locations.

Part 7 · 8:46

Interpret the evidence

Spanner
Distributes relational transactions with strong consistency and horizontal scaling.
BigQuery
Columnar analytical execution is designed for aggregations over large data sets.
Filestore
Provides a managed NFS file system when multiple clients need a shared directory tree.
Cloud Storage
Buckets hold objects addressed by name. Select location and storage class against access frequency, retention and retrieval costs.
Bigtable
Wide-column storage supports high-throughput key-range access. Design row keys to distribute writes.

Practice the guide skills

  1. Map transactional PostgreSQL, global relational writes, document reads, wide-column access and warehouse scans to Cloud SQL or AlloyDB, Spanner, Firestore, Bigtable and BigQuery.
  2. Distinguish a Pub/Sub event topic, a Kafka-compatible stream, a Dataflow transformation and a Memorystore cache by the contract each offers.
  3. For shared NFS, enterprise file volumes and parallel HPC I/O, compare Filestore, NetApp Volumes and Managed Lustre with object storage.
  4. Estimate access frequency, early deletion and retrieval costs for Standard, Nearline, Coldline and Archive. Choose location and failover behavior separately.
  5. Compare a one-off command-line upload, a warehouse load from a bucket and a recurring Storage Transfer Service job. Validate counts and cross-region redundancy.

Official objectives for this lesson

Estimate the shape of the workload

An analytics team scans twelve 18 GiB daily partitions once a week. Its mobile application performs about 600 keyed document reads per second.

Scan volume before pruning: 12 × 18 GiB = 216 GiB
Application read volume:    600 × 60 = 36,000 reads/minute

For the scan, compare BigQuery partition filters and projected columns. For the app, check Firestore’s document model, indexes and access pattern. The two measurements have different units and lead to different service choices.

Related lesson · Match the storage engine to reads and writes

Knowledge check

Match storage and databases to access patterns quiz

Answer 3 questions. Check each answer for an explanation.