# Understanding Mediasoup 3 (Part III)

**URL:** <https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877>\
**Category:** Deployment & Scalability\
**Created:** [February 26, 2024, 9:36pm UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877 "2024-02-26T21:36:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agoenks29D](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/agoenks29d/32/1857_2.png) [@agoenks29D](https://mediasoup.discourse.group/u/agoenks29D)\
**Post date:** [February 26, 2024, 9:36pm UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877/1 "2024-02-26T21:36:47Z")

</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.

1. I create 2 workers.
2. I create route 1 on worker 1.
3. I create route 2 on worker 2.
4. I create producer 1 (audio) & producer 2 (video) on worker 1.
5. I create consumer 1 (audio) & consumer 2 (video) on route 2.

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/1/1de5bf1fb11982095ad6fcfdca1fb0baff31a9a0.png)

If route 2 reaches the consumer limit, I will create a new route to manage the creation of consumers.

my imagine if router reaches the consumer limit

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/b/b1d9a14dcc93e6827259d42651d2f6f3b41bbd4c.png)

But I get an error, is my understanding incorrect?

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/7/7f434ca4626a64617b19067b4f915309c0cc4d8b.png)

---

<div class="post-metadata">

**Author:** ![gonodefunc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/gonodefunc/32/2345_2.png) [@gonodefunc](https://mediasoup.discourse.group/u/gonodefunc)\
**Post date:** [March 5, 2024, 1:42am UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877/2 "2024-03-05T01:42:47Z")

</div>

The origin router and target router cannot be in the same worker.

---

<div class="post-metadata">

**Author:** ![agoenks29D](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/agoenks29d/32/1857_2.png) [@agoenks29D](https://mediasoup.discourse.group/u/agoenks29D)\
**Post date:** [July 12, 2026, 5:00am UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877/3 "2026-07-12T05:00:04Z")

</div>

Is my architecture design easy to understand? What are your thoughts on it? Do you think it is correct?

 ![image](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/2X/9/9c2a0e22a6f712b80f7d0c8ec3f55bc0e7c2d46f.jpeg)

---

<div class="post-metadata">

**Author:** ![benjaminevans](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@benjaminevans](https://mediasoup.discourse.group/u/benjaminevans)\
**Post date:** [November 23, 2026, 4:40pm UTC](https://mediasoup.discourse.group/t/understanding-mediasoup-3-part-iii/5877/5 "2026-11-23T16:40:05Z")

</div>

I can’t evaluate the attached diagram, but the key checks are: mediasoup does not impose a per-router consumer cap, so enforce your 10-consumer limit in app logic before createConsumer. Also, a pipe transport does not automatically make existing producers consumable. You need a pipeProducer on the source router and a pipeConsumer on the target router, then create normal consumers of that pipeConsumer on the target router. The two routers should be in different workers. If your design assumes otherwise, adjust it.
