[zeromq-dev] Chat example not working

Marcel Roelofs marcel.roelofs at gmail.com
Mon Jan 11 15:11:18 CET 2010


Hi Martin,

On Mon, Jan 11, 2010 at 7:51 AM, Martin Sustrik <sustrik at 250bpm.com> wrote

BTW. did you have a particular reason to let zmq_forwarder, zmq_queue and
>> zmq_streamer be separate executables? Looking at their similarity, doesn't
>> it make more sense to have a single executable that switches on the root
>> element of the configuration xml file to select forwarding, queueing or
>> streaming behavior?
>>
>
> Well, from the developer's point of view there's no point in keeping the
> applications separate. The code is almost the same.
>
> However, from the user's perspective it makes sense to have different
> executables to perform different tasks IMO. As a user, feel free to argue
> about the point though.


To name one thing, in the current situation the behavior specification is
redundant: you both have to select the proper executable and specify the
corresponding root element in the configuration file. If there were to be a
single executable, this could be easily extended to also allow a single
process to have multiple threads each listening on different ports with
different behavior, all governed by a single configuration file. Not sure if
anyone would want that, but right now you explicitly prohibit such a thing.

Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100111/b495008e/attachment.htm>


More information about the zeromq-dev mailing list