[zeromq-dev] finding the right message pattern
David Kaufman
david.kaufman at gmx.de
Wed Sep 12 15:42:56 CEST 2012
Hi,
thanks for your input so far. I went a head and created a minimal
working example which unfortunately suffers from balancing issues.
Here's the URL to the gist https://gist.github.com/3706633 . I tried
to keep it simple:
The router simply waits for a welcome message from the workers and
replies with a "START" command which initiates the sending of random
data at the worker process.
The router process counts the amount of messages it receives from each
client. As already stated, it seems as if some client messages are
received more frequently. After a few seconds this is returned by the
counter dictionary: {'5906': 1, '3801': 147313, '4712': 24986},
meaning that the router received over 24986 messages from worker with
id 4721.
Am I doing something wrong? Note that each worker is running in its
own process. Do you have any idea?
Cheers,
David Kaufman
2012/9/12 Pieter Hintjens <ph at imatix.com>:
> On Wed, Sep 12, 2012 at 9:14 AM, David Kaufman <david.kaufman at gmx.de> wrote:
>
>> By the way, I'm using python as the programming language. Do you have
>> any hints/examples/documentation pointers?
>
> The Guide is also in Python, thanks to the efforts of many people.
>
> My strong advice is to not try to solve your real problem right away
> but instead work through the examples until you fully understand how
> to do asynchronous messaging over ROUTER and DEALER. Then, come back
> to your problem and the answer will be obvious and easy.
>
> -Pieter
> _______________________________________________
> 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