Scalability and PipeTransport

Hello everyone!

Let me start by telling you that I LOVE mediasoup. Thank you for making this library available!

I am trying to create a scalable solution that will pipe between different routers on different hosts. I have my own signaling and I think I understand everything, but would like confirmation before moving forward with the development, just to be sure that I won’t waste effort.

In my understanding:

  • Host 1 has a router1.
  • Core app tells host 2 to prepare to receive incoming stream, router2 is created.
  • Both router1 and router2 create a PipeTransport.
  • The two hosts exchange their PipeTransports.
  • Hosts connect to each other.
  • Now they can consume and produce.

Is this correct?

Yes, exactly the same flow as when things happen in the same host (in this case no network signaling is needed obviously):