Match the storage engine to reads and writes
A fleet platform serves one vehicle’s latest state in milliseconds, runs a daily scan across all trips and accepts bookings with relational constraints. Which measurements would you collect before choosing storage?
Match the storage engine to reads and writes
Start with a representative request. A key lookup for one meter, a transaction across two accounts and an aggregate over three years stress different guarantees. Compare correctness first, then latency, throughput, storage class and the cost of the same volume at peak.
In the recording
Choose BigQuery for large analytical scans and another store for frequent transactional row updates.
Work through the decision
A fleet platform serves one vehicle’s latest state in milliseconds, runs a daily scan across all trips and accepts bookings with relational constraints. Which measurements would you collect before choosing storage?
Check your reasoning
Capture lookup keys, scan sizes, update frequency, consistency needs and growth. A warehouse fits large aggregates, a wide-column store fits well-keyed high-volume lookups, and a transactional database handles coordinated updates. Include the cost of reads, writes and retention in the comparison.
Decisions and tradeoffs
- BigQuery
- A columnar analytical warehouse supports large scans and aggregations. Partition filters and column selection can reduce bytes read.
- Bigtable
- A wide-column store supports high-throughput, low-latency key or key-range access. Design keys to distribute activity and support the required reads.
- Spanner
- A relational database with strong consistency and horizontal scaling suits distributed transactions across related records.
- Cloud Storage
- Object storage holds durable files with lifecycle policies. Choose a storage class with retrieval frequency and minimum durations in mind.
Test the services left on the shortlist
Cloud SQL fits familiar transactional engines where their supported scale and availability fit the workload. AlloyDB provides a managed PostgreSQL-compatible option. Firestore supports document-oriented applications. Memorystore can reduce repeated-read latency as a cache. Evaluate durability and consistency requirements before making cached values authoritative. For open lakehouse files, compare BigLake governance and supported query engines with the cost of loading a native warehouse table.
Practice the guide skills
- Measure key lookups, range reads and scan sizes.
- Compare store guarantees for a transactional update and analytical scan.
- Estimate charges as the read/write mix changes.
- Set a retention and retrieval policy for the archive.
Official objectives for this lesson
Related lesson · Match data format, extraction method and serving store
Match the storage engine to reads and writes quiz
Answer 3 questions. Check each answer for an explanation.