Rails 8

✨ Rails 8 β€” The Upgrade That Feels Like Magic πŸš€πŸͺ„

The release of Ruby on Rails 8 is not just another framework update β€” it’s a bold step toward simpler deployments, fewer dependencies, faster apps, and a more developer-friendly ecosystem.

Rails 8 focuses heavily on:

  • ⚑ Performance
  • ☁️ Simpler Infrastructure
  • πŸ”’ Better Security
  • 🧰 Built-in Production Tools
  • 🧹 Cleaner Defaults

For years, Rails developers relied on external tools like Redis, Sidekiq, Devise, Nginx, and Sprockets. Rails 8 says:

β€œWhy depend on 10 tools when Rails can handle most of it elegantly?” 😎

ChatGPT Image May 7, 2026, 11_06_58 AM

Let’s explore every magical upgrade in detail.


🌟 Why Rails 8 Is a Game Changer

Rails 8 introduces:

  • 🧠 Smarter defaults
  • πŸš€ Faster deployment pipelines
  • πŸ—οΈ Infrastructure simplification
  • πŸ’° Reduced hosting costs
  • πŸ”₯ Better production readiness

The biggest philosophy change?

πŸ‘‰ Rails 8 reduces external dependencies dramatically.

This means:

  • Less DevOps pain
  • Easier scaling
  • Lower infrastructure cost
  • Faster onboarding

According to the official Rails 8 release notes, Rails now includes features like Solid Queue, Solid Cache, Kamal 2, Thruster, and a built-in authentication generator. (Ruby on Rails Guides)


πŸ”₯ Major Features Introduced in Rails 8


1️⃣ Solid Queue β€” Goodbye Sidekiq & Redis πŸ‘‹

One of the biggest highlights of Rails 8 is:

βš™οΈ Solid Queue

Rails now includes a database-backed background job system.

Before Rails 8:

Sidekiq + Redis

Now:

Solid Queue

βœ… Why It’s Magical

You no longer need:

  • Redis
  • Sidekiq
  • Resque
  • Delayed Job

Rails can now use:

  • PostgreSQL
  • MySQL
  • SQLite

for background jobs directly.


πŸ§ͺ Example

Before

class WelcomeJob
  include Sidekiq::Job

  def perform(user_id)
    UserMailer.welcome(user_id).deliver_now
  end
end

Rails 8

class WelcomeJob < ApplicationJob
  queue_as :default

  def perform(user_id)
    UserMailer.welcome(user_id).deliver_now
  end
end

⚑ Optimization Done

Rails 8 uses database locking optimizations:

FOR\ UPDATE\ SKIP\ LOCKED

This improves:

  • Parallel job execution
  • Queue processing efficiency
  • Worker scalability

Rails mentions support for PostgreSQL, MySQL, and SQLite. (Ruby on Rails Guides)


2️⃣ Solid Cache β€” Redis-Free Caching ⚑

Caching is essential for performance.

Traditionally:

Redis
Memcached

Now Rails introduces:

πŸ’Ž Solid Cache

A database-backed cache store.


πŸ§ͺ Example

config.cache_store = :solid_cache_store

That’s it 😍


πŸš€ Benefits

βœ… Less infrastructure βœ… Fewer services to manage βœ… Easier deployments βœ… Lower hosting costs βœ… Persistent cache storage


⚑ Optimization Highlights

Solid Cache uses:

  • SSD/NVMe disk optimization
  • Larger cache retention
  • Better persistence than RAM-only systems

Some production systems reportedly reduced render times significantly using Solid Cache. (reddit.com)


3️⃣ Solid Cable β€” WebSockets Without Redis πŸ”Œ

Before Rails 8:

ActionCable + Redis

Now:

ActionCable + Solid Cable

πŸ’‘ What It Does

Solid Cable stores pub/sub messages in the database.

This removes the need for Redis in:

  • Chat apps
  • Notifications
  • Real-time dashboards

πŸ§ͺ Example

config.action_cable.adapter = :solid_cable

Simple. Elegant. Rails-like ✨


4️⃣ Built-In Authentication Generator πŸ”

Rails 8 introduces a native authentication generator.

This is HUGE.

For years developers used:

  • Devise
  • Sorcery
  • Clearance

Now Rails includes:

bin/rails generate authentication

🀯


Generated Features

Rails automatically creates:

  • User model
  • Session handling
  • Password reset
  • Authentication controllers
  • Mailers
  • Session tracking

(Ruby on Rails Guides)


πŸ§ͺ Example

Generated session login:

class SessionsController < ApplicationController
  def create
    user = User.authenticate_by(email: params[:email], password: params[:password])

    if user
      start_new_session_for user
    else
      redirect_to sign_in_path
    end
  end
end

πŸ”₯ Why This Matters

βœ… Faster MVP development βœ… Less gem dependency βœ… Better security defaults βœ… Rails-native authentication flow


5️⃣ Kamal 2 β€” Deployment Becomes Beautiful πŸš€

Rails 8 ships with:

☁️ Kamal 2

A modern deployment solution.


Before Rails 8

Developers struggled with:

  • Capistrano
  • Complex Docker setup
  • Heroku lock-in
  • Kubernetes complexity

Now:

kamal setup
kamal deploy

Done πŸŽ‰


✨ Features

βœ… Zero downtime deployment βœ… Docker-based βœ… Simple VPS deployment βœ… Easier scaling βœ… Built-in proxy handling

(Ruby on Rails Guides)


πŸ§ͺ Example Deployment Config

service: myapp

servers:
  web:
    - 192.168.1.10

proxy:
  ssl: true

