Softwr

Databases · head to head

CockroachDB vs Firestore

CockroachDB logo

CockroachDB

Databases

The cloud-native distributed SQL database

From
Free
Free plan
Yes
Firestore logo

Firestore

Databases

Flexible, scalable NoSQL cloud database from Firebase

From
Free
Free plan
Yes

The short version

  • CockroachDB is a cloud-native distributed SQL database.
  • Firestore is free; CockroachDB starts at $0.057/mo.
  • Only CockroachDB lists distributed SQL; only Firestore lists document Model.
  • Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
  • Where Firestore falls short: the no-cost Spark plan caps Standard edition at 50,000 document reads, 20,000 writes and 20,000 deletes per day.

How do CockroachDB and Firestore differ?

CockroachDB and Firestore differ on platforms and year founded (2015 against 2011). Only the attributes on which CockroachDB and Firestore actually diverge.

Attributes where CockroachDB and Firestore differ
AttributeCockroachDBFirestore
PlatformsAWS, GCP, AzureWeb, iOS, Android, Flutter
Founded20152011

Identical on both: starting price (Free), pricing model (Freemium), free tier (Yes), category (Databases).

Which features does each one have?

They share 1 listed feature; 19 appear only for CockroachDB and 15 only for Firestore. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in CockroachDB

  • Distributed SQL
  • Automatic Sharding
  • Multi-region Replication
  • Geo-partitioning
  • Horizontal Scaling
  • Survivability
  • PostgreSQL Compatibility
  • Kubernetes

Only in Firestore

  • Document Model
  • Real-time Updates
  • Offline Support
  • Expressive Queries
  • Multi-region
  • Security Rules
  • Firebase Auth
  • Cloud Functions

Both cover

  • ACID Transactions

What is each one used for?

CockroachDB is most often brought in for distributed SQL database for scalable applications; Firestore for storing structured application data with realtime listeners. The jobs each tool is most often brought in to do.

CockroachDB

  • Distributed SQL database for scalable applicationsnot Firestore
  • Multi-region deployment and failovernot Firestore

Firestore

  • Storing structured application data with realtime listenersnot CockroachDB
  • Backing mobile and web apps with a serverless document databasenot CockroachDB
  • Building offline first apps that sync when connectivity returnsnot CockroachDB

Where do CockroachDB and Firestore fall short?

CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). Firestore's: the no-cost Spark plan caps Standard edition at 50,000 document reads, 20,000 writes and 20,000 deletes per day. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

CockroachDB

  • Basic and Standard tiers limited to AWS and GCP (select regions only)
  • Azure support restricted to Advanced tier only
  • Basic tier limited to 50 million RUs and 10 GiB storage per month
  • Advanced tier starts at $0.60/hour for 4 vCPUs minimum
  • 3 TiB maximum storage on Basic and Standard tiers, 10 TiB per node on Advanced

Firestore

  • The no-cost Spark plan caps Standard edition at 50,000 document reads, 20,000 writes and 20,000 deletes per day
  • The Spark plan caps storage at 1 GiB and network egress at 10 GiB per month
  • Charging is per document read, so a query returning many documents bills for every one of them
  • Going beyond the free thresholds requires the pay as you go Blaze plan billed at Google Cloud rates with no fixed monthly ceiling

How much do CockroachDB and Firestore cost?

CockroachDB has a free plan, with paid plans from $0.057/mo; Firestore is free to use. Plan by plan below, from each vendor's own pricing page.

CockroachDB

Free
  • Standard$0.057/vcpu-hour
  • Mission Critical$0.162/vcpu-hour

Firestore

Free
  • SparkFree
    • 1GB storage
    • 50K reads/day
    • 20K writes/day
  • BlazeFree
    • Pay as you go
    • Unlimited operations
    • Multi-region

Which should you pick?

Choose CockroachDB if

  • You need distributed sql.
  • You want to start without paying.
  • You work on AWS, GCP, Azure.
  • You also want automatic sharding.

Choose Firestore if

  • You need document model.
  • You want to start without paying.
  • You work on Web, iOS, Android, Flutter.
  • You also want real-time updates.

Questions people ask

Is CockroachDB or Firestore better?
It depends on the job. CockroachDB fits distributed SQL database for scalable applications; Firestore fits storing structured application data with realtime listeners. CockroachDB starts at Free and Firestore at Free.
Which is cheaper, CockroachDB or Firestore?
CockroachDB starts at Free and Firestore at Free.
Does CockroachDB or Firestore run on more platforms?
CockroachDB runs on AWS, GCP, Azure. Firestore runs on Web, iOS, Android, Flutter.
Can I use CockroachDB for free?
Both have a free tier, so you can try either at no cost before committing.
What is CockroachDB best used for?
CockroachDB is most often used for distributed sql database for scalable applications, multi-region deployment and failover. Of those, distributed sql database for scalable applications and multi-region deployment and failover are not what Firestore is typically brought in for.
What can CockroachDB do that Firestore cannot?
CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. Firestore covers Document Model, Real-time Updates, Offline Support, Expressive Queries. Both handle ACID Transactions.

Answered from the vendors’ own pages

CockroachDB: What does the free Basic tier include?

The Basic tier is free and includes 50 million RUs and 10 GiB storage per month, with a maximum compute of 30K RU/sec. No credit card is required to start.

Source
Firestore: What are the free limits on Cloud Firestore?

The Spark Plan includes 1 GiB of stored data, 50,000 reads per day, 20,000 writes per day, and 20,000 deletes per day at no cost.

Source
CockroachDB: How much do the paid tiers cost?

Standard tier starts at $0.18 per hour for 2 vCPUs, and Advanced tier starts at $0.60 per hour for 4 vCPUs. Both tiers support additional resources with higher costs for increased compute and storage.

Source
Firestore: What happens when I exceed the Spark Plan free tier?

Exceeding the free tier requires upgrading to the Blaze Plan, which bills based on actual usage through Google Cloud pricing. Charges apply for reads, writes, deletes, and data storage.

Source
CockroachDB: What are the storage limits for each tier?

Basic plan supports up to 3 TiB storage, Standard tier up to 3 TiB, and Advanced tier up to 10 TiB per node with unlimited total storage.

Source
Firestore: Can I use Firestore without a credit card?

Yes, you can use the Spark Plan indefinitely without a credit card. To use the Blaze Plan (pay-as-you-go), a credit card is required.

Source
CockroachDB: Can I get trial credits before paying?

Yes, new users can try CockroachDB free with $400 in credits. The Basic and Standard plans do not require a credit card to start.

Source
Firestore: Is there a trial period for Cloud Firestore?

No trial period is specified. The Spark Plan free tier serves as the trial, with no time limit.

Source
CockroachDB: Do legacy contracts have different pricing?

Customers with annual or multi-year contracts entered before December 1, 2024 can view legacy pricing terms on a separate page, which apply until their contract renewal date.

Source
Share

Related pages

Other head to heads