Updated

CockroachDB

Distributed SQL database that speaks the PostgreSQL wire protocol and replicates data across nodes and regions, self-hosted or on Cockroach Labs' managed cloud.

2 makers' products we track use CockroachDB.

Self-hostableNo free tierPaid from $0.092 per vCPU-hour (Standard, AWS us-east-1)

Profile checked

Works with AI agents:llms.txt
Ask your AI about this, with this page as the source:ChatGPT ↗Claude ↗Perplexity ↗
Recent changesFollow CockroachDB (RSS)
  • Oct 2026 Now covered: CockroachDB, for database.

How makers use CockroachDB

Makers' products we track use CockroachDB for database (2).

What CockroachDB is used for

Database · Managed database →A Postgres-compatible SQL database that keeps serving reads and writes when a node, zone or whole region fails, managed or self-hosted.Trade-off: Compatible with Postgres but not identical, so some extensions and features don't carry over; the managed service bills provisioned vCPUs even when idle and has only a 30-day trial, and self-hosting needs a license key.

CockroachDB vs the alternatives makers chose

For database, 2 of the 1,263 makers' products we know the choice of picked CockroachDB (0%), behind Supabase (45%).

OptionMakers' products2026 launchesFree forAt 10,000 usersOpen source
Supabase573 45%63%~500 users$25/mo · ProYes
Firebase187 15%9%~2,000 users$9.66/mo · Blaze (pay as you go)No
MongoDB128 10%5%~500 users$58/mo · Atlas Dedicated M10No
PostgreSQL98 8%1%——Yes
Neon96 8%11%None$22/mo · LaunchYes
Convex50 4%7%~630 users$29/mo · ProfessionalYes
CockroachDB2 0%0%——No

For database: how many of the 1,263 makers' products we know the database of chose each option, and the share among the 397 launched in 2026, since a tool that came first has products from every year, and what each costs at 10,000 users.

Costs are the cheapest plan that fits, from each vendor's pricing page, at the usage our stack planner assumes for a product with that many users. Free for: the users its cheapest plan a business can use stays free for.

When to use CockroachDB, and when not

Something else fits better if

  • You want the database, auth and file storage in one project, and plain SQL you can take elsewhere: Supabase.
  • You're building a live, collaborative app entirely in TypeScript: Convex.
  • Your traffic is bursty or you run many preview deploys, and idle hours shouldn't cost much: Neon.
  • You already run your own server and want a flat monthly cost: PostgreSQL.
From each decision's guide, written from what makers' products chose and why.

CockroachDB is a relational database built to keep running when a machine, zone or whole region goes down. It is made by Cockroach Labs, which sells the managed version, now called Cockroach Continuum, and licenses the self-hosted software under its own CockroachDB Software License.

More about CockroachDB

The model to understand: data is split into ranges, and each range is copied to several nodes. A write commits only once a quorum of those copies agrees, so a three-node cluster tolerates one node failing and a five-way replica set tolerates two. Every node accepts reads and writes, and you talk to the cluster with ordinary SQL over the PostgreSQL wire protocol, using most Postgres drivers and ORMs.

For a small team: one logical database that can span several regions on AWS, GCP or Azure, row-level security and column-level encryption on the Standard edition, change data capture into systems like Kafka as an add-on, and the MOLT toolkit for moving schemas and data in from PostgreSQL, MySQL and Oracle.

Limits: it is Postgres-compatible, not Postgres. Range types, foreign data wrappers, session-scoped advisory locks and XML functions are not supported, and every table needs a primary key. The managed service bills for provisioned vCPUs whether or not you query them, with a 30-day trial rather than an ongoing free tier, and running it yourself in production needs a license key.

How CockroachDB itself is built

6 tools, from its own code, website and Product Hunt page.

What Hacker News says about CockroachDB

On Hacker News, 15% of comments about CockroachDB recommend it and 7% criticize it: net praise +8%, 11th best liked of 16 tools HN discusses for database.

By year

