Skip to main content

Background Tasks

ยท One min read

Version 1.17.0 introduces Rage::Deferred for background task execution.

The idea is straightforward - you have operations that don't need to block the request-response cycle (sending emails, processing images, updating caches), so push them to the background.

Rage::Deferred integrates with Rage's concurrency model:

  • Tasks run in separate fibers
  • Non-blocking I/O operations stay efficient
  • Failed tasks can be retried

It's not trying to be a full job queue system like Sidekiq. It's focused on the common case: deferring work within the same process to keep request handlers fast and responsive.