Softwr

Cloud · head to head

Amazon EC2 vs Heroku

Amazon EC2 logo

Amazon EC2

Cloud

Resizable virtual server compute service on AWS

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.
  • Amazon EC2 is free; Heroku starts at $5/mo.
  • Only Amazon EC2 lists over 1,000 instance types; only Heroku lists git-based deployment.
  • Where Amazon EC2 falls short: cost forecasting is complex across purchase options and instance types.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.

How do Amazon EC2 and Heroku differ?

Amazon EC2 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 Amazon EC2 and Heroku actually diverge.

Attributes where Amazon EC2 and Heroku differ
AttributeAmazon EC2Heroku
Starting priceFree$5/month
Pricing modelUsage-basedSubscription
Free tierYesNo
PlatformsWeb, Linux, Windows, macOSWeb, API, Workers

Identical on both: category (Cloud).

Not yet recorded: founded for Amazon EC2.

Which features does each one have?

They share no listed features; 7 appear only for Amazon EC2 and 20 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 Amazon EC2

  • Over 1,000 instance types
  • Intel, AMD and Arm (Graviton) processors
  • Per-second billing
  • Spot Instances and Savings Plans
  • Dedicated Hosts
  • EC2 Mac instances
  • Nitro System isolation

Only in Heroku

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

What is each one used for?

Amazon EC2 is most often brought in for hosting web applications and APIs; Heroku for application hosting. The jobs each tool is most often brought in to do.

Amazon EC2

  • Hosting web applications and APIsnot Heroku
  • Running GPU and machine learning workloadsnot Heroku
  • Building and signing macOS appsnot Heroku
  • Bursting capacity with Spot Instancesnot Heroku

Heroku

  • Application hostingnot Amazon EC2
  • Database as a servicenot Amazon EC2
  • CI/CD pipelinesnot Amazon EC2
  • API deploymentnot Amazon EC2

Where do Amazon EC2 and Heroku fall short?

Amazon EC2's most cited limit: cost forecasting is complex across purchase options and instance types. 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.

Amazon EC2

  • Cost forecasting is complex across purchase options and instance types
  • Spot instances carry no SLA and can be reclaimed on two minutes' notice
  • Instance-store data is lost when an instance stops or terminates
  • You manage OS patching, scaling and security configuration

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 Amazon EC2 and Heroku cost?

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

Amazon EC2

Free

No published plan breakdown. See the Amazon EC2 review.

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 Amazon EC2 if

  • You need over 1,000 instance types.
  • You want to start without paying.
  • You work on Web, Linux, Windows, macOS.
  • You also want intel, amd and arm (graviton) processors.

Choose Heroku if

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

Questions people ask

Is Amazon EC2 or Heroku better?
It depends on the job. Amazon EC2 fits hosting web applications and APIs; Heroku fits application hosting. Amazon EC2 starts at Free and Heroku at $5/month.
Which is cheaper, Amazon EC2 or Heroku?
Amazon EC2 has a free tier; the other does not. Paid plans start at Free for Amazon EC2 and $5/month for Heroku.
Does Amazon EC2 or Heroku run on more platforms?
Amazon EC2 runs on Web, Linux, Windows, macOS. Heroku runs on Web, API, Workers.
Can I use Amazon EC2 for free?
Yes. Amazon EC2 has a free tier, so you can try it without paying. Heroku starts at $5/month.
What is Amazon EC2 best used for?
Amazon EC2 is most often used for hosting web applications and apis, running gpu and machine learning workloads, building and signing macos apps, bursting capacity with spot instances. Of those, hosting web applications and apis and running gpu and machine learning workloads are not what Heroku is typically brought in for.
What can Amazon EC2 do that Heroku cannot?
Amazon EC2 covers Over 1,000 instance types, Intel, AMD and Arm (Graviton) processors, Per-second billing, Spot Instances and Savings Plans. Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.

Answered from the vendors’ own pages

Amazon EC2: How is Amazon EC2 billed?

Usage is billed in one-second increments with a minimum charge of 60 seconds, across all purchase options and Regions.

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
Amazon EC2: When did EC2 launch?

A limited public beta started on 25 August 2006, and the beta label was dropped on 23 October 2008 with the addition of an SLA.

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
Amazon EC2: How much can Spot Instances save?

AWS says Spot Instances save up to 90 percent versus On-Demand, and Savings Plans up to 72 percent. Wikipedia notes Spot can be reclaimed with two minutes' notice.

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
Share

Related pages

Other head to heads