Firestore
Serverless, document-oriented NoSQL database with real-time sync and offline client support.
Serverless, document-oriented NoSQL database with real-time sync and offline client support.
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
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.
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 contain key-value fields and subcollections, forming hierarchical NoSQL document trees.
Subscribe to document or query changes and receive live data pushes instantly.
Every field in every document is indexed automatically; composite indexes are generated automatically on demand.
Native Mode (for mobile/web app development with rich security rules) and Datastore Mode (for backend server architectures).