[zeromq-dev] sending and receiving multiple messages and replies from same thread

Pieter Hintjens ph at imatix.com
Wed May 15 16:47:22 CEST 2013

On Wed, May 15, 2013 at 3:46 PM, Hamed Afshar <hamed_afshar at yahoo.com> wrote:

> Right now, I am using the example provided in the online guide.
> (http://zguide.zeromq.org/pl:mtserver)

Yes, but that design is meant to handle very large volumes where one
thread cannot deal with the work. It is not about handling multiple
clients, and there is no concept there of statefulness.

> zmq_device (ZMQ_QUEUE, $clients, $workers);
> Is there any way to implement my own queuing algorithm instead of ZMQ_QUEUE?

ZMQ_QUEUE was not a queue, and indeed is deprecated. The name was very
misleading. It was a type of device, now called proxy.

Please take my advice and read the documentation, your questions are
based on too many wrong assumptions about how ZeroMQ works.


More information about the zeromq-dev mailing list