Mesh is the simplest WebRTC topology: every participant has a peer connection with every other participant, and each participant uploads N-1 copies of their video (one per other participant). With 2 people each uploads 1 copy — trivial. With 4 people each uploads 3 copies — still fine on a typical home connection. With 8 people each uploads 7 copies — your uplink saturates and quality collapses. Practical mesh limit is about 4 participants on consumer connections.

The advantage of mesh is no server cost and minimum latency (peer-to-peer paths). The major disadvantage is the upload-bandwidth explosion. The secondary disadvantage is signalling complexity — N participants means N×(N-1)/2 peer connections to set up, with ICE and SDP negotiation for each. Modern WebRTC libraries handle this efficiently, but the data plane cost dominates.

Mesh is the right choice for two-person calls, small embedded video chat widgets, and peer-to-peer browser-to-browser content sharing. Anything beyond 4 participants warrants an SFU. Most production video apps (Zoom, Google Meet, Microsoft Teams) skip mesh entirely and use SFU even for two-person calls, accepting the marginal server cost for the uniformity of code path and the ability to scale up if more people join.

Book cover: Video Streaming, Volume 3 of the Fora Soft Video Engineering Handbook

The book · Volume 3 of 7

Video Streaming: A Complete Guide to Video Delivery: From ABR and CDNs to Players, WebRTC, DRM, and the Economics of Streaming

Mesh topology is the quickest way to ship a WebRTC call, and it breaks once each participant has to upload a copy of their video to everyone else. This volume covers mesh, SFU and MCU topologies in detail, with WebRTC bandwidth math, simulcast, media servers and the economics of moving calls to a server. Written by Nikolay Sapunov, CEO at Fora Soft.

Read it on Amazon →Kindle & paperback · Fora Soft Video Engineering Handbook

Your peer-to-peer WebRTC calls fall apart beyond four people?

Tell us your target group size and devices and we will give you a migration plan from mesh topology to an SFU, with bandwidth math and a server cost estimate. 250+ video products shipped since 2005.

Book a 30-min call →WhatsApp →Email us →