Questions tagged [jeromq]

JeroMQ is a pure Java implementation of libzmq

JeroMQ is a pure Java implementation of libzmq (http://zeromq.org)

Features:

  • based on zeromq-3

  • tcp:// protocol and inproc:// is compatible with zeromq

  • not too bad performance compared to zeromq 2M messages (100B) per sec Performance

  • exactly same develop experience with zeromq

89 questions
4
votes
2 answers

ZeroMq Router silently drops messages

I have a server (ROUTER socket) which binds and allows a single client (DEALER socket) to connect to it. The server then starts to send data. Ideally, I would like to know when the router reaches its hwm setting and starts to drop messages. I have…
CaptainHastings
  • 1,557
  • 1
  • 15
  • 32
3
votes
0 answers

ZeroMQ(JeroMQ) receive calls cause java gc cycles

I am evaluating ZeroMQ as a candidate for a low latency project. But I could not find a way to stop GC cycles which are causing from pure java implementation recv calls. Is there any way to tell ZeroMQ to use same byte buffer for synchronous…
ayengin
  • 1,606
  • 1
  • 22
  • 47
3
votes
3 answers

How to make ZMQ pub client socket buffer messages while sub server socket is down

Given 2 applications where application A is using a publisher client to contentiously stream data to application B which has a sub server socket to accept that data, how can we configure pub client socket in application A such that when B is being…
vach
  • 10,571
  • 12
  • 68
  • 106
3
votes
0 answers

ZeroMQ surprisingly slow

I am currently doing a latency benchmark of some communication middlewares and I found that ZeroMQ REQ and REP sockets are surprisingly slow. For example I was expecting that ZeroMQ would be faster than ZeroC Ice. For completeness here are the…
Renato Sanhueza
  • 534
  • 7
  • 27
3
votes
1 answer

Asynchronous client/server using java jeromq

I am using 0.4.0 version of jeromq and I was trying to use below example from this link but it is giving compilation error on this line ZMQ.poll(items, 10);. It looks like something has changed in the recent version of jeromq but the documentation…
user1234
  • 145
  • 1
  • 12
3
votes
0 answers

JeroMQ: connection does not recover reliably

I have two applications, sending messages asynchronously in both directions. I am using sockets of type ZMQ.DEALER on both sides. The connection status is additionally controlled by heartbeating. I have now problems to get the connection reliably…
WolfgangH
  • 31
  • 1
3
votes
3 answers

ZeroMQ: Disappearing messages

We have a Java application which is acting as a server. Client applications (written in C#) are communicating with it using ZeroMQ. We are (mostly) following the Lazy Pirate pattern. The server has a Router socket, implemented as follows (using…
3
votes
1 answer

Cleanly interrupt zeromq polling thread

I have a multithreaded application written in Java using jeromq 0.3.2. I'm working on putting it into the Tanuki service wrapper so that it runs as a windows service, and I'm having some trouble with cleanly stopping the threads. The run() method…
dave.c
  • 10,910
  • 5
  • 39
  • 62
2
votes
0 answers

org.zeromq.ZMQException: Errno 48 : Address already in use

I am trying to implement a pub-sub example using ZeroMQ. I run the publisher's code in a docker container and the subscriber's code in another one. My subscriber is: private ZMQ.Context context; { context = ZMQ.context(1); } public void…
Marievi
  • 4,951
  • 1
  • 16
  • 33
2
votes
1 answer

ZeroMQ brokerless network with queues (Java)

Is it possible to implement a brokerless network with queues using ZeroMQ (with JeroMQ Java porting)? In my network all peers are both publishers and receivers (SUB/PUB pattern), so that when a peer sends a message all other peers get the…
Darko Romanov
  • 2,776
  • 2
  • 31
  • 38
2
votes
1 answer

Poller of Java ZeroMQ consumes more and more memory in heap

I have a simple application which transfers data from one machine to another. As the application running, the size of heap is increasing slowly. So I dumped the heap and analysed it, and I found that the zmq.poll.Poller cost the biggest amount of…
feng chen
  • 21
  • 2
2
votes
1 answer

How to block hosts from subscribing in JeroMQ?

In our recent project we try to secure the pub-sub jeromq connections. For this we want hosts to first authenticate new hosts with the network and every host who's not authenticated is blocked from subscribing. Another benefit would be fewer…
Armin
  • 441
  • 4
  • 20
2
votes
1 answer

Using JeroMQ over TCP, is there a way to get a sender's IP?

Our application is using JeroMQ 0.4.3 to send messages between a client application and an API. (using curve encryption with ZAuth). We're getting client messages from a ROUTER socket in our broker (MDP pattern). What's the best way to find the…
2
votes
1 answer

ZeroMQ On Android Java ( Android Studio )

I'm trying to program ZeroMQ on my android device and I know how to use ZeroMQ (From C++, Php, .Net , I'm all the time using it.) If I list what I've done until now : From Dependencies in Android Studio, I added org.zeromq:jeromq:0.3.5 from maven…
Destroy
  • 73
  • 1
  • 9
2
votes
1 answer

JeroMQ Subscriber in a Runnable

I'm trying to embed ZMQ subscriber in a Runnable. I'm able to start the Runnable for the first time and everything seems okay. The problem is when I interrupt the Thread and try to start a new Thread, the subscriber does not get any messages. For…
Barbara
  • 213
  • 2
  • 9