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

Celery

1.4K
1.3K
+ 1
265
Sidekiq

1.1K
549
+ 1
407
Add tool

Celery vs Sidekiq: What are the differences?

Developers describe Celery as "Distributed task queue". Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well. On the other hand, Sidekiq is detailed as "Simple, efficient background processing for Ruby". 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.

Celery and Sidekiq are primarily classified as "Message Queue" and "Background Processing" tools respectively.

"Task queue" is the top reason why over 84 developers like Celery, while over 120 developers mention "Simple" as the leading cause for choosing Sidekiq.

Celery and Sidekiq are both open source tools. It seems that Celery with 12.7K GitHub stars and 3.3K forks on GitHub has more adoption than Sidekiq with 9.66K GitHub stars and 1.66K GitHub forks.

StackShare, SendGrid, and New Relic are some of the popular companies that use Sidekiq, whereas Celery is used by Sentry, Ansible, and OpenLabel. Sidekiq has a broader approval, being mentioned in 346 company stacks & 77 developers stacks; compared to Celery, which is listed in 271 company stacks and 77 developer stacks.

Advice on Celery and Sidekiq
Needs advice
on
RabbitMQRabbitMQ
and
CeleryCelery

I am just a beginner at these two technologies.

Problem statement: I am getting lakh of users from the sequel server for whom I need to create caches in MongoDB by making different REST API requests.

Here these users can be treated as messages. Each REST API request is a task.

I am confused about whether I should go for RabbitMQ alone or Celery.

If I have to go with RabbitMQ, I prefer to use python with Pika module. But the challenge with Pika is, it is not thread-safe. So I am not finding a way to execute a lakh of API requests in parallel using multiple threads using Pika.

If I have to go with Celery, I don't know how I can achieve better scalability in executing these API requests in parallel.

See more
Replies (1)
Recommends
RedisRedisrqrq

For large amounts of small tasks and caches I have had good luck with Redis and RQ. I have not personally used celery but I am fairly sure it would scale well, and I have not used RabbitMQ for anything besides communication between services. If you prefer python my suggestions should feel comfortable.

Sorry I do not have a more information

See more
Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Celery
Pros of Sidekiq
  • 94
    Task queue
  • 61
    Python integration
  • 37
    Django integration
  • 29
    Scheduled Task
  • 18
    Publish/subsribe
  • 6
    Easy to use
  • 6
    Various backend broker
  • 5
    Great community
  • 4
    Workflow
  • 4
    Free
  • 1
    Dynamic
  • 123
    Simple
  • 99
    Efficient background processing
  • 60
    Scalability
  • 37
    Better then resque
  • 26
    Great documentation
  • 15
    Admin tool
  • 14
    Great community
  • 8
    Integrates with redis automatically, with zero config
  • 7
    Great support
  • 7
    Stupidly simple to integrate and run on Rails/Heroku
  • 3
    Freeium
  • 3
    Ruby
  • 2
    Pro version
  • 1
    Dashboard w/live polling
  • 1
    Great ecosystem of addons
  • 1
    Fast

Sign up to add or upvote prosMake informed product decisions

Cons of Celery
Cons of Sidekiq
  • 4
    Sometimes loses tasks
  • 1
    Depends on broker
    Be the first to leave a con

    Sign up to add or upvote consMake informed product decisions

    What is Celery?

    Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

    What is 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.

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

    What companies use Celery?
    What companies use Sidekiq?
    See which teams inside your own company are using Celery or Sidekiq.
    Sign up for Private StackShareLearn More

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

    What tools integrate with Celery?
    What tools integrate with Sidekiq?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    Blog Posts

    Jun 6 2019 at 5:11PM

    AppSignal

    RedisRubyKafka+9
    15
    1151
    GitHubPythonNode.js+47
    50
    69438
    JavaScriptGitHubPython+42
    52
    19906
    GitHubPythonSlack+25
    7
    2839
    What are some alternatives to Celery and Sidekiq?
    RabbitMQ
    RabbitMQ gives your applications a common platform to send and receive messages, and your messages a safe place to live until received.
    Kafka
    Kafka is a distributed, partitioned, replicated commit log service. It provides the functionality of a messaging system, but with a unique design.
    Airflow
    Use Airflow to author workflows as directed acyclic graphs (DAGs) of tasks. The Airflow scheduler executes your tasks on an array of workers while following the specified dependencies. Rich command lines utilities makes performing complex surgeries on DAGs a snap. The rich user interface makes it easy to visualize pipelines running in production, monitor progress and troubleshoot issues when needed.
    Cucumber
    Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
    Amazon SQS
    Transmit any volume of data, at any level of throughput, without losing messages or requiring other services to be always available. With SQS, you can offload the administrative burden of operating and scaling a highly available messaging cluster, while paying a low price for only what you use.
    See all alternatives