[zeromq-dev] finding the right message pattern
David Kaufman
david.kaufman at gmx.de
Wed Sep 12 02:14:04 CEST 2012
Hi,
I'm a little bit confused. Is this the example I should be working
with http://zguide.zeromq.org/php:chapter3#ROUTER-to-DEALER-Routing ?
It seems that I'm only able to send messages to the clients (recording
devices) but not the other way around.
The next example I looked at was
http://zguide.zeromq.org/php:chapter3#Asynchronous-Client-Server ?
Which looks awful complicated. Are the extra worker threads on the
server side really necessary? I want to keep it as simple as possible.
By the way, I'm using python as the programming language. Do you have
any hints/examples/documentation pointers?
Cheers,
David Kaufman
2012/9/11 Michel Pelletier <pelletier.michel at gmail.com>:
> If your master uses a ROUTER socket, it can address each recording
> device individually to issue it start/stop commands. The devices
> themselves can use a DEALER socket to both receive/respond to
> commands, and to send recording data without acknowledgement.
> Neither DEALER or ROUTER are synchronously bound like REQ/REP.
>
> -Michel
>
> On Tue, Sep 11, 2012 at 5:21 AM, David Kaufman <david.kaufman at gmx.de> wrote:
>> Hi ZeroMQ Community,
>>
>> I'm currently working on a small project where multiple machines
>> output data from a recording device (e.g. audio data). Note that a
>> recording device is just another zeromq capable client. A master
>> machine collects the output of each recording device. The recording
>> device is selected, initiated and stopped by the master machine. To
>> sum up, the master has to communicate with each recording devices in a
>> bidirectional fashion.
>>
>> The request/replay message pattern works but produces unnecessary
>> overhead since the master machine hast to reply to every data packet
>> the recording device sends. Is there a cleaner solution, perhaps a
>> paired socket? Do you have any suggestions?
>>
>> Cheers,
>> David Kaufman
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
More information about the zeromq-dev
mailing list