Softwr

Databases · head to head

CockroachDB vs Heroku

CockroachDB logo

CockroachDB

Databases

The cloud-native distributed SQL database

From
Free
Free plan
Yes
Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No

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.

Attributes where CockroachDB and Heroku differ
AttributeCockroachDBHeroku
Starting priceFree$5/month
Pricing modelFreemiumSubscription
Free tierYesNo
PlatformsAWS, GCP, AzureWeb, API, Workers
CategoryDatabasesCloud
Founded20152007

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.

Source
Heroku: 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.

Source
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.

Source
Heroku: 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.

Source
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.

Source
Heroku: 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.

Source
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.

Source
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.

Source
Share

Related pages

Other head to heads