Compare / Spanner vs Bigtable
Spanner vs Bigtable
Both scale far beyond one server, but Spanner is relational with SQL and strongly consistent transactions, while Bigtable is a wide-column NoSQL store tuned for very high throughput by row key.
In 40 practice questions across 6 practice banks
You are developing an internet of things (IoT) application that captures sensor data from multiple devices that have already been set up. You need to identify the global data storage product your company should use to store this data. You must ensure that the storage solution you choose meets your requirements of sub-millisecond latency. What should you do?
-
Spanner is relational scale — cache layers don't fix a write-throughput problem.
-
Bigtable's wide-column design with timestamped rows handles high-velocity device telemetry globally.
-
BigQuery ingestion is an analytical load path — not a high-rate operational write sink.
-
CDN caching accelerates reads — this sensor workload is write-dominant.
Pick an answer to see why each option is right or wrong.
Try 20 questions freeAt a glance
| Spanner | Bigtable | |
|---|---|---|
| Data model | Relational tables, schemas, joins | Sparse wide-column rows keyed by one row key |
| Transactions | ACID across rows, tables and regions | Atomic within a single row only |
| Query language | SQL (GoogleSQL or PostgreSQL interface) | Row-key lookups and range scans; no SQL joins |
| Strength | Global consistency with horizontal scale | Massive throughput at single-digit millisecond latency |
| Typical use | Ledgers, orders, inventory, user accounts at scale | Time series, IoT telemetry, ad tech, recommendation data |
Choose Spanner when
- You need relational structure and transactions across multiple rows or regions.
- Strong consistency matters more than raw write throughput.
- The application is a system of record that must scale globally.
Choose Bigtable when
- Data arrives at very high volume and is read by key or key range.
- The schema is sparse or changes often, and multi-row transactions are not needed.
- It is time series, IoT or analytics-serving data, or an HBase migration.
Exam tip
Transactions, joins and "consistency" point to Spanner. "Time series", "millions of writes per second" and "HBase" point to Bigtable. Neither is the answer for ad-hoc analytics; that is BigQuery.
Practice banks covering this comparison
Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.
More comparisons
- BigQuery vs Bigtable
- Spanner vs Cloud SQL
- Firestore vs Bigtable
- Dataflow vs Dataproc
- Cloud Run vs GKE
- Cloud Composer vs Workflows
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Run functions vs Cloud Run services
- Cloud Armor vs VPC firewall rules
- Memorystore vs Firestore
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Compute Engine vs GKE
- BigQuery vs Cloud SQL
- Firestore vs Cloud SQL
- Dataproc vs BigQuery
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT