Just another Perl shrine | |
PerlMonks |
Re: Distributed "event" broadcasting?by dexterbt1 (Novice) |
on Apr 21, 2009 at 07:38 UTC ( [id://758895]=note: print w/replies, xml ) | Need Help?? |
Sounds like you require a publish-subscribe messaging middleware solution.
I'd recommend using the STOMP protocol for this particular requirement. Durable Subscriptions + Topics will solve the need to multicast to multiple subscribers. That is, clients (subscribers) will have connect to a broker and "listen" for messages from a topic. A producer also connects to the broker and will be able to send messages to the topic. Each subscribers will get the exact message as sent by the producer. You might want to look at some of the mature brokers supporting STOMP like ActiveMQ or RabbitMQ. There is one at CPAN if you prefer a perl-based one: POE::Component::MessageQueue. CPAN have some client libraries like: Net::Stomp as the client library, and the POE-based POE::Component::Client::Stomp Just remember the important aspects of maintaining like a messaging system like persistence, durable subscriptions, etc.
In Section
Seekers of Perl Wisdom
|
|