# Deployment & Scalability

**URL:** https://mediasoup.discourse.group/c/deployment-and-scalability/13.md

[Latest](https://mediasoup.discourse.group/latest.md) · [Categories](https://mediasoup.discourse.group/categories.md)

---

## [About the Deployment & Scalability category](https://mediasoup.discourse.group/t/about-the-deployment-scalability-category/915)

<div class="topic-metadata">

**Author:** [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Replies:** 1\
**Last updated:** [May 24, 2021, 7:10pm UTC](https://mediasoup.discourse.group/t/about-the-deployment-scalability-category/915 "2021-05-24T19:10:59Z")

</div>

Questions about mediasoup deployments (AWS, Azure, Google Cloud, Docker, networking, routing, scalability, etc).

---

## [Handling server-wide congestion](https://mediasoup.discourse.group/t/handling-server-wide-congestion/7000)

<div class="topic-metadata">

**Author:** [@itsfolf](https://mediasoup.discourse.group/u/itsfolf)\
**Replies:** 3\
**Last updated:** [August 28, 2026, 4:51pm UTC](https://mediasoup.discourse.group/t/handling-server-wide-congestion/7000 "2026-08-28T16:51:06Z")

</div>

Hey there, I am currently facing an issue where due to too many users being connected to the same server (separate rooms, separate workers) the server’s uplink is becoming congested producing a choppy experience with bo…

---

## [Understanding Mediasoup 3 (Part III)](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877)

<div class="topic-metadata">

**Author:** [@agoenks29D](https://mediasoup.discourse.group/u/agoenks29D)\
**Replies:** 2\
**Last updated:** [July 12, 2026, 5:00am UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877 "2026-07-12T05:00:04Z")

</div>

In my understanding, “Pipe Router” is used to handle consumer limits on each route. In this scenario, I am trying to limit each route to only have 10 consumers. I create 2 workers. I create route 1 on worker 1. I creat…

---

## [What web server do you use for your Mediasoup projects? (Nginx config review)](https://mediasoup.discourse.group/t/what-web-server-do-you-use-for-your-mediasoup-projects-nginx-config-review/6916)

<div class="topic-metadata">

**Author:** [@omidsaifpanahi](https://mediasoup.discourse.group/u/omidsaifpanahi)\
**Replies:** 3\
**Last updated:** [November 16, 2025, 1:23pm UTC](https://mediasoup.discourse.group/t/what-web-server-do-you-use-for-your-mediasoup-projects-nginx-config-review/6916 "2025-11-16T13:23:50Z")

</div>

Hi everyone, I’m interested to know what web server most of you use in production for Mediasoup projects. In my setup I’m using Nginx as a reverse proxy in front of a Node.js application that uses Socket.IO. I’d appre…

---

## [Memory issues after upgrading mediasoup to 3.18.0](https://mediasoup.discourse.group/t/memory-issues-after-upgrading-mediasoup-to-3-18-0/6897)

<div class="topic-metadata">

**Author:** [@j4gd33p](https://mediasoup.discourse.group/u/j4gd33p)\
**Replies:** 13\
**Last updated:** [October 27, 2025, 2:54pm UTC](https://mediasoup.discourse.group/t/memory-issues-after-upgrading-mediasoup-to-3-18-0/6897 "2025-10-27T14:54:04Z")

</div>

We observed that the Mediasoup server’s memory usage started spiking after upgrading from version 3.12.0 to 3.18.0. We implemented all the required breaking changes during the upgrade, such as updating listenIps to list…

---

## [Streams Getting Stuck When Running Multiple Mediasoup Rooms in Parallel](https://mediasoup.discourse.group/t/streams-getting-stuck-when-running-multiple-mediasoup-rooms-in-parallel/6880)

<div class="topic-metadata">

**Author:** [@sandilya27](https://mediasoup.discourse.group/u/sandilya27)\
**Replies:** 1\
**Last updated:** [October 9, 2025, 11:48pm UTC](https://mediasoup.discourse.group/t/streams-getting-stuck-when-running-multiple-mediasoup-rooms-in-parallel/6880 "2025-10-09T23:48:50Z")

</div>

Hi everyone, I’ve built a live classroom application using Mediasoup, and everything worked smoothly during initial tests with a single class. However, when multiple classrooms (rooms) are active at the same time, the s…

---

## [Can the users of a room use multiple workers?](https://mediasoup.discourse.group/t/can-the-users-of-a-room-use-multiple-workers/6487)

<div class="topic-metadata">

**Author:** [@omidsaifpanahi](https://mediasoup.discourse.group/u/omidsaifpanahi)\
**Replies:** 2\
**Last updated:** [September 15, 2025, 9:25am UTC](https://mediasoup.discourse.group/t/can-the-users-of-a-room-use-multiple-workers/6487 "2025-09-15T09:25:32Z")

</div>

Can the users of a room use multiple workers?

---

## [High RSS(Resident Set Size) Growth & Memory Not Released Until Restart on Mediasoup Servers](https://mediasoup.discourse.group/t/high-rss-resident-set-size-growth-memory-not-released-until-restart-on-mediasoup-servers/6860)

<div class="topic-metadata">

**Author:** [@HARJEETSINGHX](https://mediasoup.discourse.group/u/HARJEETSINGHX)\
**Replies:** 2\
**Last updated:** [September 13, 2025, 1:41pm UTC](https://mediasoup.discourse.group/t/high-rss-resident-set-size-growth-memory-not-released-until-restart-on-mediasoup-servers/6860 "2025-09-13T13:41:41Z")

</div>

Hi Team, We’ve been running multiple Mediasoup server instances in production (a server with 8 GB RAM). On one server, we hit HostOutOfMemory, and the server crashed, though user counts are balanced across servers. Obs…

---

## [Media Soup with AWS Infrastructure](https://mediasoup.discourse.group/t/media-soup-with-aws-infrastructure/6854)

<div class="topic-metadata">

**Author:** [@aditigupta](https://mediasoup.discourse.group/u/aditigupta)\
**Replies:** 0\
**Last updated:** [September 2, 2025, 8:24am UTC](https://mediasoup.discourse.group/t/media-soup-with-aws-infrastructure/6854 "2025-09-02T08:24:05Z")

</div>

I’m reaching out to seek your advice on setting up an application environment. The project involves Node.js, WebRTC, MediaSoup, and a React-based application, with a requirement for scalability. We attempted to implemen…

---

## [Mediasoup Demo App - AWS EC2](https://mediasoup.discourse.group/t/mediasoup-demo-app-aws-ec2/6154)

<div class="topic-metadata">

**Author:** [@juber-nunes](https://mediasoup.discourse.group/u/juber-nunes)\
**Replies:** 1\
**Last updated:** [August 21, 2025, 1:38pm UTC](https://mediasoup.discourse.group/t/mediasoup-demo-app-aws-ec2/6154 "2025-08-21T13:38:05Z")

</div>

In a scenario where I have a Route 53 with a A record poiting to a public facing NLB with a TLS 443 listener sending the traffic to (target group) EC2 (private subnet) running mediaoup server on docker (docker compose). …

---

## [Why does my backend work on AWS without a TURN server, but needs one on GCP?](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812)

<div class="topic-metadata">

**Author:** [@sandilya27](https://mediasoup.discourse.group/u/sandilya27)\
**Replies:** 2\
**Last updated:** [August 14, 2025, 5:53am UTC](https://mediasoup.discourse.group/t/why-does-my-backend-work-on-aws-without-a-turn-server-but-needs-one-on-gcp/6812 "2025-08-14T05:53:17Z")

</div>

I have a MediaSoup backend setup that works fine on AWS without configuring a TURN server. However, when I deploy the same setup to GCP, peer connections fail unless I configure a TURN server. Can anyone explain the rea…

---

## [Mediasoup Demo Deployment on ec2 not working](https://mediasoup.discourse.group/t/mediasoup-demo-deployment-on-ec2-not-working/6761)

<div class="topic-metadata">

**Author:** [@Omotayo](https://mediasoup.discourse.group/u/Omotayo)\
**Replies:** 6\
**Last updated:** [July 10, 2025, 4:53pm UTC](https://mediasoup.discourse.group/t/mediasoup-demo-deployment-on-ec2-not-working/6761 "2025-07-10T16:53:58Z")

</div>

Hi everyone, I need some assistance with deploying the MediaSoup demo on an AWS EC2 instance. I’ve successfully deployed the demo on an EC2 instance with 15 GB of RAM. I also updated the announcedIp to match the instan…

---

## [Best Architecture for Offloading MediaStream from Mediasoup to a Sidecar Node.js Service for Image Processing](https://mediasoup.discourse.group/t/best-architecture-for-offloading-mediastream-from-mediasoup-to-a-sidecar-node-js-service-for-image-processing/6760)

<div class="topic-metadata">

**Author:** [@HARJEETSINGHX](https://mediasoup.discourse.group/u/HARJEETSINGHX)\
**Replies:** 2\
**Last updated:** [July 10, 2025, 4:28pm UTC](https://mediasoup.discourse.group/t/best-architecture-for-offloading-mediastream-from-mediasoup-to-a-sidecar-node-js-service-for-image-processing/6760 "2025-07-10T16:28:02Z")

</div>

Hi team, We are running a production-grade Mediasoup server and looking to implement a Node.js-based sidecar service (deployed on Kubernetes with HPA) that will perform image processing and detection on all video stream…

---

## [cant get demo to work on localhost](https://mediasoup.discourse.group/t/cant-get-demo-to-work-on-localhost/6762)

<div class="topic-metadata">

**Author:** [@marklaz](https://mediasoup.discourse.group/u/marklaz)\
**Replies:** 1\
**Last updated:** [July 10, 2025, 12:13pm UTC](https://mediasoup.discourse.group/t/cant-get-demo-to-work-on-localhost/6762 "2025-07-10T12:13:28Z")

</div>

after deployment locally i cant get it working: remote peers are not showing. I did try with latest version of the client code before. Here I’ve simply deployed the demo as is: Symptoms: remote streams missing, can’t…

---

## [Scaling Mediasoup: Vertical and Horizontal Scaling Strategies](https://mediasoup.discourse.group/t/scaling-mediasoup-vertical-and-horizontal-scaling-strategies/6728)

<div class="topic-metadata">

**Author:** [@obrucheoghene](https://mediasoup.discourse.group/u/obrucheoghene)\
**Replies:** 0\
**Last updated:** [June 13, 2025, 8:12pm UTC](https://mediasoup.discourse.group/t/scaling-mediasoup-vertical-and-horizontal-scaling-strategies/6728 "2025-06-13T20:12:43Z")

</div>

A question I often get asked is: “How scalable is Mediasoup, and how can I scale it properly?” The short answer is: very scalable—both vertically and horizontally. One of the most powerful aspects of Mediasoup is that…

---

## [Regarding the issues I encountered during the deployment of kernel3](https://mediasoup.discourse.group/t/regarding-the-issues-i-encountered-during-the-deployment-of-kernel3/6637)

<div class="topic-metadata">

**Author:** [@jinbingwei](https://mediasoup.discourse.group/u/jinbingwei)\
**Replies:** 0\
**Last updated:** [April 18, 2025, 9:35am UTC](https://mediasoup.discourse.group/t/regarding-the-issues-i-encountered-during-the-deployment-of-kernel3/6637 "2025-04-18T09:35:57Z")

</div>

My mediasoup version is 3.15.3, but when downloading mediasoup work, there is no kernel3 version available. I encountered a lot of problems building with Python 3. Can someone send me a copy of the completed mediasoup wo…

---

## [Everything works fine in my local environment, but after deploying to staging, I only see a black screen.](https://mediasoup.discourse.group/t/everything-works-fine-in-my-local-environment-but-after-deploying-to-staging-i-only-see-a-black-screen/6571)

<div class="topic-metadata">

**Author:** [@anujnema5](https://mediasoup.discourse.group/u/anujnema5)\
**Replies:** 4\
**Last updated:** [March 30, 2025, 3:52pm UTC](https://mediasoup.discourse.group/t/everything-works-fine-in-my-local-environment-but-after-deploying-to-staging-i-only-see-a-black-screen/6571 "2025-03-30T15:52:59Z")

</div>

We’re using DigitalOcean and Docker, and I’ve also opened RTC ports on my DigitalOcean droplet. Does anyone have any insights on this?

---

## [Deploy production mediasoup with cloudflare tunnel](https://mediasoup.discourse.group/t/deploy-production-mediasoup-with-cloudflare-tunnel/6541)

<div class="topic-metadata">

**Author:** [@tegarsaputradev](https://mediasoup.discourse.group/u/tegarsaputradev)\
**Replies:** 2\
**Last updated:** [March 9, 2025, 9:14pm UTC](https://mediasoup.discourse.group/t/deploy-production-mediasoup-with-cloudflare-tunnel/6541 "2025-03-09T21:14:52Z")

</div>

is it possible to deploy production with cloudflare tunnel? i am success get consumer stream or producer stream on local, but failed on production. because there is rtcPort and listen ips

---

## [Users vs minimal server configuration vs bandwidth?](https://mediasoup.discourse.group/t/users-vs-minimal-server-configuration-vs-bandwidth/6502)

<div class="topic-metadata">

**Author:** [@evilarinho](https://mediasoup.discourse.group/u/evilarinho)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 11:45am UTC](https://mediasoup.discourse.group/t/users-vs-minimal-server-configuration-vs-bandwidth/6502 "2025-03-07T11:45:13Z")

</div>

Hi, I’ve finished developing my application with mediasoup and now it’s time to put it into production. I’ve set up an architecture that allows me to expand and load new servers if the number of users starts to increase…

---

## [Mediasoup - Users Cannot Join Room (Media Blocked)](https://mediasoup.discourse.group/t/mediasoup-users-cannot-join-room-media-blocked/6507)

<div class="topic-metadata">

**Author:** [@Math](https://mediasoup.discourse.group/u/Math)\
**Replies:** 5\
**Last updated:** [February 26, 2025, 1:41pm UTC](https://mediasoup.discourse.group/t/mediasoup-users-cannot-join-room-media-blocked/6507 "2025-02-26T13:41:09Z")

</div>

Hi everyone, I’m using mediasoup in an Express project to build a video conferencing application. Sometimes, I’m facing an issue where some users cannot join the room. The media connection is blocked, likely due to fir…

---

## [Producer/consumer transports get disconnected and reconnected continuously on a specific network.](https://mediasoup.discourse.group/t/producer-consumer-transports-get-disconnected-and-reconnected-continuously-on-a-specific-network/6399)

<div class="topic-metadata">

**Author:** [@dikyardiyanto17](https://mediasoup.discourse.group/u/dikyardiyanto17)\
**Replies:** 4\
**Last updated:** [December 24, 2024, 7:05am UTC](https://mediasoup.discourse.group/t/producer-consumer-transports-get-disconnected-and-reconnected-continuously-on-a-specific-network/6399 "2024-12-24T07:05:37Z")

</div>

Hello everyone, I tested my application, and it works normally. However, I encountered an issue when using a specific network: the transport repeatedly disconnects and reconnects. For other users, the video appears blan…

---

## [Stream an Audio from mobile device as Audio Producer to RTP Router](https://mediasoup.discourse.group/t/stream-an-audio-from-mobile-device-as-audio-producer-to-rtp-router/6386)

<div class="topic-metadata">

**Author:** [@MoatazNoaman2001](https://mediasoup.discourse.group/u/MoatazNoaman2001)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 3:56pm UTC](https://mediasoup.discourse.group/t/stream-an-audio-from-mobile-device-as-audio-producer-to-rtp-router/6386 "2024-12-13T15:56:09Z")

</div>

Hello, I am new to mediasoup and i am using mediasoup\_flutter\_client and need a way to take a audio stream from output device to produce it for RTP router, I thought we can take a output device to act as input and dist…

---

## [Transport not connecting when nginx loadbalancer used](https://mediasoup.discourse.group/t/transport-not-connecting-when-nginx-loadbalancer-used/6372)

<div class="topic-metadata">

**Author:** [@magnimuslaertius](https://mediasoup.discourse.group/u/magnimuslaertius)\
**Replies:** 5\
**Last updated:** [December 4, 2024, 7:32am UTC](https://mediasoup.discourse.group/t/transport-not-connecting-when-nginx-loadbalancer-used/6372 "2024-12-04T07:32:15Z")

</div>

Hello everyone, I apologize for asking this question but I’ve been stuck over this for many days. Basically, I’m trying to deploy my application on AWS EC2 instance. I am using docker-compose and nginx for creating mult…

---

## [Transport Connection Fails When used the Nginx LoadBalancer](https://mediasoup.discourse.group/t/transport-connection-fails-when-used-the-nginx-loadbalancer/6373)

<div class="topic-metadata">

**Author:** [@teja-86](https://mediasoup.discourse.group/u/teja-86)\
**Replies:** 0\
**Last updated:** [December 3, 2024, 5:29pm UTC](https://mediasoup.discourse.group/t/transport-connection-fails-when-used-the-nginx-loadbalancer/6373 "2024-12-03T17:29:41Z")

</div>

Hi Everyone, I am currently facing an issue with UDP port conflicts while connecting to different backend servers through a load balancer. This setup involves a Mediasoup application and an Nginx server deployed on an E…

---

## [horizontal scalability mediasoup server](https://mediasoup.discourse.group/t/horizontal-scalability-mediasoup-server/6335)

<div class="topic-metadata">

**Author:** [@gabomata79](https://mediasoup.discourse.group/u/gabomata79)\
**Replies:** 1\
**Last updated:** [November 16, 2024, 10:04pm UTC](https://mediasoup.discourse.group/t/horizontal-scalability-mediasoup-server/6335 "2024-11-16T22:04:03Z")

</div>

Hello mates, I am currently using a Mediasoup server for a small WebRTC service on Kubernetes, and I need to be able to scale this server horizontally. I have a load balancer in front of it. How could I tackle this chal…

---

## [Trouble setting announced IP while deploying on render.](https://mediasoup.discourse.group/t/trouble-setting-announced-ip-while-deploying-on-render/6341)

<div class="topic-metadata">

**Author:** [@AdNarayan07](https://mediasoup.discourse.group/u/AdNarayan07)\
**Replies:** 2\
**Last updated:** [November 16, 2024, 7:15am UTC](https://mediasoup.discourse.group/t/trouble-setting-announced-ip-while-deploying-on-render/6341 "2024-11-16T07:15:24Z")

</div>

Hello, I have created a video conferencing application in mediasoup which works absolutely fine on localhost. But I need to deploy it on render but services on render cannot be accessed by IP address, as answered by the…

---

## [Usage of number of CPU core of each worker means physical CPU core ?](https://mediasoup.discourse.group/t/usage-of-number-of-cpu-core-of-each-worker-means-physical-cpu-core/6088)

<div class="topic-metadata">

**Author:** [@kikikiec](https://mediasoup.discourse.group/u/kikikiec)\
**Replies:** 4\
**Last updated:** [October 28, 2024, 7:08pm UTC](https://mediasoup.discourse.group/t/usage-of-number-of-cpu-core-of-each-worker-means-physical-cpu-core/6088 "2024-10-28T19:08:54Z")

</div>

Hi. I’m planning to build a media server using Mediasoup. so According to Mediasoup. from the document “A good example of this scenario is an application that provides multi-party conference rooms. Each room uses a …

---

## [Advices on dealing with unreliable networks](https://mediasoup.discourse.group/t/advices-on-dealing-with-unreliable-networks/1064)

<div class="topic-metadata">

**Author:** [@copiltembel](https://mediasoup.discourse.group/u/copiltembel)\
**Replies:** 7\
**Last updated:** [September 29, 2024, 6:13am UTC](https://mediasoup.discourse.group/t/advices-on-dealing-with-unreliable-networks/1064 "2024-09-29T06:13:17Z")

</div>

I am looking for advice when dealing with mediasoup libraries if used on unreliable networks (ex. mediasoup-client app running on a mobile device). I know that this is only related to mediasoup, so my questions relate mo…

---

## [strange behaviour of mediasoup](https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208)

<div class="topic-metadata">

**Author:** [@deepansh-maurya](https://mediasoup.discourse.group/u/deepansh-maurya)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 7:51am UTC](https://mediasoup.discourse.group/t/strange-behaviour-of-mediasoup/6208 "2024-08-29T07:51:32Z")

</div>

while creating the transport on the server side, when i am using the private ip there all the things are fine. But when i use my public ip then mediasoup shows strange behavior that , the connection is failing or disc…

---

## [recommended mediasoup cluster topology?](https://mediasoup.discourse.group/t/recommended-mediasoup-cluster-topology/1497)

<div class="topic-metadata">

**Author:** [@binxie33](https://mediasoup.discourse.group/u/binxie33)\
**Replies:** 4\
**Last updated:** [August 23, 2024, 9:28am UTC](https://mediasoup.discourse.group/t/recommended-mediasoup-cluster-topology/1497 "2024-08-23T09:28:11Z")

</div>

I am trying to implement mediasoup clusters behide NLB servers. There are three topologies I can think of: NLB server distribute rooms to different mediasoup nodes, users in the same room are connected to the same med…

[Next page](https://mediasoup.discourse.group/c/deployment-and-scalability/13.md?page=1)
