Hi all

I'm using Django to develop a service. Service connects to RabbitMQ and 
receives events that are translated to creating/updating/deleting of the 
database records. 

What is the best way to run RabbitMQ consumer with Django? I'm using Pika 
library and I run consumer as a management command (python manage.py 
listen_to_changes). Is this a good solution? I don't see it so. I'm running 
Django as WSGI so I presume there are no start/stop Django events that I 
could plugin in to start/stop consumer.

I'm aware of the Celery and how it nicely integrates into Django, but for 
me it's not an option.

What do you suggest? How to run RabbitMQ with Django (stability is the main 
objective).

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e2b0cfd3-f33f-485c-9497-98fd281c9cd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to