Back to Databases

Firestore

gcp

Serverless, document-oriented NoSQL database with real-time sync and offline client support.

DATABASES
Google Cloud Platform

Serverless, document-oriented NoSQL database with real-time sync and offline client support.

Click any section above to jump directly to it

What is Firestore?

Google Cloud Firestore is a serverless, document-oriented NoSQL database built for extreme scalability and real-time data synchronization. Firestore stores data in Documents organized into Collections. It automatically indexes all fields, supports multi-document ACID transactions, and scales transparently across multiple datacenters with sub-10ms query performance.

Decision Guide: When to Choose This Service

When to Use Firestore

Use Firestore for mobile and web apps (Firebase), user profile storage, real-time collaborative applications (chat, live inventory), hierarchical JSON document data, and workloads requiring automatic scaling with zero server configuration.

When NOT to Use (Recommended Alternatives)

Do NOT use Firestore for large-scale analytical aggregation queries (use BigQuery) or complex multi-table relational joins with foreign key cascades (use Cloud SQL).

Core Architectural Pillars

Documents & Collections

Documents contain key-value fields and subcollections, forming hierarchical NoSQL document trees.

Real-Time Listeners

Subscribe to document or query changes and receive live data pushes instantly.

Automatic Indexing

Every field in every document is indexed automatically; composite indexes are generated automatically on demand.

Modes

Native Mode (for mobile/web app development with rich security rules) and Datastore Mode (for backend server architectures).