One To Many solution

Hello guys, I am trying to build a new web application for social streaming and, in my opinion, Mediasoup is a great solution for that. Could someone please help me with the next questions:

  1. How many people can see a video with one to many streaming ? (I have 1k-5k people online on one stream)

  2. I know 1 router can have only 500 consumers. Can I solve my task with horizontal scaling and separate consumers between workers?

  3. Maybe someone has a diagram of how 1 large room works in a few instances? Or maybe a strategy to separate large room between servers?

  1. This depends on server’s core ability and network (less likely memory), assuming both audio/video it can be double the requirements.

  2. You can definitely further feed your producer to more servers to be consumed from making the numbers you expect. I generally have within a room setting 1 -8+ consumer servers used.

  3. I have made a post on scaling and it may help, I use a weight system so I never over-load my producing/consuming abilities which tends to be the hardest part about all this.

You have many options to scale.

I would opt for HLS as it’s easiest to send to hundred/thousands of viewers. This is only if you can accept the transcoding process and give delay to users 5-30 seconds.

1 Like

Link please to this post, its really needed

Check this out, I go into how I do it but no code is shown it’d easier to explain what I am doing and you guys can code something alike or EVEN BETTER! I use many media-servers 7x4vcore machines 1gbp/s networks