Re:Show HN: Nchan – a pub/sub server as an Nginx module
by Raed667 on Sunday December 06, 2015 @02:18PM
(#10686207)
How does this compare to MQTT ?
[ Parent
| on HN ]
Re:Show HN: Nchan – a pub/sub server as an Nginx module
by slact on Sunday December 06, 2015 @02:53PM
(#10686338)
I'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.
Re:Show HN: Nchan – a pub/sub server as an Nginx module
by Raed667 on Sunday December 06, 2015 @06:05PM
(#10687115)
I 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.