# Scaling a stream to many servers

**URL:** <https://mediasoup.discourse.group/t/scaling-a-stream-to-many-servers/3557>\
**Category:** mediasoup libraries\
**Created:** [November 11, 2021, 6:34am UTC](https://mediasoup.discourse.group/t/scaling-a-stream-to-many-servers/3557 "2021-11-11T06:34:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlmeek](https://avatars.discourse-cdn.com/v4/letter/c/b38774/32.png) [@carlmeek](https://mediasoup.discourse.group/u/carlmeek)\
**Post date:** [November 11, 2021, 6:34am UTC](https://mediasoup.discourse.group/t/scaling-a-stream-to-many-servers/3557/1 "2021-11-11T06:34:26Z")

</div>

I’d like to setup multiple media soup servers with re-broadcasting of a stream in order to achieve scaleability. I understand that pipeToRouter can be used to send the stream to many servers, but this can cause problems with keyframes and ultimately limit scaleability

I’ve read this:

> **[mediasoup :: Scalability](https://mediasoup.org/documentation/v3/scalability/)**
>
> Cutting Edge WebRTC Video Conferencing

(Including the red box)

And this:

> [@How to forward stream from one mediasoup v3 server to another?](https://mediasoup.discourse.group/t/how-to-forward-stream-from-one-mediasoup-v3-server-to-another/562/18):
>
> Thanks! Will try Monday

It sounds like there is a solution sitting there ready to work, but no example existing. The “wink wink” implies that libmediasoupclient can do the re-encoding on the server, but I can’t see how, or don’t understand where this sits in relation to the code on PipeToRouter. What is the model?

I’m willing to make a nice donation to media soup (or pay someone directly), I just need a few more pointers to get me in the right direction…. Or in a perfect world a working example. Is anyone able to help?

I’m coding with a node back end.

---

<div class="post-metadata">

**Author:** ![anovikov1984](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/anovikov1984/32/226_2.png) [@anovikov1984](https://mediasoup.discourse.group/u/anovikov1984)\
**Post date:** [November 11, 2021, 6:53am UTC](https://mediasoup.discourse.group/t/scaling-a-stream-to-many-servers/3557/2 "2021-11-11T06:53:09Z")

</div>

Hi!

Yes please contact me in private
