Databases · head to head
CockroachDB vs Heroku

CockroachDB
Databases
The cloud-native distributed SQL database
- From
- Free
- Free plan
- Yes
The short version
- CockroachDB is a cloud-native distributed SQL database; Heroku is a cloud platform as a service.
- CockroachDB has a free plan, then $0.057/mo; Heroku starts at $5/mo.
- Only CockroachDB lists distributed SQL; only Heroku lists dynos (containers).
- Where CockroachDB falls short: basic and Standard tiers limited to AWS and GCP (select regions only).
- Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
How do CockroachDB and Heroku differ?
CockroachDB and Heroku differ on starting price (Free against $5/month), pricing model (Freemium against Subscription) and free tier (Yes against No). Only the attributes on which CockroachDB and Heroku actually diverge.
| Attribute | CockroachDB | Heroku |
|---|---|---|
| Starting price | Free | $5/month |
| Pricing model | Freemium | Subscription |
| Free tier | Yes | No |
| Platforms | AWS, GCP, Azure | Web, API, Workers |
| Category | Databases | Cloud |
| Founded | 2015 | 2007 |
Which features does each one have?
They share 2 listed features; 18 appear only for CockroachDB and 18 only for Heroku. 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 Heroku
- Git-based deployment
- Buildpacks
- Dynos (containers)
- Add-ons marketplace
- Postgres database
- Environment variables
- Logging
- API
Both cover
- Datadog
- Cloud deployment
What is each one used for?
CockroachDB is most often brought in for distributed SQL database for scalable applications; Heroku for application hosting. The jobs each tool is most often brought in to do.
CockroachDB
- Distributed SQL database for scalable applicationsnot Heroku
- Multi-region deployment and failovernot Heroku
Heroku
- Application hostingnot CockroachDB
- Database as a servicenot CockroachDB
- CI/CD pipelinesnot CockroachDB
- API deploymentnot CockroachDB
Where do CockroachDB and Heroku fall short?
CockroachDB's most cited limit: basic and Standard tiers limited to AWS and GCP (select regions only). Heroku's: there is no free dyno tier; the cheapest Eco dyno is $5 per month. 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
Heroku
- There is no free dyno tier; the cheapest Eco dyno is $5 per month
- Eco dynos sleep after 30 minutes of inactivity, are restricted to personal accounts and allow only 2 process types
- Free SSL and 10 process types start at the Basic dyno at $7 per month
- Private and Shield dyno types require a Private Space, which is billed on top of the dynos
- Private Space dynos start at $250 per month for Private-M and $500 per month for Private-L
- Dyno prices are per dyno per month, so an app with several process types multiplies the bill
How much do CockroachDB and Heroku cost?
CockroachDB has a free plan, with paid plans from $0.057/mo; Heroku starts at $5/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
Heroku
$5/month- Eco Dyno$5/mo
- 0.5 GB RAM
- Git/Docker deploy
- Custom domains
- Basic Dyno$7/mo
- 0.5 GB RAM
- Always-on
- Free SSL
- Standard-1X Dyno$25/mo
- 0.5 GB RAM
- Horizontal scaling
- App metrics
- Standard-2X Dyno$50/mo
- 1 GB RAM
- Horizontal scaling
- App metrics
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 Heroku if
- You need git-based deployment.
- You work on Web, API, Workers.
- You also want buildpacks.
Questions people ask
- Is CockroachDB or Heroku better?
- It depends on the job. CockroachDB fits distributed SQL database for scalable applications; Heroku fits application hosting. CockroachDB starts at Free and Heroku at $5/month.
- Which is cheaper, CockroachDB or Heroku?
- CockroachDB has a free tier; the other does not. Paid plans start at Free for CockroachDB and $5/month for Heroku.
- Does CockroachDB or Heroku run on more platforms?
- CockroachDB runs on AWS, GCP, Azure. Heroku runs on Web, API, Workers.
- Can I use CockroachDB for free?
- Yes. CockroachDB has a free tier, so you can try it without paying. Heroku starts at $5/month.
- 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 Heroku is typically brought in for.
- What can CockroachDB do that Heroku cannot?
- CockroachDB covers Distributed SQL, Automatic Sharding, Multi-region Replication, Geo-partitioning. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace. Both handle Datadog, Cloud deployment.
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.
SourceHeroku: How much does Heroku cost?
Heroku dyno pricing starts at $5 per month USD for the Eco tier (with 30-minute inactivity sleep), $7 per month for Basic (always-on), and scales up to $1,500 per month for Performance-2XL with 126 GB RAM.
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.
SourceHeroku: What is the cheapest always-on Heroku plan?
The Basic Dyno at $7 per month USD is Heroku's cheapest always-on container option. It provides 0.5 GB RAM, free SSL, and support for 10 process types.
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.
SourceHeroku: How is Heroku Postgres priced?
Heroku Postgres Essential tier (shared resources) starts at $5-$20 per month for 1-32 GB disk. Standard tier (dedicated) ranges $50-$12,000 per month. Premium, Private, Shield, and Advanced tiers offer higher performance at corresponding prices.
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 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 Render
- CockroachDB vs Porter
- CockroachDB vs Coolify
- CockroachDB vs Railway
- CockroachDB vs Qovery
- CockroachDB vs Fly.io
- CockroachDB vs Dokku
- CockroachDB vs DigitalOcean
- CockroachDB vs AWS (Amazon Web Services)
- CockroachDB vs Koyeb
- CockroachDB vs Google Cloud Run
- CockroachDB vs SST
- CockroachDB vs Nitric
- CockroachDB vs Packer
- CockroachDB vs Skopeo
- CockroachDB vs Tencent Cloud
- CockroachDB vs Thanos
- CockroachDB vs Amazon CloudFront
- Heroku vs YugabyteDB
- Heroku vs PostgreSQL
- Heroku vs SingleStore
- Heroku vs Google Cloud SQL
- Heroku vs Amazon Aurora
- Heroku vs Neon
- Heroku vs Oracle Database
- Heroku vs TiDB
- Heroku vs Azure Cosmos DB
- Heroku vs Nile
- Heroku vs Aiven
- Heroku vs Cassandra
- Heroku vs Meilisearch
- Heroku vs MongoDB Atlas
- Heroku vs NATS
- Heroku vs Pinecone
- Heroku vs Solace PubSub+
- Heroku vs Google Cloud Spanner
- Heroku vs Render
- Heroku vs Porter
- Heroku vs Coolify
- Heroku vs Railway
- Heroku vs Qovery
- Heroku vs Fly.io
- Heroku vs Dokku
- Heroku vs DigitalOcean
- Heroku vs AWS (Amazon Web Services)
- Heroku vs Koyeb
- Heroku vs Google Cloud Run
- Heroku vs SST
- Heroku vs Nitric
- Heroku vs Packer
- Heroku vs Skopeo
- Heroku vs Tencent Cloud
- Heroku vs Thanos
- Heroku vs Amazon CloudFront

