On Thu, Jun 11, 2015 at 8:02 PM, Andreas Kuhne <andreas.ku...@suitopia.com> wrote: > Hi all, > > I was wondering if there is a plugin application for Django. What I want to > accomplish is react to different kinds of events on my models and then > create plugins on the fly for them. > > The system I am working on has for example an Order model. When a new Order > is created, I want to send a notification to the person who created the > order. I know that I can do this with signals, but I don't want it to > specifically be tied to a Django application. > > I was thinking something along the lines of using RabbitMQ for example to > post all events there and then be able to react on them later. Has anyone > done anything like this? > > I have seen Celery, but as I understand that, it takes some method to run > like a delayed job? > > Regards, > > Andréas >
Celery is (usually) built on top of an AMQP broker. AMQP was developed to support High Frequency Trading (HFT) and is ideal for publishing events and taking actions based upon them. I'd suggest reading this blog post: http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/ and then the docs for Kombu, which is an excellent messaging library for python. http://kombu.readthedocs.org/en/latest/ AMQP is not the only message bus, but we've had great results with it (using rabbitmq). Cheers Tom -- 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/CAFHbX1JEb08O0PMdzEBC0%3Dq8LRVZcHz11PPg067aSby7YhaLjQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.