简体   繁体   中英

How do I connect to a PyDev project from Django?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM