Databases · head to head
CockroachDB vs Convex

CockroachDB
Databases
The cloud-native distributed SQL database
- From
- Free
- Free plan
- Yes

Convex
Databases
Reactive backend combining a document database, TypeScript server functions and live queries, source-available under the Functional Source Licence.
- From
- Free
- Free plan
- Yes
The short version
- CockroachDB is a cloud-native distributed SQL database.
- Free plans on both; paid from $0.057/mo and $25/mo.
- Only CockroachDB lists distributed SQL; only Convex lists reactive queries.
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
How do CockroachDB and Convex differ?
CockroachDB and Convex differ on pricing model (Freemium against Subscription) and platforms (AWS, GCP, Azure against Web). Only the attributes on which CockroachDB and Convex actually diverge.
| Attribute | CockroachDB | Convex |
|---|---|---|
| Pricing model | Freemium | Subscription |
| Platforms | AWS, GCP, Azure | Web |
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Not yet recorded: founded for Convex.
Which features does each one have?
They share no listed features; 20 appear only for CockroachDB and 10 only for Convex. 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
- ACID Transactions
- Horizontal Scaling
- Survivability
- PostgreSQL Compatibility
Only in Convex
- Reactive queries
- TypeScript server functions
- ACID transactions
- Document database
- Scheduling and workflows
- File storage
- Text and vector search
- End-to-end types
What is each one used for?
CockroachDB is most often brought in for distributed SQL database for scalable applications. The jobs each tool is most often brought in to do.
CockroachDB
- Distributed SQL database for scalable applicationsnot Convex
- Multi-region deployment and failovernot Convex
Convex
- Collaborative applications where several users see the same data and every client must reflect a change immediatelynot CockroachDB
- Agent backends that need durable state, scheduled work and transactional writes without assembling a queue, a database and a cachenot CockroachDB
- Small product teams who need a complete backend, including auth integration, file storage and subscriptions, without hiring infrastructure engineersnot CockroachDB
- Prototypes that must become production without a rewrite of the data layer, where end-to-end TypeScript types remove a class of integration bugsnot CockroachDB
Where do CockroachDB and Convex fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). 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
Convex
- The Functional Source Licence is not an OSI open source licence: competing use is prohibited until each release reaches its second anniversary and converts to Apache 2.0, so you may self-host but you may not build a service on it
- Transactions are bounded at one second of user code, 16 MiB read and written, 32,000 documents scanned and 16,000 written, so every backfill, migration or bulk import has to be chunked into scheduled batches rather than written as a single operation
- There is no SQL and no query planner; you declare up to 32 indexes per table and traverse them, and joins are loops in TypeScript, so an unanticipated access pattern requires a schema and index change rather than a new query
- It is not an analytical database, so reporting means streaming data out to a warehouse and BI tools cannot be pointed at Convex directly, which adds a pipeline the architecture diagram did not originally include
- The application is written against Convex's function and client APIs rather than a standard protocol, so leaving means rewriting the data access layer and replacing the reactivity model, not repointing a connection string
How much do CockroachDB and Convex cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; Convex has a free plan, with paid plans from $25/mo. Plan by plan below, from each vendor's own pricing page.
CockroachDB
Free- Standard$0.057/vcpu-hour
- Mission Critical$0.162/vcpu-hour
Convex
Free- Free & StarterFree
- Supports 1-6 developers
- Reactive database
- File storage
- Professional$25
- Supports up to 20 developers
- All Starter features
- Log streaming
- Business & Enterprise$2,500/month minimum
- Supports 50+ developers
- SAML/SSO
- Service SLAs
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 Convex if
- You need reactive queries.
- You want to start without paying.
- You also want typescript server functions.
Questions people ask
- Is CockroachDB or Convex better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; Convex fits collaborative applications where several users see the same data and every client must reflect a change immediately. CockroachDB starts at Free and Convex at Free.
- Which is cheaper, CockroachDB or Convex?
- CockroachDB starts at Free and Convex at Free.
- Does CockroachDB or Convex run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. Convex runs on Web.
- 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 Convex is typically brought in for.
- What can CockroachDB do that Convex cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. Convex covers Reactive queries, TypeScript server functions, ACID transactions, Document database.
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.
SourceConvex: Is Convex open source?
It is source-available under FSL-1.1-Apache-2.0. You may read, modify and self-host it, but competing use is prohibited until each release converts to Apache 2.0 on its second anniversary.
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.
SourceConvex: Can I self-host it?
Yes. The backend, dashboard and CLI can run on your own infrastructure, with most of the features of the cloud product. Self-hosted instances include a telemetry beacon that can be disabled.
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.
SourceConvex: Does it support SQL?
No. Data is accessed through a TypeScript query builder over declared indexes. Relationships are traversed in code, which is explicit and type-safe but means no ad hoc querying.
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.
SourceConvex: What happens if a mutation exceeds the limits?
It fails rather than running longer, so bulk work must be split into batches and scheduled. The limits are per transaction: one second of user code, 16 MiB read and written, 32,000 documents scanned and 16,000 written.
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.
SourceConvex: How does reactivity actually work?
Queries are deterministic functions and Convex records the data each one read. When a mutation changes that data, affected queries are re-run and subscribed clients receive the new result, so cache invalidation is handled by the platform.
Related pages
More on CockroachDB
Other head to heads
- CockroachDB vs YugabyteDB
- CockroachDB vs PostgreSQL
- CockroachDB vs SingleStore
- CockroachDB vs Google Cloud SQL
- CockroachDB vs Amazon Aurora
- CockroachDB vs Neon
- CockroachDB vs Oracle Database
- CockroachDB vs TiDB
- CockroachDB vs Azure Cosmos DB
- CockroachDB vs Nile
- CockroachDB vs Aiven
- CockroachDB vs Cassandra
- CockroachDB vs Meilisearch
- CockroachDB vs MongoDB Atlas
- CockroachDB vs NATS
- CockroachDB vs Pinecone
- CockroachDB vs Solace PubSub+
- CockroachDB vs Google Cloud Spanner
- CockroachDB vs Supabase
- CockroachDB vs Firebase Realtime Database
- CockroachDB vs Readyset
- CockroachDB vs DynamoDB
- CockroachDB vs LanceDB
- CockroachDB vs Xata
- CockroachDB vs FaunaDB
- CockroachDB vs OpenSearch
- CockroachDB vs BigQuery
- CockroachDB vs Materialize
- CockroachDB vs Dragonfly
- CockroachDB vs Instaclustr
- CockroachDB vs PgBouncer
- CockroachDB vs Privacera
- CockroachDB vs RavenDB
- CockroachDB vs Tinybird
- CockroachDB vs turbopuffer
- Convex vs YugabyteDB
- Convex vs PostgreSQL
- Convex vs SingleStore
- Convex vs Google Cloud SQL
- Convex vs Amazon Aurora
- Convex vs Neon
- Convex vs Oracle Database
- Convex vs TiDB
- Convex vs Azure Cosmos DB
- Convex vs Nile
- Convex vs Aiven
- Convex vs Cassandra
- Convex vs Meilisearch
- Convex vs MongoDB Atlas
- Convex vs NATS
- Convex vs Pinecone
- Convex vs Solace PubSub+
- Convex vs Google Cloud Spanner
- Convex vs Supabase
- Convex vs Firebase Realtime Database
- Convex vs Readyset
- Convex vs DynamoDB
- Convex vs LanceDB
- Convex vs Xata
- Convex vs FaunaDB
- Convex vs OpenSearch
- Convex vs BigQuery
- Convex vs Materialize
- Convex vs Dragonfly
- Convex vs Instaclustr
- Convex vs PgBouncer
- Convex vs Privacera
- Convex vs RavenDB
- Convex vs Tinybird
- Convex vs turbopuffer
