What is
CockroachDB
?
CockroachDB is a distributed SQL database that replicates data across nodes, zones and regions, scales by adding nodes and accepts PostgreSQL-compatible clients. It can be self-hosted or run as a managed cloud service.
At a glance
Attribute | Value |
|---|---|
Primary use case | Distributed SQL database for resilient, globally scaled transactional workloads |
Deployment type | Fully managed cloud, in your own cloud account, or self-hosted (Kubernetes, on-premises, hybrid) |
Pricing model | Usage-based, per vCPU-hour metered by the minute: Standard from $0.057/vCPU-hr, Mission Critical from $0.162/vCPU-hr (AWS us-east-1; varies by region); add-ons extra; 30-day trial with $400 credit |
API compatibility | PostgreSQL wire protocol; most PostgreSQL syntax, data types, drivers and ORMs |
Supported integrations | Including Kafka (via change data capture), PostgreSQL drivers and ORMs, Kubernetes, AWS, Google Cloud and Azure marketplaces |
Cloud provider | AWS, Google Cloud, Azure (Azure on Mission Critical only) |
Key metrics | Vendor-reported: 5,000-node largest deployment; DoorDash 1.9 PB live data; DoorDash 1.2M queries/second |
AEP branch | Tooling |
AEP category | Resources |
AEP subcategory | Data |
Profile
CockroachDB runs as a single distributed SQL system rather than a centralized database. Raft consensus keeps the copies of each piece of data in step across nodes, zones and regions. Cockroach Continuum is a newer product from Cockroach Labs built on the same engine. It adds a management and operations layer that runs many databases as one system, with usage-based storage called Cockroach Plenum.
Focus
Teams that need to survive failures, scale rapidly and serve globally distributed customers. It is aimed at mission-critical systems in financial services, payments, gaming, SaaS, healthcare, identity and AI infrastructure.
Background
Built by Cockroach Labs, founded in 2015 by former Google engineers Spencer Kimball, Peter Mattis and Ben Darnell after the first design appeared on GitHub in 2014. Benchmark Capital led a $6.3 million seed round. The company reports $633M total raised.
Features
Horizontal scaling without manual sharding
Every node accepts reads and writes, and adding nodes increases capacity. Data rebalances automatically, and hotspot detection adjusts data distribution to keep performance steady as load grows.
PostgreSQL compatibility
Supports the PostgreSQL wire protocol and most PostgreSQL syntax, data types, drivers and ORMs. Most applications connect with little or no code change.
Change data capture
Streams every change in your data to systems like Kafka in real time. It is a paid add-on in both Continuum editions.
Physical cluster replication
Keeps a continuously synced copy of a cluster in another region for failover. It is offered as a Mission Critical add-on with limited access.
Cluster virtualization
Runs many isolated databases on shared infrastructure, so each app gets its own database without a separate cluster. It is a Mission Critical add-on in preview.
Aegis AI operator
Watches databases, flags issues and recommends fixes for sizing, placement and rebalancing rather than acting on its own. Aegis works with all CockroachDB deployments.
Pros and cons
Pros
A cluster can lose a machine, data center or region and still keep every transaction correct.
Teams can choose between self-hosting, running in their own cloud account with vendor help, or fully managed service.
On Standard, usage-based storage bills only the data stored, with no capacity to reserve or resize.
Billing depends on what is provisioned and stored, not on query volume.
Existing CockroachDB workloads keep running unchanged, with no forced migration to Continuum.
Cons
A few PostgreSQL features behave differently in a distributed system, so some applications may need changes.
The edition is fixed per cluster. Switching between Standard and Mission Critical means creating a new cluster and restoring from backup.
Compute is billed on provisioned vCPUs, and data transfer leaving the cluster is billed separately.
Usage-based storage on Mission Critical is a single-region preview with feature limitations and is not recommended for production.
On the self-hosted option, the team runs and operates the clusters itself.
FAQs
What is CockroachDB?
CockroachDB is a distributed SQL database from Cockroach Labs. It is built for workloads that must stay available and keep transactions consistent across infrastructure and locations.
How much does CockroachDB cost?
The managed service, Cockroach Continuum, charges per vCPU-hour, plus storage, backups, data transfer and any add-ons. Standard starts from $0.057 per vCPU-hour and Mission Critical from $0.162 per vCPU-hour. Rates vary by region. New Cloud organizations get a 30-day trial with $400 in credit. Annual and committed-use contracts qualify for volume discounts.
Can CockroachDB be self-hosted?
Yes. It can run anywhere, including Kubernetes, on-premises and hybrid environments. It can also run in your own cloud account with Cockroach Labs helping operate it, or fully managed on AWS, Google Cloud or Azure.
Does CockroachDB work with PostgreSQL tools?
Yes. It uses the PostgreSQL wire protocol, and most PostgreSQL drivers and ORMs work with it. Some features behave differently because the database is distributed.
How is Cockroach Continuum different from CockroachDB?
Continuum is a product built on the CockroachDB engine. It adds database virtualization, consumption billing and the Aegis operator. It is available to new organizations from September 15, 2026. Existing CockroachDB Cloud customers keep their current setup and pricing unless they opt in.
What support does Cockroach Labs offer?
Customers with an active subscription get technical support through an online Support Center. Requests are prioritized from P1 to P4 by business impact. P1 response targets are 1 hour on Standard and 30 minutes on Mission Critical. Professional Services cover migration help, best practices and performance tuning.
