[zeromq-dev] Pull request to retire "devices" and replace with "proxies"

Pieter Hintjens ph at imatix.com
Fri Sep 7 12:03:21 CEST 2012


Hi all,

>From https://github.com/zeromq/libzmq/pull/422

Devices were always a clumsy invention, not really mapping to anything
people already knew. There notion of devices as a class of apps never
took off. In the Guide, the explanation of devices always felt
contrived and I remember, as a new 0MQ user, being quite mystified by
these things, until I understood it was just a funny name for a loop
of code.

So, as part of upgrading the Guide for 3.2, I removed all discussion
of devices and replaced the zmq_device call with zmq_proxy. At least
proxy maps to a major use-case and is analogous with HTTP proxies.

For fun I added a third socket to the zmq_proxy call, which receives
all traffic (if not null).

The old names are still there, of course, since our process forbids
breakage of existing APIs.

There's an example of this new method in http://zguide.zeromq.org/c:espresso.

-Pieter



More information about the zeromq-dev mailing list