[zeromq-dev] ZMQ 3.1 and jzmq compatibility
Staffan Gimåker
staffan at spotify.com
Tue Jan 31 14:52:07 CET 2012
On Tue, 2012-01-31 at 10:52 +0100, Pieter Hintjens wrote:
> On Tue, Jan 31, 2012 at 10:17 AM, Emmanuel TAUREL <taurel at esrf.fr> wrote:
>
> > I am using ZMQ 3.1 for C++ publishers. Some of my subscribers are using
> > Java and therefore jzmq using ZMQ 2.1.11.
> > As far as I know, ZMQ 3.1 is network compatible with ZMQ 2.1.11 and the
> > communication between publishers and subscribers should be fine.
> > Is this true?
>
> I've not tested this but I'd assume that old and new publishers /
> subscribers do NOT interoperate correctly.
I can confirm that they are indeed not.
A version 2 SUB socket won't send a subscription to the version 3 PUB
socket, and thus nothing will be sent to the subscriber.
> It should be fixable but would require some logic to detect and
> support older peers.
Not sure that it's fixable, since AFAIK there's no way (?) to detect the
ZeroMQ version being used on the other side.
/S
More information about the zeromq-dev
mailing list