Questions tagged [zeromq]

ZeroMQ (ZMQ, 0MQ, ØMQ) is a high-performance asynchronous messaging library aimed at use in scalable, distributed and/or concurrent applications.

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

Refactoring a simple ZeroMQ Server

I have a simple ZeroMQ client from zmqClient. I have refactored the code and done the following things. Created a class ZmqServer and added member variables and methods. Added a Server thread, using ...
user avatar
  • 161
11 votes
1 answer
2k views

Do not share same socket between two threads at the same time

I have a code in which I am dealing with sockets and I need to make sure that I don't share same socket between two threads. In my below code, I have a background thread which runs every 60 seconds ...
user avatar
  • 1,887
5 votes
2 answers
674 views

Send records and retry them if acknowledgement is not received

I am working on a project where I need to consume lot of records and then I am sending these records to some other system which uses zeromq. Here is the flow: Store all the incoming records in a CHM ...
user avatar
  • 1,887
3 votes
1 answer
178 views

Haskell zmq & protobuf message forwarding

I wrote a test program (and first "real" Haskell program!) that receives a zmq request on 1 socket, and forwards part of that message to another socket. There are a 2 things I specifically don't like:...
user avatar
10 votes
1 answer
479 views

Sync eye movements with external events

This solution was used to synchronize events between two applications: An eye tracking software, Python, and a stimulus control software, object Free Pascal/Delphi. It avoided a rewrite of the ...
user avatar
  • 479
6 votes
1 answer
3k views

Efficiently using ZeroMQ sockets in Java

I am working on multithreading project and I am using ZeroMQ socket to send the data as a byte array. Below is my example which works fine. I'm opting for code review to see whether it can be improved ...
user avatar
  • 2,077
5 votes
1 answer
3k views

Lazy Pirate Request Response pattern using zeromq and C#/.NET bindings

I'm a zeromq newb and have implemented the REQ/RES Lazy Pirate pattern with C#. It's essentially a port from the C example given in the documentation. It's harnessed by tests, and seems to be work to ...
user avatar
  • 183