Jitsi

Open Source SFUs

Today we are trying something new. We invited Tsahi Levent-Levi to write a guest postfor us. For those working with WebRTC for some time Tsahi will be a faminilar name. Tsahi has been working in the software communications space as an engineer, manager, marketer and CTO for the last two decades. In his various roles he meets and helps vendors with their communication projects, especially when these relate to WebRTC, CPaaS and AI.


Building real life applications using WebRTC is more than just grabbing a sample code from GitHub and adding some HTML and CSS on top of it. It requires installing and managing servers.

To get a WebRTC session to work, you will be needing a signaling server (to get the users connected to one another) and TURN servers (to get over NATs and firewalls when needed). In many cases, you will also need media servers to handle some media processing or routing on the server side.

The most common use cases for media servers in WebRTC rely on SFUs, Selective Forwarding Units. These types of servers route media around the network from one user to another. They are quite handy for group video conferences – it enables them to run efficiently without needing to encode and decode the media (a very expensive task) while maintaining a great user experience.

As a developer, if you are in need of an SFU, there are a few alternatives that you can take:

  1. Use a SaaS vendor or a CPaaS provider, use everything and the kitchen sink that they have to offer (including an SFU somewhere in there)
  2. Find a commercial vendor and license an SFU from them
  3. Build your own
  4. Use an open source SFU – like… Jitsi! (there are a few others as well)

That last option is quite popular with those who want to put up their own infrastructure. It gives you both flexibility (you have the source) as well as faster development (it’s a media server implementation).

Why should you be considering the use of an open source SFU?

Starting a project and needing an SFU? Why not try using an open source one? And if you’re headed that way, make sure you check out these criteria for choosing an open source SFU.


Guest Blog by Tsahi Levent-Levi, Author of BlogGeek.me as well as CEO & Co-founder at testRTC. He also has online courses (free and paid) at webrtccourse.com

Share this!