문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top