3 ms·
curious to know - how do you scale webrtc ? I mean do you use kubernetes and stuff - what load balancer do you use (I assume sessions are "sticky"), etc
by sandGorgon 6y ago
curious to know - how do you scale webrtc ?
I mean do you use kubernetes and stuff - what load balancer do you use (I assume sessions are "sticky"), etc
- ethanwillis 6y agoScaling doesn't always involve kubernetes. But the way you scale WebRTC is by using multiplexers between clients. Let's say you have 2 clients. They can directly send data to each other. Let's say you have 3 clients. Client 1 sends data to Clients 2, 3 Client 2 sends data to Clients 1, 3 Client 3 sends data to Clients 1, 2 As you add more clients the scaling requires n(n-1)/2 edges because it forms a Complete Graph. The idea then is to use a server in the middle. That server could be 3rd party or maybe even one of the participants within the graph.
- sandGorgon 6y agosure - but ultimately you will have to scale the server horizontally. or do you mean that one server can scale till millions of users
- ethanwillis 6y agoIf you have millions of users sure use kubernetes. If you don't have millions of users just setup a handful of decently sized VMs.