Databases · head to head
CockroachDB vs DynamoDB

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

DynamoDB
Databases
AWS-only managed key-value and document database with fixed per-partition throughput limits and no ad hoc queries.
- 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.625/mo.
- Only CockroachDB lists distributed SQL; only DynamoDB lists managed and serverless.
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
How do CockroachDB and DynamoDB differ?
CockroachDB and DynamoDB differ on pricing model (Freemium against Usage-based), platforms (AWS, GCP, Azure against AWS) and year founded (2015 against 2006). Only the attributes on which CockroachDB and DynamoDB actually diverge.
| Attribute | CockroachDB | DynamoDB |
|---|---|---|
| Pricing model | Freemium | Usage-based |
| Platforms | AWS, GCP, Azure | AWS |
| Founded | 2015 | 2006 |
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 10 only for DynamoDB. 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 DynamoDB
- Managed and serverless
- Predictable latency
- On-demand or provisioned capacity
- Global secondary indexes
- Transactions
- DynamoDB Streams
- Global tables
- Point-in-time recovery
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 DynamoDB
- Multi-region deployment and failovernot DynamoDB
DynamoDB
- High-volume keyed workloads such as sessions, shopping carts, device state or user profiles where the access pattern is fixed and knownnot CockroachDB
- Traffic that spikes unpredictably, where on-demand capacity absorbs a burst without a capacity-planning exercisenot CockroachDB
- Serverless applications on Lambda, where an HTTP-based datastore avoids the connection pooling problem relational databases havenot CockroachDB
- Event or telemetry ingestion where writes vastly outnumber reads and each record is retrieved by a known identifiernot CockroachDB
Where do CockroachDB and DynamoDB 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
DynamoDB
- Access patterns must be designed into the key schema before launch; a query nobody anticipated needs a new global secondary index, which is a full extra copy of the projected attributes billed as storage and as writes, or an offline migration
- Global secondary indexes are eventually consistent and cannot be read strongly, so a read-after-write against an index can legitimately miss the item that was just written, and application code must be written to tolerate that
- Per-partition throughput is capped at roughly 3,000 read and 1,000 write units, so a hot key throttles even when the table has spare capacity overall, and the only real fix is changing the key design to spread the load
- Items are limited to 400 KB and query results paginate at 1 MB, so large or list-shaped data has to be split, offloaded to S3 with a pointer, or read through pagination loops that complicate every consumer
- It runs only on AWS and the API is proprietary rather than a standard, so moving the data layer means rewriting it; ScyllaDB's Alternator is the only meaningfully compatible target and it brings a much smaller ecosystem
How much do CockroachDB and DynamoDB cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; DynamoDB has a free plan, with paid plans from $0.625/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
DynamoDB
Free- On-Demand CapacityOn request
- Pay-per-request pricing with automatic scaling
- Read: 0.5 RRU per 4 KB (eventually consistent), 1 RRU per 4 KB (strongly consistent), 2 RRU per 4 KB (transactional)
- Write: 1 WRU per 1 KB
- Provisioned CapacityOn request
- Fixed hourly charges based on reserved capacity
- RCU rate: $0.00013 per hour (Standard)
- WCU rate: $0.00065 per hour (Standard)
- Standard Table Class Storage$0.25/per gb/month
- $0.25 per GB/month after free tier
- First 25 GB free per month (free tier)
- Standard-Infrequent Access Table Class$0.1/per gb/month
- $0.10 per GB/month
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 DynamoDB if
- You need managed and serverless.
- You want to start without paying.
- You work on AWS.
- You also want predictable latency.
Questions people ask
- Is CockroachDB or DynamoDB better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; DynamoDB fits high-volume keyed workloads such as sessions, shopping carts, device state or user profiles where the access pattern is fixed and known. CockroachDB starts at Free and DynamoDB at Free.
- Which is cheaper, CockroachDB or DynamoDB?
- CockroachDB starts at Free and DynamoDB at Free.
- Does CockroachDB or DynamoDB run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. DynamoDB runs on AWS.
- 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 DynamoDB is typically brought in for.
- What can CockroachDB do that DynamoDB cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. DynamoDB covers Managed and serverless, Predictable latency, On-demand or provisioned capacity, Global secondary indexes.
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.
SourceDynamoDB: On-demand or provisioned capacity?
On-demand suits unpredictable or spiky traffic and removes capacity planning. Provisioned with autoscaling is considerably cheaper for steady high-volume workloads. Tables can be switched between them, though not arbitrarily often.
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.
SourceDynamoDB: Can I run DynamoDB outside AWS?
No. DynamoDB Local exists for development and testing only. For a production-compatible alternative elsewhere, ScyllaDB's Alternator implements the DynamoDB API, but it is a different system with a different ecosystem.
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.
SourceDynamoDB: Can I run ad hoc queries or analytics?
Not on the table itself. Scans are slow and expensive at scale. The usual pattern is to export to S3 or stream changes out and query them in Athena, Redshift or another analytical engine.
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.
SourceDynamoDB: Is single-table design necessary?
It is the pattern that gets the most from DynamoDB when access patterns are well known, because it lets related items be retrieved in one query. It also makes the model harder to evolve, so many teams reasonably choose multiple simpler tables and accept extra requests.
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.
SourceDynamoDB: What are the real limits I should design around?
400 KB per item, 1 MB per query or scan page, 100 items per transaction, roughly 3,000 read and 1,000 write units per partition, and eventual consistency on global secondary indexes.
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 ScyllaDB
- CockroachDB vs FaunaDB
- CockroachDB vs Couchbase
- CockroachDB vs MongoDB
- CockroachDB vs Elasticsearch
- CockroachDB vs Firestore
- CockroachDB vs DataStax
- CockroachDB vs Aerospike
- CockroachDB vs BigQuery
- CockroachDB vs Neo4j
- CockroachDB vs Typesense
- CockroachDB vs Dragonfly
- CockroachDB vs Apache Doris
- CockroachDB vs Apache Solr
- DynamoDB vs YugabyteDB
- DynamoDB vs PostgreSQL
- DynamoDB vs SingleStore
- DynamoDB vs Google Cloud SQL
- DynamoDB vs Amazon Aurora
- DynamoDB vs Neon
- DynamoDB vs Oracle Database
- DynamoDB vs TiDB
- DynamoDB vs Azure Cosmos DB
- DynamoDB vs Nile
- DynamoDB vs Aiven
- DynamoDB vs Cassandra
- DynamoDB vs Meilisearch
- DynamoDB vs MongoDB Atlas
- DynamoDB vs NATS
- DynamoDB vs Pinecone
- DynamoDB vs Solace PubSub+
- DynamoDB vs Google Cloud Spanner
- DynamoDB vs ScyllaDB
- DynamoDB vs FaunaDB
- DynamoDB vs Couchbase
- DynamoDB vs MongoDB
- DynamoDB vs Elasticsearch
- DynamoDB vs Firestore
- DynamoDB vs DataStax
- DynamoDB vs Aerospike
- DynamoDB vs BigQuery
- DynamoDB vs Neo4j
- DynamoDB vs Typesense
- DynamoDB vs Dragonfly
- DynamoDB vs Apache Doris
- DynamoDB vs Apache Solr
