Why is JeroMQ needed if it can use JZMQ?

Simple question. Why is “porting” zmq to java and calling it JeroMQ is a good idea?

+6
source share
2 answers

JeroMQ is the official ZeroMQ community project; This is the full port of the libzmq C ++ library, supporting version 3.2.

Benefits:

  • Pure Java, so there is no need to communicate in C / C ++ through JNI. This is extremely useful on devices where native libraries are difficult or impossible.
  • 100% compatible with the JZMQ API (two projects have agreed on one API so you can import one or the other transparently).
  • It is 100% compatible with the wired ZeroMQ protocol, so you can start some nodes using JeroMQ, and some using your own library, and it works as expected.
  • Good performance, relatively close to the source library.

Disadvantages:

  • No PGM multicast. There is no Java version of this library yet.
  • It does not yet support the functionality of ZeroMQ v4, including security.
+14
source

JeroMQ is a pure implementation of Java ZeroMq. If your target language is Java, it’s easier to get started with JeroMq since it uses a single jar file. ZeroMq (zmq), on the other hand, is written in C. You must build zmq, libzmq, and jzmq Java language bindings to use it in a Java application. The JeroMq API is identical to jzmq, therefore, starting from JeroMq, and switching to jzmq later does not affect your application, except for performance; zmq works better than JeroMq.

Hope this helps,

+3
source

Source: https://habr.com/ru/post/954714/


All Articles