Skip to main content
Known Participant
June 5, 2011
Question

Deliver message to all peers in rtmfp

  • June 5, 2011
  • 1 reply
  • 1388 views

Hi!

How can I send some data to ALL peers via p2p-network?

I tried using netgroup.post() but not all users recieved this messages.

Then I tried to get peers to resend ( via post() ) all the data they have received - this works well, but produces large amounts of additional traffic for all peers (3х-5х and more)

Is there a way guaranteed to deliver a message from the server to all peers? (not sending data from a server directly to each peer)

Thanks!

    This topic has been closed for replies.

    1 reply

    Nikhil_Kalyan
    Participating Frequently
    June 7, 2011

    RTMFP is all UDP traffic isn't it ? And hence the reliability is traded off. Though NetGroup.post works well for most cases (and very good if your mesh is big and well established), nevertheless the delivery cannot be gauranteed.

    Adobe Employee
    June 9, 2011

    RTMFP tries really hard to get NetGroup.post() to all members.  however, every posted message must be unique.  if you're periodically posting identical messages, it might not be propagated throughout the group. be sure your posted message is unique, perhaps by adding your peerID and an increasing sequence number to each message.

    Adobe Employee
    June 9, 2011

    the only way to guarantee delivery of data to all members of a group is to use the Object Replication system (NetGroup.addHaveObjects()/NetGroup.addWantObjects() and related APIs).  this mode is eventually reliable but may take an unbounded amount of time to converge.  also, if more than one peer will be originating data, you will need an object index arbiter.