⚑ Optimization Done

Kamal 2:

  • Simplifies CI/CD
  • Reduces infrastructure complexity
  • Eliminates many manual deployment steps

Some developers on Reddit mention migration friction for legacy apps, but new Rails 8 projects integrate very smoothly. (reddit.com)


6️⃣ Thruster β€” Built-In Proxy Performance πŸš„

Rails 8 introduces:

⚑ Thruster

A lightweight proxy replacing many Nginx responsibilities.


What It Handles

βœ… Asset caching βœ… Compression βœ… X-Sendfile acceleration βœ… Puma optimization


Why It’s Awesome

Traditional stack:

Rails + Puma + Nginx

Rails 8:

Rails + Puma + Thruster

Fewer moving parts πŸ”₯

(Ruby on Rails Guides)


7️⃣ Propshaft Replaces Sprockets 🎨

Rails finally modernizes asset handling.


Old System

Sprockets

New Default

Propshaft

Why Propshaft?

βœ… Simpler βœ… Faster βœ… Better modern JS support βœ… Cleaner architecture


Benefits

Rails now works more naturally with:

  • ESBuild
  • Bun
  • Import Maps
  • Modern frontend tooling

(Ruby on Rails Guides)


8️⃣ SQLite Production Improvements πŸ—„οΈ

Rails 8 surprisingly pushes SQLite further into production readiness.


Why?

Modern SSDs + SQLite performance = πŸ”₯

Rails 8 optimizes:

  • Concurrent reads
  • Simpler deployments
  • Embedded databases

This is especially useful for:

  • SaaS MVPs
  • Side projects
  • Medium-scale apps

(Mintbit)


9️⃣ Better Async Queries ⚑

Rails 8 improves asynchronous database loading.


πŸ§ͺ Example

@users = User.where(active: true).load_async

Benefits:

  • Faster response times
  • Better concurrency
  • Improved throughput

πŸ”₯ Major Deprecations & Removals

Rails 8 also removes or discourages older approaches.


❌ Sprockets Is No Longer Default

Rails wants developers to move toward:

  • Propshaft
  • ESBuild
  • Modern bundlers

❌ Redis Dependency Reduced

Redis is no longer mandatory for:

  • Caching
  • Jobs
  • ActionCable

Huge architectural change πŸš€


❌ Older Deployment Patterns

Traditional:

  • Capistrano-heavy deployments
  • Manual server configs

are now discouraged in favor of:

  • Docker
  • Kamal
  • Containerized deployments

🧠 Architecture Philosophy Shift in Rails 8

Rails 8 promotes:

β€œOne Database Can Do More”

Instead of:

Postgres + Redis + Sidekiq + Memcached + Nginx

Rails 8 encourages:

Postgres + Rails

That simplicity is the real magic ✨


⚑ Performance Optimizations in Rails 8


πŸš€ Faster Deployments

Using:

  • Kamal 2
  • Docker optimization
  • Thruster proxy

πŸš€ Reduced Infrastructure Cost

By removing:

  • Redis
  • Memcached
  • Extra queue systems

Some teams report major infrastructure reduction after migration. (elaris.software)


πŸš€ Better Database Efficiency

Using:

  • SKIP LOCKED queries
  • Improved async loading
  • Database-backed caching

πŸš€ Improved Developer Productivity

Rails 8 reduces:

  • Boilerplate
  • Third-party setup
  • Configuration complexity

πŸ§ͺ Example β€” Full Rails 8 Stack

Rails 8
β”œβ”€β”€ Solid Queue
β”œβ”€β”€ Solid Cache
β”œβ”€β”€ Solid Cable
β”œβ”€β”€ Kamal 2
β”œβ”€β”€ Thruster
β”œβ”€β”€ Propshaft
└── Built-in Authentication

Minimal dependencies. Maximum productivity πŸ”₯


πŸ› οΈ Migration Tips for Existing Rails Apps


βœ… Upgrade Gradually

Recommended path:

Rails 6 β†’ Rails 7.2 β†’ Rails 8

Rails officially recommends upgrading to Rails 7.2 first before moving to 8.0. (Ruby on Rails Guides)


βœ… Don’t Replace Everything Immediately

You can still keep:

  • Sidekiq
  • Redis
  • Devise

Rails 8 is flexible.


βœ… Test Infrastructure Carefully

Especially:

  • Background jobs
  • WebSockets
  • Deployment pipeline

🎯 Should You Upgrade to Rails 8?

YES β€” if you want:

βœ… Simpler infrastructure βœ… Lower DevOps overhead βœ… Better defaults βœ… Modern deployment workflows βœ… Faster development βœ… Reduced dependency management


⚠️ Be Careful If

❌ You run very large Redis-heavy systems ❌ You have complex Sidekiq workflows ❌ Your deployment pipeline is deeply customized


πŸ† Final Verdict β€” Rails 8 Is Peak Developer Happiness

Rails 8 is more than a framework update.

It’s a philosophical shift toward:

  • simplicity,
  • ownership,
  • productivity,
  • and operational elegance.

It reduces:

  • dependencies,
  • complexity,
  • infrastructure pain,
  • and configuration overload.

And increases:

  • speed,
  • maintainability,
  • developer joy,
  • and deployment confidence.

That’s why Rails 8 truly feels magical πŸͺ„βœ¨


πŸ’¬ Final Thought

β€œRails 8 is not trying to compete with complexity. It’s trying to eliminate it.” πŸš€


πŸ“š References & Release Notes

(Ruby on Rails Guides)

© Lakhveer Singh Rajput - Blogs. All Rights Reserved.