YearComments choosing it, per monthNet praise
20231.5+18%
20240.3−12%
20251.7+9%
2026 (8 mo)0.80%

In their words

  • “I love these new distributed DBs. CockroachDB is one of them.” HN, Jan 2025
  • “it would probably be yugabyte or cockroachdb. They're simply better at doing what rqlite is trying to do.” HN, Aug 2024
  • “we've already been burned by Nomad (BSL relicense), Redis (SSPL relicense), and CockroachDB (custom enterprise relicense)” HN, Jan 2025

Hacker News comments January 2023 to August 2026 that name CockroachDB in a sentence like "I use" or "we moved to", Claude read a sample of 78 and the counts scale it to all of them; net praise is comments recommending it minus comments criticizing it, as a share of all comments about it. How it's counted, and how HN compares with makers.

Who uses it

2 makers' products, each linked to the source that shows it. The best known on Product Hunt: Ruby (339 followers).

Ruby
RubyFinancial operating system for E-Commerce businesses

“Highly available and removes a lot of devops work around DB managment.”

DatabaseMaker says so · source ↗
Logaflow
Logaflow

“Logaflow is a powerful feedback tool and we know that the number of user feedback can be huge (after all, not every product is perfect), we use CockroachDB as a database to support the records.”

DatabaseMaker says so · source ↗

Alternatives to CockroachDB

All alternatives by situation →

Further reading

Questions makers ask about CockroachDB

What is CockroachDB used for?

Distributed SQL database that speaks the PostgreSQL wire protocol and replicates data across nodes and regions, self-hosted or on Cockroach Labs' managed cloud. Makers' products we track use it for database (2).

What are the alternatives to CockroachDB?

For database, the other options makers' products we track chose most are Supabase (573), Firebase (187), MongoDB (128), PostgreSQL (98), Neon (96), Convex (50). Open source or self-hostable among them: Supabase, MongoDB, PostgreSQL, Neon, Convex. Each alternative, with the situation it fits, is on the CockroachDB alternatives page.

Is there a free tier on the managed service?

New Cloud organizations get a 30-day trial with $400 in credit, and Standard needs no credit card. When the trial ends or the credit runs out, clusters are paused; you have 30 days to add a payment method before they are deleted. source ↗

Do I pay for a cluster that sits idle?

Yes. Billing is per minute for the vCPUs you provision plus storage, backups, data transfer and add-ons, not for how much you query. To cut costs you scale down or delete the cluster, trim storage and backup retention, or turn off add-ons. source ↗

Can I use my Postgres driver and ORM?

CockroachDB speaks version 3.0 of the PostgreSQL wire protocol and works with most PostgreSQL drivers, ORMs and tools. Some features are missing or behave differently, including range types, foreign data wrappers, session-scoped advisory locks and dropping a primary key, so porting an app can mean changing those statements. source ↗

Can I self-host it for free?

The software needs a license key except for limited non-production use; single-node clusters for development need no key, and clusters without one get a 7-day grace period. The Enterprise Free license costs nothing for businesses under $10M in annual revenue, must be renewed every year, and requires telemetry, otherwise the cluster is throttled after 7 days. source ↗

How do I move an existing database onto CockroachDB?

Cockroach Labs provides the MOLT toolkit, which covers converting the schema, bulk-loading data, optionally replicating ongoing changes, and verifying consistency before you cut traffic over. Supported sources include PostgreSQL, MySQL and Oracle. source ↗

Can I switch between Standard and Mission Critical later?

Not in place. The edition is set per cluster, so you create a new cluster in the other edition and back up and restore your data into it. source ↗

Is CockroachDB free?

No permanent free tier; paid use starts at $0.092 per vCPU-hour (Standard, AWS us-east-1). source ↗

Is CockroachDB open source or self-hostable?

Not open source, and you can self-host it. source ↗

Can AI coding agents work with CockroachDB?

It serves an llms.txt docs index.

Who uses CockroachDB?

2 makers' products we track, each with a source. The best known of them on Product Hunt: Ruby (339 followers). source ↗