Hello everyone,
I’ve recently started using the Janus WebRTC gateway behind NAT, and my clients utilize Coturn for relaying traffic to Janus instances. (For more details, please refer to my previous post: link to post.) This configuration has made my setup more complex but potentially opens new possibilities. Previously, using Docker Swarm’s overlay network for my Janus instances was not feasible due to the impracticality of opening a large number of ports. However, now that I’m employing Coturn, I only need to open a single port (3478) to the external world. Coturn can then use the Docker Swarm overlay network to relay traffic to my Janus instances.
This approach offers significant advantages: a) It eliminates the need for a separate macvlan network for Janus instances in my on-premises (baremetal) setup, and b) It removes the restriction of one instance per host on AWS and other cloud providers, where I previously had to use the host network for Janus instances to prevent port conflicts etc.
Additionally, this setup allows me to leverage the service discovery features of Docker Swarm (currently, I’m using Consul for this purpose).
However, I have reservations about the efficiency of this configuration. I’m uncertain whether high-throughput UDP traffic is well-suited for overlay networks. I would greatly appreciate your insights and thoughts on this matter. Thank you in advance for your assistance.
Kaan.