
CockroachDB
Cloud native distributed SQL database for high availability
The Lens
It speaks PostgreSQL wire protocol, so your existing Postgres tools and drivers work with it. Go. The distributed architecture means your data lives on multiple machines simultaneously, and the database handles consistency (serializable isolation by default, which is stronger than most). Automatic sharding, automatic rebalancing, geo-partitioning for compliance.
CockroachDB has a complicated licensing history. The core is now under a Business Source License (BSL). You can use it freely for most purposes, but you can't offer it as a managed service. CockroachDB Serverless has a free tier: 10 GiB storage, 50M request units/month.
Self-hosting is free under BSL. Minimum production cluster: 3 nodes. On modest cloud VMs, that's $50-150/mo. The ops burden is moderate. CockroachDB handles a lot of distributed complexity for you, but you still need to monitor rebalancing, node health, and storage. Solo developers: the serverless free tier is solid for prototyping. Small teams: self-host 3 nodes or use serverless. Medium to large: this is where CockroachDB earns its keep: multi-region, zero-downtime migrations, strong consistency.
The catch: single-node performance is slower than plain Postgres. The distributed overhead means simple queries pay a latency tax. If your app fits on one machine and you don't need multi-region, you're paying complexity costs for resilience you don't need yet.
Free vs Self-Hosted vs Paid
open core### Free Tier CockroachDB Serverless: 10 GiB storage, 50M request units/month, no credit card required. Good for prototyping and small apps.
### Self-Hosted Business Source License, free to use, free to self-host, but you cannot offer it as a managed database service to third parties. 3-node minimum for production. Cloud VM costs: $50-150/mo depending on instance size.
### Paid Cloud CockroachDB Dedicated starts at ~$295/mo for a basic 3-node cluster. Enterprise features (SSO, RBAC, audit logging) require Dedicated or Enterprise tier. Serverless pay-as-you-go is $1/10M request units beyond the free tier.
### When to Pay Pay when you need multi-region deployments, SLAs, or enterprise auth. The serverless free tier handles surprising workloads. Self-host when you want full control and the BSL terms work for you.
Generous serverless free tier for small apps. Self-host free under BSL. Pay ~$295/mo+ for managed multi-region.
Similar Tools
About
- Stars
- 31,994
- Forks
- 4,108
Explore Further
More tools in the directory
Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.



