Question

The core logic rests in a Python project, which is ready, and I am creating the UI using Django framework. The Python project uses ZMQ for messaging.

Is it wise to connect Django to ZMQ (from the Python project) to send and receive values? I am dealing with MultiAgent systems, and the core project is all about controlling few hardware devices in buildings.

Was it helpful?

Solution

Yes, it's in fact, a recognized pattern for solutions like you're working on.

I gathered for you some links that show diferent approaches:

Task queuing in Django with ZeroMQ

Long Running Taks in Web App/Django

This it's about RabbitMQ, but since RabbitMQ is a MOM (Message Oriented Middleware) too it might worth take a look this article: Django and asynchronous jobs

You might find interesting this package/application too: Django-ztask

I hope you find the ansewr you're looking for.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top