We are planning to install mediasoup-demo application on two aws instances. Now how we can load balance these two instances so media-soup will do the job of figuring room is created on which server and directly pinpointing that server to peers. Does this thing is possible with mediasoup-demo app if yes then how can be mediasoup-demo application need to configured to load balance between multiple servers?
Mediasoup is just a library, you need to build an app with it.
Demo application is a demo application, not production solution with load balancing and such.
Oh yes.
Nginx, HAProxy, etc. can do that, but not mediasou-demo
.
Remember to proxy the same room’s into the same server, such as hash by roomId
.