Skip to content

Other architectures

Course: WebRTC Basic implementation, advance discussion - chapter 9

There are two other popular architectures for doing WebRTC

  1. SFU
  2. MCU

Doesn’t scale well beyond 3-4 people in the same call

SFU stands for Selective forwarding unit. This acts as a central media server which forwards packets b/w users

Popular Open source SFUs -

  1. https://github.com/versatica/mediasoup
  2. https://github.com/pion/webrtc (not exactly an SFU but you can build one on top of it)

It mixes audio/video together on the server before forwarding it.

This means it needs to

  1. decode video/audio (using something like ffmpeg)
  2. Mix them (create a video canvas/create a single audio stream)
  3. Send out the merged audio stream to everyone