Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

delayed_job
delayed_job

39
38
+ 1
6
Resque
Resque

89
58
+ 1
8
Add tool

delayed_job vs Resque: What are the differences?

delayed_job: Database backed asynchronous priority queue -- Extracted from Shopify. Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks; Resque: A Redis-backed Ruby library for creating background jobs, placing them on multiple queues, and processing them later. Background jobs can be any Ruby class or module that responds to perform. Your existing classes can easily be converted to background jobs or you can create new classes specifically to do work. Or, you can do both.

delayed_job and Resque can be primarily classified as "Background Processing" tools.

"Easy to get started" is the primary reason why developers consider delayed_job over the competitors, whereas "Free" was stated as the key factor in picking Resque.

delayedjob and Resque are both open source tools. It seems that Resque with 8.53K GitHub stars and 1.58K forks on GitHub has more adoption than delayedjob with 4.45K GitHub stars and 915 GitHub forks.

MAK IT, Stitched, and Youboox are some of the popular companies that use Resque, whereas delayedjob is used by Ubiqua, WeLab Limited, and feedforce Inc.. Resque has a broader approval, being mentioned in 34 company stacks & 8 developers stacks; compared to delayedjob, which is listed in 8 company stacks and 5 developer stacks.

What is delayed_job?

Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.

What is Resque?

Background jobs can be any Ruby class or module that responds to perform. Your existing classes can easily be converted to background jobs or you can create new classes specifically to do work. Or, you can do both.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose delayed_job?
Why do developers choose Resque?
    Be the first to leave a con
      Be the first to leave a con
      What companies use delayed_job?
      What companies use Resque?

      Sign up to get full access to all the companiesMake informed product decisions

      What tools integrate with delayed_job?
      What tools integrate with Resque?
        No integrations found
        What are some alternatives to delayed_job and Resque?
        Sidekiq
        Sidekiq uses threads to handle many jobs at the same time in the same process. It does not require Rails but will integrate tightly with Rails 3/4 to make background processing dead simple.
        Beanstalkd
        Beanstalks's interface is generic, but was originally designed for reducing the latency of page views in high-volume web applications by running time-consuming tasks asynchronously.
        PHP-FPM
        It is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. It includes Adaptive process spawning, Advanced process management with graceful stop/start, Emergency restart in case of accidental opcode cache destruction etc.
        Hangfire
        It is an open-source framework that helps you to create, process and manage your background jobs, i.e. operations you don't want to put in your request processing pipeline. It supports all kind of background tasks – short-running and long-running, CPU intensive and I/O intensive, one shot and recurrent.
        Kue
        Kue is a feature rich priority job queue for node.js backed by redis. A key feature of Kue is its clean user-interface for viewing and managing queued, active, failed, and completed jobs.
        See all alternatives
        Decisions about delayed_job and Resque
        Jerome Dalbert
        Jerome Dalbert
        Senior Backend Engineer at StackShare · | 4 upvotes · 50.9K views
        atGratify CommerceGratify Commerce
        delayed_job
        delayed_job
        Rails
        Rails
        AWS Elastic Beanstalk
        AWS Elastic Beanstalk
        Sidekiq
        Sidekiq
        Ruby
        Ruby
        Amazon SQS
        Amazon SQS
        #BackgroundProcessing

        delayed_job is a great Rails background job library for new projects, as it only uses what you already have: a relational database. We happily used it during the company’s first two years.

        But it started to falter as our web and database transactions significantly grew. Our app interacted with users via SMS texts sent inside background jobs. Because the delayed_job daemon ran every couple seconds, this meant that users often waited several long seconds before getting text replies, which was not acceptable. Moreover, job processing was done inside AWS Elastic Beanstalk web instances, which were already under stress and not meant to handle jobs.

        We needed a fast background job system that could process jobs in near real-time and integrate well with AWS. Sidekiq is a fast and popular Ruby background job library, but it does not leverage the Elastic Beanstalk worker architecture, and you have to maintain a Redis instance.

        We ended up choosing active-elastic-job, which seamlessly integrates with worker instances and Amazon SQS. SQS is a fast queue and you don’t need to worry about infrastructure or scaling, as AWS handles it for you.

        We noticed significant performance gains immediately after making the switch.

        #BackgroundProcessing

        See more
        Jerome Dalbert
        Jerome Dalbert
        Senior Backend Engineer at StackShare · | 3 upvotes · 32.9K views
        atStackShareStackShare
        Sidekiq
        Sidekiq
        Ruby
        Ruby
        delayed_job
        delayed_job
        Redis
        Redis

        We use Sidekiq to process millions of Ruby background jobs a day under normal loads. We sometimes process more than that when running one-off backfill tasks.

        With so many jobs, it wouldn't really make sense to use delayed_job, as it would put our main database under unnecessary load, which would make it a bottleneck with most DB queries serving jobs and not end users. I suppose you could create a separate DB just for jobs, but that can be a hassle. Sidekiq uses a separate Redis instance so you don't have this problem. And it is very performant!

        I also like that its free version comes "batteries included" with:

        • A web monitoring UI that provides some nice stats.
        • An API that can come in handy for one-off tasks, like changing the queue of certain already enqueued jobs.

        Sidekiq is a pleasure to use. All our engineers love it!

        See more
        Interest over time
        Reviews of delayed_job and Resque
        No reviews found
        How developers use delayed_job and Resque
        Avatar of La Cupula Music SL
        La Cupula Music SL uses ResqueResque

        Short term we'll migrate to Sidekiq.

        Avatar of PiggyBike
        PiggyBike uses ResqueResque

        Background syncing of Strava data.

        How much does delayed_job cost?
        How much does Resque cost?
        Pricing unavailable
        Pricing unavailable
        News about delayed_job
        More news
        News about Resque
        More news