Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21b7f35fd20f485

Jump to content

Firestore

From Wikipedia, the free encyclopedia

Google Firestore
DeveloperGoogle
ReleaseFebruary 2017; 9 years ago (2017-02)
Written in
C++ (core), Java, Python, Go, Ruby
PlatformGoogle Cloud Platform
TypeDocument-oriented database
LicenseProprietary
Websitecloud.google.com/firestore/

Firestore is a fully managed, enterprise-grade, serverless, document-oriented database service with MongoDB compatibility in the Google Cloud portfolio. Designed to store and query JSON-like document data, Firestore features automatic scaling, high availability, multi-region replication, and strong consistency.

While it is commonly used in conjunction with frontend and mobile applications through the Firebase integration, Firestore operates as a distinct enterprise database within the Google Cloud portfolio, offering dedicated server-side client libraries and an enterprise-grade execution engine for backend services.

History

[edit]

Firestore (formerly known as Cloud Firestore) was originally announced in beta on October 3, 2017, as a next-generation document store succeeding Google Cloud Datastore.[1] It achieved General Availability (GA) on January 31, 2019, launching with a 99.999% availability SLA for multi-region deployments and integration with Stackdriver (now Cloud Monitoring).[2]

Enterprise evolution and milestones

[edit]

To transition Firestore from a mobile-backend-as-a-service (MBaaS) data store into a robust, enterprise-grade database, Google introduced several critical query, API, and architectural updates:

MongoDB API Compatibility (2025): In April 2025, Google announced a public preview of Firestore with MongoDB compatibility, allowing developers to migrate workloads and use existing MongoDB drivers, application code, and tools. This capability achieved General Availability (GA) on August 26, 2025, as part of the newly launched Firestore Enterprise edition.[3]

Pipeline Query Support (2025–2026): In November 2025, Google previewed "Pipeline Operations" on the Enterprise edition. Chaining composable query stages (such as grouping, sorting, filtering, and projecting) brought Firestore's query capabilities closer to relational databases like PostgreSQL. The pipeline operations interface reached General Availability on April 20, 2026.[4]

16MiB Document Support (2026): On April 9, 2026, Google added GA support for 16MiB documents within the Firestore MongoDB compatible API, upgrading the limit from the previous 4MiB ceiling to ensure parity with standard MongoDB limits.[5]

Full-Text Search & Geospatial Search (2026): Concurrently with the General Availability of Pipeline Operations in April 2026, Google introduced native built-in full-text search (tokenizing fields and ranking results using relevance scoring engines) and geospatial search in public preview.[4]

Data Manipulation Language (DML) (2026): In April 2026, pipeline-based update and delete stages (DML) were added to allow bulk updates directly on the database engine without relying on external compute resources like Cloud Functions.[4]

Architecture and technology

[edit]

Firestore is architected as a distributed, multi-master transactional database. It decouples compute from storage, utilizing a high-performance replication layer that guarantees data integrity and high availability.

TrueTime consistency model

[edit]

Unlike many NoSQL databases that opt for eventual consistency to scale out, Firestore offers strong external consistency. It achieves this by sharing its underlying storage and transaction architecture with Google Cloud Spanner.

Firestore utilizes Google's proprietary TrueTime API, which relies on synchronized, highly-available hardware configurations of GPS receivers and atomic clocks deployed across Google's global data centers.[6] TrueTime bounds time-acquisition uncertainty (typically within a few milliseconds), allowing Firestore to assign monotonically increasing commit timestamps to distributed transactions.

This synchronization replaces the need for heavy inter-node coordination during read operations, ensuring that:

Reads are strongly consistent across multi-region replicas.

Transactions maintain serializability globally.

Firebase integration vs. Server-side SDKs

[edit]

A key characteristic of Firestore is its distinct operational separation between server-side development and client-side web or mobile applications.

Comparison of Firestore Developer Interfaces
Interface TypeAccess LayerSupported Environments / PlatformsPrimary Use Case
Server-side Client LibrariesDirect Google Cloud APINode.js, Python, Go, Java, C++, PHP, Ruby, MongoDB driversBackend application logic, microservices, and server-side data processing.
Client-side SDKsFirebase Integration LayeriOS, Android, Web browsers, Flutter, UnityReal-time data synchronization, offline persistence caching, and direct-from-client querying.

Firebase integration

[edit]

For web and mobile clients, Firestore integrates with Firebase. In this architecture, Firebase acts as a secure intermediary and real-time synchronization layer. Client applications use Firebase mobile and web SDKs to connect directly to the database. Security, authorization, and data validation are handled at the schema level via Firebase Security Rules, bypassing the need for an intermediate backend server.

Server-side client libraries

[edit]

For traditional architectures, microservices, or server-side applications, Firestore provides native Google Cloud server-side SDKs. These SDKs bypass the client-centric Firebase synchronization protocols and connect directly to Firestore using Identity and Access Management (IAM) credentials. These libraries are optimized for high-throughput, low-latency transaction processing, and server-side analytics.

See also

[edit]


References

[edit]
  1. Ramel, David (31 January 2019). "Google Launches Cloud Firestore, a Serverless NoSQL Database". ADTmag.
  2. McGrath, Dan (1 February 2019). "NoSQL for the serverless age: Announcing Cloud Firestore general availability and updates". Google Cloud Blog.
  3. "Firestore with MongoDB compatibility is now GA". Google Cloud Blog. 26 August 2025.
  4. 1 2 3 "Firestore levels up: Bringing the power of search and JOINs to NoSQL". The Firebase Blog. 27 April 2026.
  5. "Firestore 16MB Document support for Firestore MongoDB compatible API GA". Google Cloud Documentation. April 2026.
  6. "Understanding consistency in distributed systems". Stack Overflow. 1 August 2019.