简体   繁体   中英

Appropriate approach for Message Queue / Scheduled tasks in Django

I'm wondering what criteria would need to be considered when we need to use some kind of task queue in a django project, I'm thinking in performace, development speed, flexibility, etc.

I've been using Celery+RabbitMQ and Django-ztask+ZeroMQ indistinctly for a while (I'm sure there are another good ones), but I haven't an accurate canon for picking up the most suitable in each case.

Could you provide some peculiarities for each of them that allows the user chooses between them?, does it might include some another stable MQ approaches as well?

I can't provide much but I have used two different solutions, Celery+Redis and Celery+RabbitMQ.

I tried RabbitMQ first and after getting all its dependencies installed and spending some time wading through configs I got it working. It worked well, didn't drop anything, but I was always nervous about restarting (either it or the server) because I was never completely sure it would come back up. I'm sure that's my fault, but I couldn't work out what I'd done wrong.

So I thought I'd give Redis a try. Installed and configured it in about 3 minutes and it has worked without any of my attention since.

Now if only there was something easier to configure than Celery...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM