jdrago_999 has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I want to set up distributed (as in over the network) event broadcasting.
Just basically publish/subscribe eventing. Like you get with Microsoft Message Queue.
Example "subscriber" code:
My::EventManager->observe( 'foo.on_mobble' => sub { my $event = shift; my $foo = $event->src; # Do stuff to $foo });
Example "publisher" code:
# Let anyone who cares know that $foo has just mobbled. $foo->notify( event => 'foo.on_mobble' );
I have done this a hundred times on the same machine, and I have this working with multiple machines, but currently my events are serialized to a database that is constantly queried by my "subscribers."
It would be great if I could have something like memcached that would just magically tell all the other machines that "Event XYZ has just happened."
So to make myself clear, I'm looking for a "MultiCast" eventing tool. Where do I start?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Distributed "event" broadcasting?
by dexterbt1 (Novice) on Apr 21, 2009 at 07:38 UTC | |
Re: Distributed "event" broadcasting?
by targetsmart (Curate) on Apr 21, 2009 at 06:21 UTC | |
by wol (Hermit) on Apr 21, 2009 at 09:07 UTC | |
by targetsmart (Curate) on Apr 21, 2009 at 11:28 UTC | |
by wol (Hermit) on Apr 21, 2009 at 14:16 UTC | |
Re: Distributed "event" broadcasting?
by perrin (Chancellor) on Apr 21, 2009 at 17:39 UTC | |
Re: Distributed "event" broadcasting?
by bibliophile (Prior) on Apr 21, 2009 at 14:04 UTC | |
Re: Distributed "event" broadcasting?
by beadon (Initiate) on Apr 21, 2009 at 21:50 UTC | |
Re: Distributed "event" broadcasting?
by superfrink (Curate) on Apr 24, 2009 at 03:49 UTC |
Back to
Seekers of Perl Wisdom