talira

A Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later

open sourceMITself-hostablefree

Resque is a Redis-backed background job library for Ruby: any class or module that responds to perform can be queued, jobs are stored in Redis as simple JSON, and workers started with a Rake task pull from a list of queues in priority order. Workers can run on many machines, fork for each job so memory bloat doesn't accumulate, and report what they're doing; failed jobs are tracked. It includes resque-web, a Sinatra dashboard for queues, workers, stats and failures, and works as an ActiveJob backend for Rails. Released by GitHub in 2009 and inspired by DelayedJob, it's MIT licensed and still maintained, supporting Ruby 3.2 to 4.0 and Redis 4+.

Problems it solves

  • run slow work like sending emails or resizing images in the background from my Ruby app
  • process background jobs from Rails with Redis as the queue
  • see which background jobs failed and retry them from a web dashboard
  • spread background job workers across several machines
  • stop long-running Ruby workers from leaking memory over time

Features

  • any Ruby class or module with perform can be a job
  • persistent Redis queues with atomic push and pop; jobs stored as JSON
  • workers with queue lists and priorities, across many machines
  • fork per job to contain memory bloat
  • resque-web Sinatra dashboard for queues, workers, stats and failures
  • failure tracking
  • Rake task to start workers
  • ActiveJob adapter for Rails 7.2+
  • plugin ecosystem

Limitations

  • Doesn't run on Ruby 2.x in its current version: Resque 3 needs Ruby 3.2 or newer, and Ruby 2 apps must stay on Resque 2.x1

Capabilities

Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Resque does.

  1. Solid Queue Database-backed Active Job backend
  2. GoodJob Multithreaded, Postgres-based, Active Job backend for Ruby on Rails
  3. Sidekiq Simple, efficient background processing for Ruby
  4. River Fast and reliable background jobs
  5. Hatchet An orchestration engine for background tasks, AI agents, and durable workflows

Compare Resque with the top 3