Search code examples
zeromqjzmqjeromq

Why one might need JeroMQ if it can use JZMQ?


Simple question. Why "porting" zmq on java and call it JeroMQ is good idea?


Solution

  • JeroMQ is an official project of the ZeroMQ community; it's a full port of the C++ libzmq library, supporting version 3.2.

    Advantages:

    • Pure Java, so no need to link in C/C++ via JNI. This is extremely helpful on devices where native libraries are difficult or impossible.
    • 100% compatible with the JZMQ API (the two projects agreed on a single API so you can import one or the other transparently).
    • 100% compatible with the ZeroMQ wire protocol, so you can run some nodes using JeroMQ and some using the native library, and it works as expected.
    • Good performance, relatively close to the native library.

    Disadvantages:

    • No PGM multicast - there is no Java version of that library yet.
    • Does not yet support ZeroMQ v4 functionality, including security.