Databases · head to head
CockroachDB vs SurrealDB

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

SurrealDB
Databases
Multi-model database combining documents, graphs, vectors and time-series
- 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 $0.192/mo.
- Only CockroachDB lists distributed SQL; only SurrealDB lists hybrid retrieval.
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
- Where SurrealDB falls short: the listed $0.192/node/hr Scale pricing lacks transparent higher-tier rates, requiring a sales conversation for full production sizing.
How do CockroachDB and SurrealDB differ?
CockroachDB and SurrealDB differ on pricing model (Freemium against Usage-based), platforms and year founded (2015 against 2022). Only the attributes on which CockroachDB and SurrealDB actually diverge.
| Attribute | CockroachDB | SurrealDB |
|---|---|---|
| Pricing model | Freemium | Usage-based |
| Platforms | AWS, GCP, Azure | Web, API, Windows, macOS, Linux |
| Founded | 2015 | 2022 |
Identical on both: starting price (Free), free tier (Yes), category (Databases).
Which features does each one have?
They share no listed features; 20 appear only for CockroachDB and 6 only for SurrealDB. 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 SurrealDB
- Multi-model engine
- ACID transactions
- Hybrid retrieval
- Horizontal scaling
- Multi-region disaster recovery
- FIPS-compliant cryptography
What is each one used for?
CockroachDB is most often brought in for distributed SQL database for scalable applications; SurrealDB for AI agent memory and retrieval-augmented generation. The jobs each tool is most often brought in to do.
CockroachDB
- Distributed SQL database for scalable applicationsnot SurrealDB
- Multi-region deployment and failovernot SurrealDB
SurrealDB
- AI agent memory and retrieval-augmented generationnot CockroachDB
- Applications needing documents, graphs and vectors in one databasenot CockroachDB
- Knowledge graph construction from unstructured datanot CockroachDB
- Regulated workloads requiring SOC2/ISO27001/HIPAA-eligible hostingnot CockroachDB
Where do CockroachDB and SurrealDB fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). SurrealDB's: HIPAA compliance is only available as an Enterprise add-on rather than included in standard paid tiers. 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
SurrealDB
- The listed $0.192/node/hr Scale pricing lacks transparent higher-tier rates, requiring a sales conversation for full production sizing
- As a newer multi-model database, it has a smaller ecosystem of drivers, ORMs and community tooling than established single-model databases
- HIPAA compliance is only available as an Enterprise add-on rather than included in standard paid tiers
- Combining multiple data models in one engine can add query-planning complexity compared to purpose-built single-model databases
How much do CockroachDB and SurrealDB cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; SurrealDB has a free plan, with paid plans from $0.192/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
SurrealDB
Free- StartFree
- 1 free instance, then from $0.021/hr
- 1GB storage free forever
- Vertical scaling to terabytes
- Scale$0.192/mo
- $0.192/node/hr
- Production-grade fault tolerance
- Horizontal scaling to petabytes
- EnterpriseOn request
- Self-hosted, custom pricing
- Clustered fault-tolerant deployments
- FIPS-compliant cryptography
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 SurrealDB if
- You need multi-model engine.
- You want to start without paying.
- You work on Web, API, Windows, macOS, Linux.
- You also want acid transactions.
Questions people ask
- Is CockroachDB or SurrealDB better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; SurrealDB fits aI agent memory and retrieval-augmented generation. CockroachDB starts at Free and SurrealDB at Free.
- Which is cheaper, CockroachDB or SurrealDB?
- CockroachDB starts at Free and SurrealDB at Free.
- Does CockroachDB or SurrealDB run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. SurrealDB runs on Web, API, Windows, macOS, Linux.
- 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 SurrealDB is typically brought in for.
- What can CockroachDB do that SurrealDB cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. SurrealDB covers Multi-model engine, ACID transactions, Hybrid retrieval, Horizontal scaling.
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.
SourceSurrealDB: What does SurrealDB cost?
SurrealDB Cloud's Start plan is free with one free instance (then from $0.021/hr), the Scale plan runs $0.192/node/hr for production workloads, and Enterprise self-hosted deployments use custom pricing.
SourceCockroachDB: 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.
SourceSurrealDB: Is there a free plan and what are its limits?
Yes, the Start plan includes one free instance with 1GB of storage free forever and 1GB of outbound data transfer per month, aimed at prototypes and development.
SourceCockroachDB: 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.
SourceSurrealDB: How is billing handled?
Customers are invoiced monthly based on actual usage in a pay-as-you-go model with no long-term commitments, though commitment-based discounts are available.
SourceCockroachDB: 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.
SourceCockroachDB: 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.
SourceRelated 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 Apache Ignite
- CockroachDB vs EDB Postgres
- CockroachDB vs Azure Cosmos DB
- CockroachDB vs MariaDB
- CockroachDB vs Meilisearch
- CockroachDB vs MongoDB Atlas
- CockroachDB vs Google Cloud Spanner
- CockroachDB vs Apache Pulsar
- CockroachDB vs Microsoft SQL Server
- CockroachDB vs Cassandra
- CockroachDB vs ArangoDB
- CockroachDB vs Turso
- CockroachDB vs MongoDB
- CockroachDB vs Neo4j
- CockroachDB vs Dgraph
- CockroachDB vs MotherDuck
- CockroachDB vs Weaviate
- CockroachDB vs Vespa
- CockroachDB vs Zilliz
- CockroachDB vs Pinecone
- CockroachDB vs Amazon Neptune
- CockroachDB vs TimescaleDB
- CockroachDB vs Apache Pinot
- CockroachDB vs Apache Spark
- CockroachDB vs BigQuery
- CockroachDB vs Chroma
- CockroachDB vs DataGrip
- CockroachDB vs Milvus
- SurrealDB vs YugabyteDB
- SurrealDB vs PostgreSQL
- SurrealDB vs SingleStore
- SurrealDB vs Google Cloud SQL
- SurrealDB vs Amazon Aurora
- SurrealDB vs Neon
- SurrealDB vs Oracle Database
- SurrealDB vs TiDB
- SurrealDB vs Apache Ignite
- SurrealDB vs EDB Postgres
- SurrealDB vs Azure Cosmos DB
- SurrealDB vs MariaDB
- SurrealDB vs Meilisearch
- SurrealDB vs MongoDB Atlas
- SurrealDB vs Google Cloud Spanner
- SurrealDB vs Apache Pulsar
- SurrealDB vs Microsoft SQL Server
- SurrealDB vs Cassandra
- SurrealDB vs ArangoDB
- SurrealDB vs Turso
- SurrealDB vs MongoDB
- SurrealDB vs Neo4j
- SurrealDB vs Dgraph
- SurrealDB vs MotherDuck
- SurrealDB vs Weaviate
- SurrealDB vs Vespa
- SurrealDB vs Zilliz
- SurrealDB vs Pinecone
- SurrealDB vs Amazon Neptune
- SurrealDB vs TimescaleDB
- SurrealDB vs Apache Pinot
- SurrealDB vs Apache Spark
- SurrealDB vs BigQuery
- SurrealDB vs Chroma
- SurrealDB vs DataGrip
- SurrealDB vs Milvus
