Understanding Rails middleware helps you inspect the request stack, build custom middleware, and decide when to use it for request and response processing.
Tutorial series
Rails Intermediate
5 tutorials — follow in order for the best learning path.
- Rails Middleware: Request and Response Stack
- ActiveJob and Sidekiq: background jobs in Rails
Learn ActiveJob and Sidekiq in Rails: create background jobs, configure queues, monitor workers, handle retries, and keep web requests fast with Redis.
- ActionCable WebSockets in Rails
Learn ActionCable WebSockets in Rails, from setup and channels to broadcasting, authorization, testing, and production tips.
- Building APIs with Rails API Mode
Learn how building APIs with Rails API Mode creates lightweight, focused JSON backends. Covers API-only apps, serializers, authentication, error handling,.
- Rails Concerns and Service Objects
Learn how to use Rails Concerns for modularizing models and Service Objects for organizing business logic in Rails applications.