Rails 8: The Most Deployment-Friendly Release Yet
Ruby on Rails 8 represents a paradigm shift in how we think about deploying web applications. With the introduction of Kamal 2, Solid Cable, Solid Cache, and Thruster, Rails now provides a complete production-ready stack that eliminates the need for external services like Redis and Nginx in many configurations.
Kamal 2: Zero-Downtime Deployments Made Simple
Kamal 2 is the default deployment tool in Rails 8, replacing the need for complex CI/CD pipelines for many applications. It provides:
- Zero-downtime deploys with automatic rolling restarts
- Multi-server deployments with a single command
- Built-in SSL via Let's Encrypt
- Docker-based for consistent environments
With a single kamal deploy command, your application goes live on any Linux server — no Kubernetes, no Heroku, no vendor lock-in.
Solid Cable: WebSockets Without Redis
One of the most exciting additions is Solid Cable, which replaces Redis as the default Action Cable adapter. Using the database as the pub/sub layer, Solid Cable eliminates an entire infrastructure dependency:
# config/cable.yml
production:
adapter: solid_cable
polling_interval: 0.1.seconds
For most applications handling fewer than 10,000 concurrent connections, Solid Cable performs excellently while dramatically simplifying your infrastructure.
Solid Cache: Database-Backed Caching
Similarly, Solid Cache uses your database for caching instead of Redis or Memcached. With modern SSDs and database optimizations, this approach offers excellent performance with zero additional infrastructure.
Thruster: Built-in Asset Serving and HTTP/2
Thruster replaces the need for Nginx or Apache in front of your Rails application. It provides HTTP/2 support, automatic gzip/brotli compression, static asset serving with far-future cache headers, and X-Sendfile support.
Authentication Generator
Rails 8 includes a built-in authentication generator that creates a production-ready authentication system:
$ rails generate authentication
This generates session-based authentication with bcrypt, complete with login, logout, and password reset flows — no gem dependencies required.
Should You Upgrade?
If you're running Rails 7.x, the upgrade path is smooth. The biggest wins come from infrastructure simplification — you can potentially eliminate Redis, Nginx, and complex deployment pipelines. For new projects, Rails 8 is the obvious choice.
At KA Tech, we've been building with Rails 8 since its release and have helped multiple clients upgrade their existing applications. The deployment simplification alone has saved our clients thousands in infrastructure costs.
Ready to build with Rails 8? Get a free project estimate from our team, or contact us to discuss your upgrade path.