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 reply to Re: Distributed "event" broadcasting? by dexterbt1
in thread Distributed "event" broadcasting? by jdrago_999

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.