Softwr

Cloud · head to head

Heroku vs Ruby on Rails

Heroku logo

Heroku

Cloud

Cloud Application Platform

From
$5/month
Free plan
No
Ruby on Rails logo

Ruby on Rails

Web Development

A full-stack framework for building web applications

From
Free
Free plan
Yes

The short version

  • Heroku is a cloud platform as a service; Ruby on Rails is an open source full-stack web framework licensed under MIT.
  • Ruby on Rails is free; Heroku starts at $5/mo.
  • Where Heroku falls short: there is no free dyno tier; the cheapest Eco dyno is $5 per month.
  • Where Ruby on Rails falls short: written in Ruby, so projects need the Ruby runtime and developers who know Ruby.

How do Heroku and Ruby on Rails differ?

Heroku and Ruby on Rails differ on starting price ($5/month against Free), pricing model (Subscription against Open-source) and free tier (No against Yes). Only the attributes on which Heroku and Ruby on Rails actually diverge.

Attributes where Heroku and Ruby on Rails differ
AttributeHerokuRuby on Rails
Starting price$5/monthFree
Pricing modelSubscriptionOpen-source
Free tierNoYes
PlatformsWeb, API, WorkersWeb
CategoryCloudWeb Development
Founded20072004

Which features does each one have?

They share no listed features; 20 appear 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 Heroku

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

Only in Ruby on Rails

Nothing recorded that Heroku does not also cover.

What is each one used for?

Heroku is most often brought in for application hosting; Ruby on Rails for building e-commerce platforms that scale from startup to IPO. The jobs each tool is most often brought in to do.

Heroku

  • Application hostingnot Ruby on Rails
  • Database as a servicenot Ruby on Rails
  • CI/CD pipelinesnot Ruby on Rails
  • API deploymentnot Ruby on Rails

Ruby on Rails

  • Building e-commerce platforms that scale from startup to IPOnot Heroku
  • Developing SaaS applications with consistent conventions across teamsnot Heroku
  • Creating marketplace platforms like Airbnb with transactional workflowsnot Heroku
  • Integrating cloud file storage and real-time WebSocket updatesnot Heroku
  • Enforcing encryption and security protections against common attacksnot Heroku

Where do Heroku and Ruby on Rails fall short?

Heroku's most cited limit: there is no free dyno tier; the cheapest Eco dyno is $5 per month. Ruby on Rails's: written in Ruby, so projects need the Ruby runtime and developers who know Ruby. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

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

Ruby on Rails

  • The framework is Ruby-only by design, per rubyonrails.org's own description of its convention over configuration approach, requiring the Ruby runtime rather than supporting alternate languages
  • Written in Ruby, so projects need the Ruby runtime and developers who know Ruby
  • Early critics raised scalability concerns about Rails on the Ruby MRI interpreter, and Twitter replaced its user-facing Rails code in 2011 over performance

How much do Heroku and Ruby on Rails cost?

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

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

Ruby on Rails

Free
  • Open source (MIT)Free

Which should you pick?

Choose Heroku if

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

Choose Ruby on Rails if

  • You want to start without paying.

Questions people ask

Is Heroku or Ruby on Rails better?
It depends on the job. Heroku fits application hosting; Ruby on Rails fits building e-commerce platforms that scale from startup to IPO. Heroku starts at $5/month and Ruby on Rails at Free.
Which is cheaper, Heroku or Ruby on Rails?
Ruby on Rails has a free tier; the other does not. Paid plans start at $5/month for Heroku and Free for Ruby on Rails.
Does Heroku or Ruby on Rails run on more platforms?
Heroku runs on Web, API, Workers. Ruby on Rails runs on Web.
Can I use Ruby on Rails for free?
Yes. Ruby on Rails has a free tier, so you can try it without paying. Heroku starts at $5/month.
What is Heroku best used for?
Heroku is most often used for application hosting, database as a service, ci/cd pipelines, api deployment. Of those, application hosting and database as a service are not what Ruby on Rails is typically brought in for.
What can Heroku do that Ruby on Rails cannot?
Heroku covers Git-based deployment, Buildpacks, Dynos (containers), Add-ons marketplace.

Answered from the vendors’ own pages

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
Ruby on Rails: Is Ruby on Rails free?

Yes, Ruby on Rails is free and open-source, licensed under the MIT License. There are no costs associated with using or distributing the framework.

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
Ruby on Rails: What is Ruby on Rails licensed under?

Ruby on Rails is licensed under the MIT License, a permissive open-source license that allows commercial and private use.

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