Rack VS Ruby on Rails

Compare Rack vs Ruby on Rails and see what are their differences.

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Rack Ruby on Rails
23 468
4,837 54,936
0.3% 0.3%
7.4 10.0
12 days ago 4 days ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Rack

Posts with mentions or reviews of Rack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-07-03.
  • Como desenvolvi um backend web em Clojure
    23 projects | dev.to | 3 Jul 2023
  • How to Use Sinatra to Build a Ruby Application
    8 projects | dev.to | 7 Jun 2023
    Because of its lightweight and Rack-based architecture, Sinatra is great for building APIs, mountable app engines, command-line tools, and simple apps like the one we'll build in this tutorial.
  • Building a Ruby app without any framework
    1 project | /r/ruby | 26 Apr 2023
    Since you mentioned Sinatra and Rails I assume you're talking about web apps. In that case you want to build a Rack Application. That's where web frameworks' responsibility ends.
  • Ask HN: Release Notes
    1 project | news.ycombinator.com | 9 Feb 2023
    I'm thinking about building a website that scrapes release notes from sources like https://community.ui.com/releases, https://github.com/rack/rack/blob/main/CHANGELOG.md, https://developer.android.com/about/versions/13/release-notes etc, and cleans them up & formats into the same format so they can be searched a lot easier.

    It seems like the best place to start would be for folks who read HN since we refer to these quite a bit day-to-day to figure out what changes in software, apps, etc. Let's open this up with a few questions:

    1. Would you find a service like this useful? Why or why not?

    2. What release notes would you want to have formatted into the same thing and why?

    3. What features or capabilities would you like to see a service like this do? e.g. would you like to select multiple "products/apps/whatever" and see their release notes in one timeline? Side-by-side? etc. etc. etc.

  • Elixir Plugs
    1 project | dev.to | 2 Dec 2022
    In Elixir world, Plug is a bit similar to Rack in Ruby. Official documentation describes Plug as:
  • Rack 3 Upgrade Guide
    1 project | news.ycombinator.com | 22 Oct 2022
  • Newb here: have you written your own web server? Seeking advice
    13 projects | /r/ruby | 18 Jun 2022
    The spec for Ruby's Rack is another good reference for how a Ruby webserver is expected to work.
  • The Definitive Guide to Rack for Ruby and Rails Developers
    4 projects | dev.to | 24 May 2022
    You've been around in the Rails world for a while. You know your way around rails. But you keep hearing this word 'Rack' and don't really understand what it is or what it does for you. You try to read the documentation on the Rack Github repository or the Rails on Rack guides, but the only thing it does is add to the confusion.
  • Crafting mini RubyOnRails
    2 projects | dev.to | 10 May 2022
    Begin with writing a rack-middleware. Rack is a standard library for writing a web server. The main structure is simple. Here is an example:
  • Request Coalescing in Async Rust
    4 projects | news.ycombinator.com | 6 Mar 2022
    Coming from the Ruby ecosystem, a lot of this played out similarly to how the Rack[1] middleware conventions developed in the early Rails v1 and v2 days. Prior to Rack there was a lot of fragmentation in HTTP server libraries, post-Rack everything more or less played nicely as long as libraries implemented Rack interfaces.

    I don't write Rust professionally, but it was a bummer seeing that this seems to be a place that was figured out (painfully) in ecosystems used heavily for web development--Javascript and Elixir have their own Rack equivalents[2][3]. I hope that Tower plays a similar role to unify the library ecosystem in Rust.

    1. https://github.com/rack/rack

    2. http://expressjs.com/en/guide/writing-middleware.html

    3. https://github.com/elixir-plug/plug

Ruby on Rails

