Advice on Python/Django and message queues

Andy Hume picture Andy Hume · Jan 18, 2009 · Viewed 18.5k times · Source

I have an application in Django, that needs to send a large number of emails to users in various use cases. I don't want to handle this synchronously within the application for obvious reasons.

Has anyone any recommendations for a message queuing server which integrates well with Python, or they have used on a Django project? The rest of my stack is Apache, mod_python, MySQL.

Answer

Van Gale picture Van Gale · Jan 19, 2009

In your specific case, where it's just an email queue, I wold take the easy way out and use django-mailer. As a nice side bonues there are other pluggable projects that are smart enough to take advantage of django-mailer when they see it in the stack.

As for more general queue solutions, I haven't been able to try any of these yet, but here's a list of ones that look more interesting to me:

  1. pybeanstalk/beanstalkd
  2. python interface to gearman (which is probably much more interesting now with the release of the C version of gearman)
  3. memcacheQ
  4. stomp
  5. Celery