Need advice about which tool to choose?Ask the StackShare community!
Celery vs Resque: What are the differences?
1. Language: Celery is written in Python, while Resque is written in Ruby. 2. Serialization: Celery uses JSON and MessagePack for serialization, whereas Resque uses only JSON. 3. Dependencies: Celery has more dependencies compared to Resque, making setup a bit more complex. 4. Database support: Celery supports various backends like RabbitMQ, Redis, and Amazon SQS, whereas Resque primarily uses Redis. 5. Monitoring: Celery provides real-time monitoring with tools like Flower, while Resque does not have built-in monitoring tools. 6. Community: Celery has a larger community and more extensive documentation compared to Resque.
In Summary, Celery and Resque differ in language, serialization, dependencies, database support, monitoring, and community size.
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.
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
Pros of Celery
- Task queue99
- Python integration63
- Django integration40
- Scheduled Task30
- Publish/subsribe19
- Various backend broker8
- Easy to use6
- Great community5
- Workflow5
- Free4
- Dynamic1
Pros of Resque
- Free5
- Scalable3
- Easy to use on heroku1
Sign up to add or upvote prosMake informed product decisions
Cons of Celery
- Sometimes loses tasks4
- Depends on broker1