Posts with mentions or reviews of Ruby on Rails. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-07.
  • Rails Core Classes Method Lookup Changes: A Deep Dive into Include vs Prepend
    2 projects | dev.to | 7 May 2024
    on April 23, 2024, a PR #51640 was merged into main branch of Ruby On Rails. This PR title is Use Module#include rather than prepend for faster method lookup.
  • GitHub Incident with Issues, API Requests and Pull Requests
    1 project | news.ycombinator.com | 5 Apr 2024
    [0] is a my favorite demonstration of it.

    [0]: https://github.com/rails/rails/commit/b83965785db1eec019edf1...

  • Client side Git hooks 101
    2 projects | dev.to | 31 Mar 2024
    Here's a real life example: Imagine a Ruby on Rails app on which a team of developers are working. The code is hosted on GitLab and all the work is coordinated using GitLab issues. In other words: For every commit, there's an associated issue and the issue number acts as a sort of primary key for documentation, time reporting and so forth. This convention has a few advantages, most notably the ability to easily learn more about how, when and by whom features were implemented as well as how this implementation came to be.
  • 16 Best Ruby Frameworks For Web Development [2024]
    6 projects | dev.to | 11 Mar 2024
    Ruby on Rails is regarded as one of the best ruby frameworks. It was the primary language in developing big projects such as Twitter and helped the language boost the community. Often referred to as “Rails,” Ruby on Rails is a web development framework with an MVC control structure and currently running its 6.1 version. The 16-year-old language has dramatically influenced the web development structures and managing databases, web pages, and other components on a web application.
  • More control over enum in Rails 7.1
    1 project | dev.to | 29 Feb 2024
    In Rails 7.1, a new option _instance_methods is introduced, allowing developers to opt-out of the automatic generation of instance methods for enums. When enum is defined with _instance_methods: false, Rails will no longer generate methods like pending?, processed?, etc.
  • Ruby on Rails load testing habits
    5 projects | news.ycombinator.com | 25 Jan 2024
    Rails isn't super opinionated about database writes, its mostly left up to developers to discover that for relational DBs you do not want to be doing a bunch of small writes all at once.

    That said it specifically has tools to address this that started appearing a few years ago https://github.com/rails/rails/pull/35077

    The way my team handles it is to stick Kafka in between whats generating the records (for us, a bunch of web scraping workers) and and a consumer that pulls off the Kafka queue and runs an insert when its internal buffer reaches around 50k rows.

    Rails is also looking to add some more direct background type work with https://github.com/basecamp/solid_queue but this is still very new - most larger Rails shops are going to be running a second system and a gem called Sidekiq that pulls jobs out of Redis.

  • DHH installing Campfire (37s ONCE #1) [video]
    1 project | news.ycombinator.com | 19 Jan 2024
    I'm looking forward to see what extractions from this will land on rails. For example: https://github.com/rails/rails/issues/50454
  • First commits in a Ruby on Rails app
    6 projects | dev.to | 17 Jan 2024
    Here is what strict_loading does (source):
  • Continuous Deployment with GitHub Actions and Kamal
    4 projects | dev.to | 7 Jan 2024
    Kamal is a wonderfully simple way to deploy your applications anywhere. It will also be included by default in Rails 8. Kamal is trivial, but I don’t recommend using it on your development machine.
  • What's Coming in Rails 8
    1 project | news.ycombinator.com | 5 Jan 2024
    Here's the GitHub milestone I've based this article on — https://github.com/rails/rails/milestone/87

What are some alternatives?

When comparing Rack and Ruby on Rails you can also consider the following projects:

Puma - A Ruby/Rack web server built for parallelism

Roda - Routing Tree Web Toolkit

Unicorn - Unofficial Unicorn Mirror.

Hanami - The web, with simplicity.

Goliath - Goliath is a non-blocking Ruby web server framework

Sinatra - Classy web-development dressed in a DSL (official / canonical repo)

falcon - A high-performance web server for Ruby, supporting HTTP/1, HTTP/2 and TLS.

CodeBehind Framework - CodeBehind library is a modern backend framework. This library is a programming model based on the MVC structure, which provides the possibility of creating dynamic aspx files in .NET Core and has high serverside independence.

Phusion Passenger - A fast and robust web server and application server for Ruby, Python and Node.js

Cuba - Rum based microframework for web development.

Thin - A very fast & simple Ruby web server

Padrino - Padrino is a full-stack ruby framework built upon Sinatra.