Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Distributed "event" broadcasting?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://758895]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found