Skip to main content
Participant
January 7, 2009
Question

Multiple Netstreams (live feeds) best practices

  • January 7, 2009
  • 1 reply
  • 607 views
Can anyone tell me whether it is better to have multiple live subscribing streams over one NetConnection or a seperate connection for each stream?

Is there any documentation anywhere for best practices? Thanks.
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    January 7, 2009
    This is a good question and it probably depends on the # of streams you had in mind. My first inclination is to have a netconnection for each stream, which would be for future scalability purposes (ie multiple servers could then be used to serve the streams.)
    Participant
    January 7, 2009
    I'm working on a chat app that shows up to 10 live cams at a time in one swf. When a user joins the room the publish through a separate connection, but all of the subscribes are through one connection - I thought it would help to minimize connections to the server to stream through one connection.

    Is it recommended to separate these out into individual connections?
    Participating Frequently
    January 7, 2009
    Well, if all the streams are on the same server, I suppose it wouldn't make a lot of sense to have 10 netconnections to the same server, so it would be preferrable to stream them all over the same one.