Realtime Data Flow
I am currently working on a personal project where I have serveral iot devices which have several sensors attached. However, I am not quite sure about the best way to design the communication flow. Specifically, I need both real-time data and historical data.
Initially, I thought about having an MQTT broker for communication between my iot devices and backend (django) and then through my backend I can use websockets to forward real-time updates to my mobile app and http for historical data. However, I’m unsure if this is the most efficient approach or if I should consider having the mobile app directly communicate with the MQTT broker for real-time data.
2 Replies