Softwr

Databases · head to head

Azure Cosmos DB vs Heroku

Azure Cosmos DB logo

Azure Cosmos DB

Databases

Globally distributed, multi-model database service from Azure

From
Free
Free plan
Yes
Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No

The short version

  • Heroku is a cloud platform as a service.
  • Azure Cosmos DB is free; Heroku starts at $5/mo.
  • Only Azure Cosmos DB lists global Distribution; only Heroku lists git-based deployment.
  • Where Azure Cosmos DB falls short: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.

How do Azure Cosmos DB and Heroku differ?

Azure Cosmos DB and Heroku differ on starting price (Free against $5/month), pricing model (Usage-based against Subscription) and free tier (Yes against No). Only the attributes on which Azure Cosmos DB and Heroku actually diverge.

Attributes where Azure Cosmos DB and Heroku differ
AttributeAzure Cosmos DBHeroku
Starting priceFree$5/month
Pricing modelUsage-basedSubscription
Free tierYesNo
PlatformsWeb, AzureWeb, API, Workers
CategoryDatabasesCloud
Founded19752007

Which features does each one have?

They share 1 listed feature; 13 appear only for Azure Cosmos DB and 19 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 Azure Cosmos DB

  • Global Distribution
  • Multi-model APIs
  • Elastic Scaling
  • Five Consistency Levels
  • SLA-backed Latency
  • Automatic Indexing
  • Serverless
  • Azure Functions

Only in Heroku

  • Git-based deployment
  • Buildpacks
  • Dynos (containers)
  • Add-ons marketplace
  • Postgres database
  • Environment variables
  • Logging
  • API

Both cover

  • Web support

What is each one used for?

Azure Cosmos DB is most often brought in for running a globally distributed multi model database on Azure; Heroku for application hosting. The jobs each tool is most often brought in to do.

Azure Cosmos DB

  • Running a globally distributed multi model database on Azurenot Heroku
  • Serving low latency reads and writes from multiple Azure regionsnot Heroku
  • Storing document, key value and graph data behind a managed servicenot Heroku

Heroku

  • Application hostingnot Azure Cosmos DB
  • Database as a servicenot Azure Cosmos DB
  • CI/CD pipelinesnot Azure Cosmos DB
  • API deploymentnot Azure Cosmos DB

Where do Azure Cosmos DB and Heroku fall short?

Azure Cosmos DB's most cited limit: autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used. 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.

Azure Cosmos DB

  • Autoscale provisioned throughput enforces a minimum of 1,000 RU/s, billed hourly whether or not the database is used
  • Provisioned throughput is charged in every region the account is replicated to, so multi region accounts multiply the RU bill
  • Storage charges cover data, indexes and backups in each replicated region
  • Egress out of Azure and between regions is charged, though ingress is free
  • The free allowance is one account per Azure subscription, limited to 1,000 RU/s and 25 GB
  • RU/s rates vary by region and are only shown through the pricing calculator rather than a flat published rate

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 Azure Cosmos DB and Heroku cost?

Azure Cosmos DB is free to use; Heroku starts at $5/mo. Plan by plan below, from each vendor's own pricing page.

Azure Cosmos DB

Free
  • Free TierFree
    • 1000 RU/s
    • 25GB storage
    • First 12 months
  • ServerlessFree
    • Pay per request
    • Auto-scaling
    • Event-driven workloads

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 Azure Cosmos DB if

  • You need global distribution.
  • You want to start without paying.
  • You work on Web, Azure.
  • You also want multi-model apis.

Choose Heroku if

  • You need git-based deployment.
  • You work on Web, API, Workers.
  • You also want buildpacks.

Questions people ask

Is Azure Cosmos DB or Heroku better?
It depends on the job. Azure Cosmos DB fits running a globally distributed multi model database on Azure; Heroku fits application hosting. Azure Cosmos DB starts at Free and Heroku at $5/month.
Which is cheaper, Azure Cosmos DB or Heroku?
Azure Cosmos DB has a free tier; the other does not. Paid plans start at Free for Azure Cosmos DB and $5/month for Heroku.
Does Azure Cosmos DB or Heroku run on more platforms?
Azure Cosmos DB runs on Web, Azure. Heroku runs on Web, API, Workers.
Can I use Azure Cosmos DB for free?
Yes. Azure Cosmos DB has a free tier, so you can try it without paying. Heroku starts at $5/month.
What is Azure Cosmos DB best used for?
Azure Cosmos DB is most often used for running a globally distributed multi model database on azure, serving low latency reads and writes from multiple azure regions, storing document, key value and graph data behind a managed service. Of those, running a globally distributed multi model database on azure and serving low latency reads and writes from multiple azure regions are not what Heroku is typically brought in for.
What can Azure Cosmos DB do that Heroku cannot?
Azure Cosmos DB covers Global Distribution, Multi-model APIs, Elastic Scaling, Five Consistency Levels. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace. Both handle Web support.

Answered from the vendors’ own pages

Azure Cosmos DB: Is there a free tier for Azure Cosmos DB?

Yes, Cosmos DB offers a free tier with 1,000 RU/s of throughput and 25 GB of storage per month for the lifetime of the account, available to new accounts.

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
Azure Cosmos DB: How is Cosmos DB priced after the free tier?

Cosmos DB uses three billing models: provisioned throughput billed per request unit per second, vCore pricing for certain APIs, or serverless consumption pricing where you pay only for requests processed. Reserved capacity offers 20% discount for one year or 30% for three years.

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
Azure Cosmos DB: Can I change my pricing model after choosing one?

No. Once you select a compute pricing model and API, they cannot be changed. This choice is permanent for that database.

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
Azure Cosmos DB: Is there a trial period for Cosmos DB beyond the free tier?

Azure offers a 30-day free trial account for all Azure services. Additionally, Azure AI customers may be eligible for a 90-day free Cosmos DB subscription through the Azure AI Advantage program.

Source
Share

Related pages

Other head to heads