---
title: "How to build large-scale end-to-end encrypted group video calls"
description: "Signal scaled end-to-end encrypted group calls from 5 to 40 participants by writing its own open source Selective Forwarding Unit in Rust, after a modified off-the-shelf SFU couldn't get past 8 participants because of server CPU usage."
url: "https://swe.quest/articles/how-to-build-large-scale-end-to-end-encrypted-group-video-calls-af2fa574ffb4fc37"
canonical: "https://signal.org/blog/how-to-build-encrypted-group-calls/"
source: "Signal"
published: "2021-12-15"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 14
tags: ["video-media","communications","networking","rust","cryptography"]
---

# How to build large-scale end-to-end encrypted group video calls

A post on [Signal](https://swe.quest/sources/signal.md), published 2021-12-15, 14 min read, Deep dive. Original: [https://signal.org/blog/how-to-build-encrypted-group-calls/](https://signal.org/blog/how-to-build-encrypted-group-calls/)

## Summary

Signal scaled end-to-end encrypted group calls from 5 to 40 participants by writing its own open source Selective Forwarding Unit in Rust, after a modified off-the-shelf SFU couldn't get past 8 participants because of server CPU usage. Selective forwarding is the only architecture that works with E2EE at that scale. The hard part is forwarding the right video resolutions as network conditions change. Three techniques handle it: VP8 simulcast with packet rewriting of RTP SSRCs, sequence numbers, timestamps and VP8 picture IDs; googcc/transport-cc delay-based congestion control, implemented as stream processing; and rate allocation rules that prioritize smaller layers and larger requested resolutions within the send budget.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [Communications](https://swe.quest/tags/communications.md) (Domains)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)

## Prerequisites

- RTP basics
- WebRTC concepts ([easy posts on Communications](https://swe.quest/tags/communications.md?difficulty=easy))
- congestion control basics
- end-to-end encryption basics ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))

## Keywords

Signal Calling Service, SFU, WebRTC, googcc, transport-cc, VP8, RTP, simulcast

## Related posts

- [How OpenAI delivers low-latency voice AI at scale](https://swe.quest/articles/how-openai-delivers-low-latency-voice-ai-at-scale-fa481a5234e95d30.md): OpenAI · 2026-05-04 · Hard · 13 min read · Networking, Real-time systems, Load balancing, Kubernetes, Speech & audio
  OpenAI rearchitected its WebRTC stack for ChatGPT voice and the Realtime API by splitting a stateless UDP relay from a stateful Go/Pion transceiver that owns ICE, DTLS and SRTP state.
- [FFmpeg at Meta: Media Processing at Scale](https://swe.quest/articles/ffmpeg-at-meta-media-processing-at-scale-08e799a47d13d432.md): Meta Engineering · 2026-03-02 · Easy · 6 min read · Video & media, Open source, Performance engineering, Hardware
  Meta retired its long-diverged internal FFmpeg fork by working with FFmpeg developers, FFlabs and VideoLAN to upstream the two capabilities it depended on.
- [How we built a realtime system for responsive voice AI in six months](https://swe.quest/articles/how-we-built-a-realtime-system-for-responsive-voice-ai-in-six-months-00acf536a10a0c45.md): OpenAI · 2026-08-03 · Medium · 12 min read · Inference & serving, Real-time systems, Networking, Speech & audio, System design
  GPT-Live replaces turn-detector-based voice AI with a full-duplex voice model that listens and speaks simultaneously, delegating deeper reasoning and tool use to frontier models like GPT-5.5 over an asynchronous RPC path that never blocks media.
- [How to build a 30M RPS CDN in 30 days with Rust and WASM](https://swe.quest/articles/how-to-build-a-30m-rps-cdn-in-30-days-with-rust-and-wasm-874ba9ecc2d85852.md): Railway · 2026-06-04 · Medium · 12 min read · CDN & edge, WebAssembly, Rust, Networking, Deployment
  Railway built Hikari, its own CDN with 60 POPs and 180+ nodes, in 30 days.
- [Adopting AV1 for Real-Time Communication (RTC) at Scale](https://swe.quest/articles/adopting-av1-for-real-time-communication-rtc-at-scale-c700b86b1446a111.md): Meta Engineering · 2026-06-22 · Medium · 18 min read · Video & media, Communications, Mobile, Performance engineering
  Meta now runs AV1 for real-time video calls on most mobile devices in Messenger and WhatsApp.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
