Select a data service from its access pattern
A distributor runs a single-region PostgreSQL ordering application and a separate global reservation ledger. Why might each need a different managed service?
Select a data service from its access pattern
A multi-region payment ledger needs strong consistency. The speaker selects Spanner.
Work through the decision
A distributor runs a single-region PostgreSQL ordering application and a separate global reservation ledger. Why might each need a different managed service?
Check your reasoning
For the ordering application, weigh engine compatibility and operational burden. For the ledger, test distributed transaction requirements and writer latency in each region. Specify consistency, schema, query pattern and availability before choosing a product.
Interpret the evidence
- Cloud SQL
- A managed relational database supports familiar engines, transactions and common application patterns. Choose a suitable availability configuration.
- Spanner
- Provides distributed relational transactions and strong consistency, with multi-region configurations for appropriate workloads.
- Cloud Storage
- Stores objects by bucket and name. Storage class trades storage cost against access frequency, retrieval and minimum duration.
- BigQuery
- A managed analytical warehouse supports SQL scans and aggregation over large data sets.
- Bigtable
- A wide-column database supports high-throughput, low-latency key-based reads and writes with a well-designed row key.
Practice the guide skills
- Compare Cloud SQL or AlloyDB, Spanner, Firestore, Bigtable, BigQuery and Cloud Storage against transactions, document lookups, key-range reads, large scans and object retrieval. Watch 37:52
- Design one relational record with a key and one document with optional fields. Explain how the access pattern influences a relational or NoSQL choice. Watch 37:27
- Compare Standard, Nearline, Coldline and Archive for monthly versus rare access. Include retrieval, minimum storage duration and the option of Autoclass. Watch 48:32
- Choose between moving a compatible engine, moving to a managed service and converting a schema to a different engine. Validate data and application queries before switching. Watch 46:04
Official objectives for this lesson
Separate the transaction path from analytics
A reservation system has two workload contracts.
Reserve a seat prevent two confirmed bookings for the same seat
Weekly report summarize 18 months of bookings by route and fare
Use the transaction and consistency requirements to choose the operational store. Replicate or load an analytical copy for large historical scans. Specify reporting freshness and reconcile finalized bookings between the systems.
Related lesson · Match storage and databases to access patterns
Select a data service from its access pattern quiz
Answer 3 questions. Check each answer for an explanation.