HN2new | past | comments | ask | show | jobs | submitlogin

How does this compare to MQTT ?


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.


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.


>this could be a viable option for push notification in the IoT domain.

Yes! :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: