Contents
Ruby on Rails is a framework that has kept evolving since its creation in 2003. Its open-source accessibility and its flexibility have made it a benchmark for developing web applications. As developers look to improve their applications’ performance, a new version of the framework was released on 7 November 2024. Let’s look at the main new features of Ruby on Rails 8.0.
1. Kamal and Thruster: deploying applications faster
Until now, deploying an application required Rails developers to use several external tools and complex configurations (Bacancy). Kamal 2 uses Docker to package the application in a lightweight container, as a production-ready image. With a single command, “kamal setup”, you can quickly configure servers on a standard Linux machine (AppSignal). All you need is your SSH key (Secure Shell) installed to access those servers’ IP (Internet Protocol) addresses.
Applications can be deployed on cloud virtual machines, on-premises servers or VPS environments (virtual private servers). If one server goes down, the others keep serving users, and updates are rolled out without taking the application offline. Two proxies make this possible:
- Thruster works with the Puma web server to provide several features: HTTP/2 support, Gzip compression of assets and automated TLS certificates through Let’s Encrypt (GitHub). Because it needs little configuration, the container is ready to go on the web.
- Kamal Proxy replaces Traefik. It shares some features with Thruster, notably Let’s Encrypt and zero-downtime deployments. Automatic renewal of TLS certificates reduces the risk of human error (GitHub).
2. SQLite: fewer accessory services to manage data
Developers have found that SSD and NVMe drives are now fast enough to handle a large number of tasks, making RAM-based solutions less necessary. SQLite offers developers a suitable storage solution for certain projects and makes it easier to deploy without a PaaS. This all-in-one approach does not replace MySQL, PostgreSQL and Redis, which remain available.
The aim is to offer an all-in-one solution for job queues, caching and the WebSocket protocol. To do this, Rails relies on three database-backed adapters (Ruby on Rails).
Solid Cable: real-time messaging without Redis
Solid Cable stores the messages exchanged between the application and its users over WebSocket. It makes real-time updates easier to run and stores them in the main database. Developers no longer depend on Redis, as Solid Cable keeps the same processing speed.
Solid Cache: improving the application’s memory
Solid Cache handles data caching instead of Redis or Memcached. Because it runs on SSD and NVMe drives, its caches are larger and cheaper than RAM-based storage. With a capacity of 10 terabytes of data, you get a 60-day retention window without reducing the application’s performance.
Solid Queue: processing background jobs
Solid Queue replaces tools designed for background job processing, such as Resque, Delayed Job or Sidekiq. It works with SQLite for small applications. With MySQL or PostgreSQL, however, the “FOR UPDATE SKIP LOCKED” feature is needed to process jobs one after another without locking.
As well as managing queue concurrency, this backend detects failed jobs. When that happens, the jobs are put on hold before being retried, without compromising the application’s performance (GitHub). For example, an online shop can run its promotions without risk of its application locking up.
3. Propshaft: a new asset pipeline for a better user experience
Propshaft is the new asset pipeline that serves static files in place of Sprockets. In line with the #NOBUILD approach, the focus is on lightweight, efficient delivery of static files (images, CSS and JavaScript files). The pipeline uses fingerprints, or digests, so that browsers can cache files optimally. Files keep the same URL as long as their content doesn’t change.
Propshaft doesn’t take on overly complex tasks; other asset management tools, such as esbuild or Vite, handle those. As a result, loading times are optimised and the user experience improves.
4. Active Record: boosting database performance
The update to Active Record, the core module for data management, has removed obsolete configuration options. The following changes aim to improve troubleshooting and simplify migrations, making database schemas more flexible:
- A distinction between “float4” and “float8” in PostgreSQL to differentiate numeric types by their precision.
- Support for table inheritance, concurrent dropping and native partitioning of tables.
- Several fixtures can be inserted at once to speed up data seeding.
- The database schema is loaded first, before migrations are run.
- Query log tags are enabled by default, so you can identify which database is in use from the SQL statements.
5. Ruby on Rails 8.0: new commands to secure authentication
Rails 8 brings together, in a single generator, the authentication building blocks introduced in previous versions:
- has_secure_password (Rails 5);
- generates_token_for (Rails 7.1);
- password reset (Rails 7.1);
- authenticate_by (Rails 7.1).
Built into the core of Rails, this generator brings native authentication closer to what third-party gems such as Devise offer. Many applications still use Devise, as it remains useful for complex configurations (roles, email address confirmation, etc.). Rate limiting helps handle errors and prevent request abuse in the application, while the generated code remains flexible, for example for password resets (PasswordsController).
New security measures have also been added for the following features:
- Kamal: integration with 1Password, Bitwarden and LastPass for secrets;
- Solid Cache: encrypted storage and retention to meet confidentiality requirements.
| Feature | Role | Replaces or complements |
|---|---|---|
| Kamal 2 | Docker container deployment with zero downtime | External tools and complex configuration |
| Thruster | Proxy in front of Puma: HTTP/2, compression, TLS certificates | Manual configuration |
| Kamal Proxy | Deployment proxy, certificates renewed automatically | Traefik |
| Solid Cable | WebSocket messages stored in the database | A dedicated external service |
| Solid Cache | Caching on SSD and NVMe disks | Redis, Memcached |
| Solid Queue | Background jobs, retries on failure | Resque, Delayed Job, Sidekiq |
| Propshaft | Lightweight asset pipeline for static files | Sprockets |
| Authentication | Generator built into Rails core | Brings Rails closer to Devise |
6. Conclusion
Idéematic is a Ruby on Rails web agency recognised for its expertise. Our team supports you throughout your application project, from design to production. We welcome Ruby on Rails 8.0 for the flexibility, simplicity and security it brings to applications. We are here to help you build an application that performs ever better and is visible in search engines and the app stores.
Take a look at our list of major companies that have adopted this framework, then get in touch with us to build your custom web application.
Is your application running on an older version of Rails? A Ruby on Rails audit assesses its code and the effort needed to upgrade, which we can then carry out through application maintenance, with suitable Ruby on Rails hosting.
Frequently asked questions
What is new in Rails 8?
Kamal 2 and Thruster for deployment, three database-backed adapters (Solid Cable, Solid Cache, Solid Queue) compatible with SQLite, the Propshaft asset pipeline, ActiveRecord improvements and a built-in authentication generator.
What is Kamal in Rails 8?
A deployment tool that packages the application in a lightweight Docker container and deploys it to cloud virtual machines, on-premises servers or VPSs with zero downtime. Kamal Proxy replaces Traefik and renews TLS certificates automatically.
Does Rails 8 replace Redis and Sidekiq?
It makes it possible: Solid Cache handles caching instead of Redis or Memcached, and Solid Queue handles background jobs instead of Resque, Delayed Job or Sidekiq, relying on the database.
What is Propshaft?
The new Rails 8 asset pipeline, replacing Sprockets. It focuses on lightweight delivery of static files and leaves complex processing to tools such as esbuild or Vite.
Does Rails 8 include authentication?
Yes: a generator brings together features introduced in earlier versions (has_secure_password, generates_token_for, authenticate_by…). Devise is still useful for complex setups such as role management.
Should you upgrade your application to Rails 8?
The upgrade brings simpler deployment, fewer external services and stronger security. The effort depends on your starting version and the gems you use: an application audit helps estimate it.


