[zeromq-dev] Is there advantage of using zmq_device comparable with polling

Pieter Hintjens ph at imatix.com
Thu May 17 01:14:21 CEST 2012


On Wed, May 16, 2012 at 5:03 PM, Serg V. Gulko <s.gulko at gmail.com> wrote:

> I trying to figure out is there any advantage(except more compact notation)
> of using ZMQ_FORWARDER device as long same stuff can be build using
> zmq_poll.

It's more compact and faster in some languages. Also, it provides a
consistent API point that can be extended across all languages (e.g.
by adding monitoring sockets). Since this kind of device loop is
fairly common, asking users to rewrite it each time is pointless.

-Pieter



More information about the zeromq-dev mailing list