howardchung / watchparty

Watch anything together in-sync with your friends
https://www.watchparty.me
MIT License
694 stars 130 forks source link

Scale TURN servers #683

Open howardchung opened 1 year ago

howardchung commented 1 year ago

We'll need to scale the TURN server soon to support screen/file share and video chat traffic.

Options:

evangineer commented 5 months ago

This is what the Coturn docs actually have to say on the topic:

Performance and Load Balancing:

When used as a part of an ICE solution, for VoIP connectivity, this TURN server can handle thousands simultaneous calls per CPU (when TURN protocol is used) or tens of thousands calls when only STUN protocol is used. For virtually unlimited scalability a load balancing scheme can be used. The load balancing can be implemented with the following tools (either one or a combination of them):

evangineer commented 5 months ago

There's some insight on scaling Coturn here: https://webrtchacks.com/coturn-no-time-to-die-qa-with-new-project-leads/#post-3942-_gnecil8tv1mg