Phoenix vs Ruby on Rails
Phoenix: Real-time apps such as dashboards, chat and collaboration tools.; Ruby on Rails: Small teams shipping complete web products quickly.
| Field | Phoenix | Ruby on Rails |
|---|---|---|
| Pricing | Open source | Open source |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| Ecosystem | Elixir | Ruby |
| License | MIT | MIT |
| Category | Web frameworks | Web frameworks |
Choose Phoenix over Ruby on Rails when
Choose it when you want real-time pages rendered on the server without a separate JavaScript front end, and your team will write Elixir. LiveViews are server processes that push page diffs; PubSub and Channels are built in.
Phoenix is an Elixir framework. A LiveView is a process that receives events, updates its state and renders updates to the page as diffs (LiveView docs). Built-in PubSub and Channels push events across one or dozens of nodes, and mix phx.gen.auth generates authentication (phoenixframework.org). Since 1.8 that generator uses magic links by default (1.8 release post). New apps need Elixir 1.17 or later and Erlang 25 or later (installation guide). The latest release is 1.8.17, published 2026-11-20, under MIT (Hex).
SourceChecked 25 November 2026
Phoenix
An Elixir web framework with LiveView for real-time, server-rendered interactive UIs.
Choose Phoenix if
Real-time apps such as dashboards, chat and collaboration tools.
Why it’s here
Phoenix is an Elixir web framework. Its LiveView renders HTML on the server and keeps each open page as a server process that holds the page's state, receives browser events and sends back only the changed parts of the template (LiveView docs). Interactive and real-time pages need no separate JavaScript front end, and PubSub and Presence for broadcasting across nodes ship in the framework (phoenixframework.org).
Pick it when
- Many users watch the same changing data, such as dashboards, chat or collaborative editing. The built-in PubSub and Presence work "across one or dozens of nodes", with no extra dependency (phoenixframework.org).
- You want generated authentication. Since 1.8,
mix phx.gen.authdefaults to magic-link login, and the generators pass a scope struct through context functions so queries filter by user or organisation by default (1.8 release post). - Your team already writes Elixir or will learn it. LiveView is the main reason to pick Phoenix, so a team that wants a JSON API for a separate front end gains less.
Skip it when
The interface must keep working offline, or on connections where each click cannot wait for a server round trip. LiveView state lives on the server. JS commands cover optimistic updates and a latency simulator lets you test slow clients, but the server stays in the loop (LiveView README).
Current state
The latest Phoenix release is 1.8.16, published 2026-10-20 (releases); 1.8.0 shipped on 2025-08-05 and 1.9 is in development on main (blog, changelog). LiveView is versioned separately: 1.2.13 was published on 2026-10-20 (releases). Both are MIT licensed, and the Phoenix licence file names Chris McCord as copyright holder (Phoenix LICENSE, LiveView LICENSE).
Setup
New apps need Elixir 1.17 or later and Erlang 25 or later, and default to PostgreSQL; --database switches it and --no-ecto drops the database layer (installation guide).
mix archive.install hex phx_new
mix phx.new demo
Watch out for
Page state lives in the server process, so a deploy or a dropped connection discards it. The client reconnects with exponential back-off and resubmits form data, and the docs tell you to move the rest of the state into URL parameters or the database (deployments). Every open page holds its assigns in memory: idle LiveViews compress their state after hibernate_after (15 seconds by default), and stream/4 keeps large collections on the client instead of the server (LiveView API). Rolling deploys have an ordering rule: the unreleased 1.9 changelog says to deploy 1.8.16 or later 1.8 first, because channel fastlaning moves to phoenix_pubsub 2.4 (changelog). The ecosystem is Elixir's, so look up each integration you depend on in the Hex package index before you commit.
Ruby on Rails
A full-stack Ruby framework built around convention over configuration, with an ORM, background jobs and Hotwire for interactivity.
Choose Ruby on Rails if
Small teams shipping complete web products quickly.
Why it’s here
Rails is a full-stack Ruby framework. It covers rendering HTML templates, database access through Active Record, email, live pages over WebSockets, background jobs and file uploads (rubyonrails.org). Rails 8 added database-backed Solid Queue, Solid Cache and Solid Cable: Solid Queue replaces Redis and a separate job runner, Solid Cache replaces Redis or Memcached for fragment caches, and Solid Cable replaces Redis for WebSocket pub/sub (8.0 release notes).
Pick it when
- You want one set of conventions for the whole application. The guides call Rails opinionated software that assumes there is a best way to do things (getting started).
- You deploy to your own Linux servers. Rails 8 comes preconfigured with Kamal 2, which turns a fresh Linux box into an application server with
kamal setup, and its Dockerfile puts Thruster in front of Puma (8.0 release notes). Rails 8.1 adds registry-free Kamal deployments (8.1 release notes). - You want jobs, cache and WebSockets without Redis. Solid Queue uses the
FOR UPDATE SKIP LOCKEDmechanism of PostgreSQL and MySQL 8.0 or later, and also works with SQLite (8.0 release notes). - You need a starting point for sign-in. The authentication generator creates a session-based, password-resettable, metadata-tracking system (8.0 release notes).
Skip it when
- Nobody on the team writes Ruby. Rails 8.1 requires Ruby 3.2 or newer (RubyGems).
- You need a long support window per version. Rails gives one year of bug fixes and two years of security fixes per minor series (maintenance policy).
- You develop on Windows and want a native setup. The install guide says the Windows Subsystem for Linux gives the best experience (install guide).
Current state
The latest release is Rails 8.1.4.1, published 2026-11-04; 8.1.0 shipped on 2025-10-22 (RubyGems versions). RubyGems lists no 8.2 or 9.0 release or pre-release as of 2026-11-25. The maintenance policy lists 8.1.x with bug fixes until 2026-10-10 and security fixes until 2027-10-10, and 8.0.x with security fixes until 2026-11-07 (maintenance policy). The licence is MIT (RubyGems). Rails 8.1 added Active Job Continuations, structured event reporting, local CI and Markdown rendering (8.1 release notes).
Setup
Rails needs Ruby 3.2 or newer, and the install guide installs Ruby with mise (install guide):
mise use -g ruby@3
gem install rails
rails new store
The default database is SQLite (getting started).
Watch out for
The 8.1.4.1 release notes list 21 GHSA advisory IDs (release). Two of its changes can affect a running system. strip_tags now encodes " and ', so output used outside HTML, such as a text template or JSON, contains " and '. And ActiveSupport::MessagePack now serializes an unsafe SafeBuffer with a marker that earlier Rails versions cannot read, which matters while old and new releases run side by side (release). Upgrade one minor at a time: the 8.1 notes tell you to reach 8.0 first and confirm the application still runs (8.1 release notes).