3 ms·
How does this compare to MQTT ?
by Raed667 11y ago
How does this compare to MQTT ?
- slact 11y agoI'm not familiar with MQTT, I've just glanced over the spec right now. Nchan is basically a message broker with channels, optimized for message broadcast. MQTT is a TCP-level protocol, whereas all the currently implemented subscriber clients for Nchan are HTTP-level (Longpoll, EventSource and Websocket, which begins with an HTTP request). MQTT subscribers and publishers could be implemented in nchan, but I haven't yet written any raw-TCP connection negotiation code, so I don't know how hard it would be. Aside from that, the subscriber code is very modular and adding another protocol like MQTT would be straightforward.
- Raed667 11y agoI see. Thank you for this, I'll give it a shot and see how a simple client compares to an MQTT client. If I get a good performance on a C/C++ client then this could be a viable option for push notification in the IoT domain.
- solyaris 11y ago>this could be a viable option for push notification in the IoT domain. Yes! :)