django celery and mqtt

326 views
Skip to first unread message

Riska Kurniyanto Abdullah

unread,
May 9, 2020, 1:34:17 AM5/9/20
to django...@googlegroups.com
Dear all django users,

1. I want to attach my mqtt client script in django apps, where should I put the script to launch them so the script can run as long task running. 
2. In mqtt client i have task to save the message in database? how to make this task possible to handle with celery.

Thanks in advance.

This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments.

Motaz Hejaze

unread,
May 9, 2020, 1:50:55 AM5/9/20
to Django users
please can you put your question in a more clearer way ?

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG7yD2J4KPV9SUO5-p_UwsyaGDb39DnsA56g8D1nXiNzscpc4g%40mail.gmail.com.

Riska Kurniyanto Abdullah

unread,
May 10, 2020, 8:40:58 PM5/10/20
to django...@googlegroups.com
so, I have a django REST API Server to save all data stream from my client apps. The Client used some kind python application to send the data to the rest api through this architecture :
  1. Client apps
    • [1.1] MQTT Client used publish mode
  2. REST API SERVER
    • [2.1] Django REST Framework
    • [2.2] Celery
    • [2.3] MQTT Client used subscribe mode
  3. MQTT Server
The client send data stream that he produced from IoT Device and send the data to the Server [2. (REST API SERVER)] through the with [1.1.] MQTT Client publish method]. On the REST API Server [2], I have a STANDALONE SCRIPT that live in server [2.3] to subscribe all message from all user from MQTT Server and will save the data to the rest api server db [2.1.]

The question... how do I make this standalone script running with django and process the data stream per user thread or process (some kind of backgroud process that execute parallel based on user thread or process) ?. So if I have 5 user online to send data, all this 5 online can send the data to the rest api without wait from another user complete their process.
How do i do that in celery? is it only execute with delay method? or is it any something best practice that i missed??  


Fulbéria Tangbé

unread,
May 11, 2020, 2:09:35 PM5/11/20
to Django users
Salut Monsieur ! Au fait j'aimerais que vous me rendiez un services : j'ai crée mon projet Django 2.2.5 dans ce projet j'ai crée beaucoup d'applications maintenant je veux instaurer dans l'une de mes applications mes modèles django ma question est-ce que toutes mes applications vont hériter de ce modèle?

Riska Kurniyanto Abdullah

unread,
May 11, 2020, 4:52:05 PM5/11/20
to django...@googlegroups.com
OK, no problem, We can talk it in another thread or in a private, but not in this thread please. Just contact me direct to my mailbox. And.. in english please.. :D


This e-mail (including any attachments) is private and confidential and may contain privileged material. If you have received this e-mail in error, please notify the sender and delete it (including any attachments) immediately. You must not copy, distribute, disclose or use any of the information in it or any attachments.


--
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...@googlegroups.com.

Francisco Viteri

unread,
May 11, 2020, 5:03:02 PM5/11/20
to django...@googlegroups.com
+ 786 878 9396 
Please Add me and send me a message I will pay for your time as a mentor in Django an for a project 

Reply all
Reply to author
Forward
0 new messages