[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [paho-dev] MQTT clientfor ZeroMQ
|
ZeroMQ is a flexible toolkit for writing different communications
patterns, whereas MQTT is broker-based publisher/subscriber system.
Although 0MQ has pub/sub sockets as one of it's many patterns, the wire
format is different than that used by MQTT, so they are certainly not
directly compatible.
ZeroMQ sockets mostly just want to talk to other ZeroMQ sockets, so for
the majority of systems, you would write all your services using just
0MQ. It does have some low-level interfaces to talk to the rest of the
world, but if you wanted to use them to speak to an MQTT broker, you
would essentially need to write an MQTT client library using these
interfaces. That is not a "light" solution.
If MQTT does everything that you need then just forget about ZeroMQ and
pick out an existing MQTT client. You will be up and running much more
quickly.
But if you already have a ZeroMQ platform running (or desire some ZMQ
patterns not supported by MQTT), and want to bridge some of it to MQTT,
then you can write a bridge app between the two systems. My advice, in
that case, would be to take the ZeroMQ library and an MQTT client
library, and write a program that shuffles packets back and forth
between them.
Frank
On 11/09/2015 04:48 PM, Abdul Hakeem wrote:
Hello,
ZeroMQ can do sockets, HTTP/Websocket/Telnet e.t.c. protocol transports and this
can be done peer to peer. It would far more efficient to use MQTT over 0MQ
Websockets for instance, in my view.
An MQTT to 0MQ bridge can be coded for instance, but I'm hoping someone can
shed light on how to keep this as light as possible.
Cheers,
Abdul Hakeem
-----Original Message-----
From: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] On
Behalf Of Ian Craggs
Sent: Monday, November 9, 2015 12:18 PM
To: paho-dev@xxxxxxxxxxx
Subject: Re: [paho-dev] MQTT clientfor ZeroMQ
I don't. But doesn't ZeroMQ provide similar facilities to MQTT? Does it
make sense to run MQTT over ZeroMQ?
Secondly, the Paho embedded client is intended to make it easy to port
to different network interfaces. You have to write a very small module
for the network specific code, the rest stays the same.
Ian
On 11/08/2015 10:11 PM, Abdul Hakeem wrote:
Hello,
Does anyone have knowledge of an embedded MQTT client running over
ZMTPZWS/ZHTTP
or plain ZeroMQ sockets over TCP ?
Regards,
Abdul Hakeem
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
--
Ian Craggs
icraggs@xxxxxxxxxx IBM United Kingdom
Paho Project Lead; Committer on Mosquitto
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev
_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev