AnyEvent::MP creating many nodes in one process

Marc Lehmann schmorp at schmorp.de
Mon Jun 7 10:11:02 CEST 2010


On Mon, Jun 07, 2010 at 02:06:31PM +0600, mikhail maluyk <mikhail.maluyk at gmail.com> wrote:
> Now when some event occurs i want to create a new node (let's call it
> worker node), in client manager process, which will be seed node.
> This worker node doesn't have the same secret as client manager and
> web server nodes have, in fact, every worker has different secret.

Future versions might be able to offer per-connection secrets, but you
cannot have multiple nodes per process - sorry :)

> So i have two ideas how to handle this, either
> * make everything not global (probably hard, and not sensible)
> * invent some sort of skip list, so that worker node can be configured
> to skip nodes found in %NODE, in my case something like
>   configure skipnodes => ["*"] should work
> 
> You're welcome with any other ideas, or commenting those stated above,
> even with ideas that my overall architecture is wrong :)

Well, it's not aemp's network model - aemp is meant to make it simple, not
more complex, and it's clearly meant to be a network, not simply a
node<->node protocol that you just drive (you might be able to use the
undocumented AnyEvent::MP::Transport to dot hat if you wish).

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list