Reduce subscriptions
Paginate video, pause off-screen consumers, and avoid forwarding tracks that cannot affect the experience.
WebRTC scale is not a single participant limit. It is the combined load from producers, subscribed consumers, bitrate layers, recording egress, AI media, and regional network paths. Control those variables first, then distribute rooms across workers and regions.
Signaling controls the session. Secure WebRTC transports carry media. The SFU forwards the streams and quality layers each receiver needs.
A large room needs selective subscriptions and presentation rules. A large platform needs room placement, worker health, regional routing, and failure recovery.
| Topology | Best fit | Main tradeoff | Media control |
|---|---|---|---|
| P2P | One-to-one calls and very small sessions | Each participant sends media to every other participant | Application-owned |
| SFU | Interactive rooms, broadcasts, recording, and real-time AI | Requires server routing, capacity planning, and observability | Server selects and forwards streams |
| MCU | A single precomposed output or legacy endpoints | Server decodes and mixes media, increasing compute cost | Server composes the final stream |
Paginate video, pause off-screen consumers, and avoid forwarding tracks that cannot affect the experience.
Use quality layers and receiver conditions instead of sending the largest stream to every participant.
Place room ownership on healthy workers and route users to regions with suitable latency and capacity.
The useful sequence is workload, ownership, media path, and proof. Starting with a UI framework skips the decisions that determine reliability and cost.
Track producer count, active consumers, aggregate bitrate, CPU, memory, and transport health.
Set participant, producer, page-size, resolution, and recording limits appropriate to the use case.
Assign rooms to workers and regions without splitting one room across infrastructure unnecessarily.
Use health checks, idempotent signaling, reconnect behavior, and observable placement decisions.
mediasoup is an independent, signaling-agnostic open-source SFU. MediaSFU builds a managed platform around that routing foundation; it does not rename the upstream project or erase the responsibilities your application still owns.
Read the official mediasoup overviewProducer bitrate, consumer subscriptions, quality layers, packet processing, recording or AI egress, and network capacity all contribute. Participant count alone is incomplete.
Yes, when off-screen video consumers are paused or not created. Merely hiding video with CSS does not stop media delivery.
Keeping room ownership together is simpler when capacity permits. Very large workloads may need specialized distribution, but it adds routing and synchronization complexity.