Compare / Firestore vs Bigtable

Firestore vs Bigtable

Choose Firestore for document-shaped application data, indexed field queries and transactions across documents. Choose Bigtable for sustained high-throughput access organized around row keys or key ranges, such as device readings. Both scale; database size alone does not decide between them.

In 26 practice questions across 8 practice banks

Professional Cloud Developer Data Storage

You are developing a new mobile game that will be deployed on GKE and Cloud Run as a set of microservices. Currently, there are no projections for the game’s user volume. You need to store the following data types: • Data type 1: leaderboard data • Data type 2: player profiles, chats, and news feed • Data type 3: player clickstream data for BI You need to identify a data storage solution that is easy to use, cost-effective, scalable, and supports offline caching on the user’s device. Which data storage option should you choose for the different data types?

  1. Memorystore lacks offline-capable client libraries.

  2. Spanner has no offline caching, and Bigtable is wrong for BI feeds.

  3. Cloud SQL likewise cannot do device-side offline caching.

  4. Firestore covers leaderboard + profiles; BigQuery covers BI.

Pick an answer to see why each option is right or wrong.

Try 20 questions free

At a glance

FirestoreBigtable
Data modelDocuments in collectionsRows with column families, one row key
QueriesIndexed queries on document fieldsRow-key lookups and scans; GoogleSQL also available
TransactionsTransactions across documentsAtomic operations within a single row
Scale sweet spotApplication data, user profiles, catalogsVery large data with millions of operations per second
OperationsServerlessProvisioned nodes
ClientsMobile and web SDKs, offline sync, real-time listenersServer-side clients, HBase API

Choose Firestore when

  • A web or mobile app needs flexible document storage and real-time updates.
  • You need queries on several fields and ACID transactions.
  • You want serverless scaling without capacity planning.

Choose Bigtable when

  • Throughput and data volume are very large, as with time series or IoT.
  • Access is by row key or contiguous key ranges.
  • You need consistent low latency at sustained high write rates.

Exam tip

A catalog queried by several indexed fields points to Firestore; a device-history service reading device ID and time ranges points to Bigtable. Multi-document transactions also favor Firestore. Bigtable SQL support does not remove the need to design row keys around access patterns.

Official documentation