---
title: "Inside Facebook’s video delivery system"
description: "Facebook spent roughly two years unifying its separate Watch and Reels stacks across mobile clients, the server layer and ranking, in a deliberate order."
url: "https://swe.quest/articles/inside-facebook-s-video-delivery-system-d5975357617c95f8"
canonical: "https://engineering.fb.com/2024/12/10/video-engineering/inside-facebooks-video-delivery-system/"
source: "Meta Engineering"
published: "2024-12-10"
difficulty: "medium"
kind: "Case study"
reading_minutes: 13
tags: ["recommendation-systems","video-media","system-design","mobile","refactoring"]
---

# Inside Facebook’s video delivery system

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2024-12-10, 13 min read, Case study. Original: [https://engineering.fb.com/2024/12/10/video-engineering/inside-facebooks-video-delivery-system/](https://engineering.fb.com/2024/12/10/video-engineering/inside-facebooks-video-delivery-system/)

## Summary

Facebook spent roughly two years unifying its separate Watch and Reels stacks across mobile clients, the server layer and ranking, in a deliberate order. First came a shared client and server data model, then the immersive Reels UI for long-form VOD, then unified ranking (shipped August 2024) once UI signals were consistent, and finally a single video tab mixing Reels, VOD and live. The delivery pipeline runs on five principles: freshness, ranking-decided order, minimal vending, deterministic fetching and signal-driven delivery. Concretely, clients use prefetch, head and tail loads gated on an in-memory pool of three or fewer network stories; the GraphQL server handles caching, throttling, TAO loads and costly privacy checks; and ranking runs a graph-based multi-stage retrieval and ranking workflow with elastic ranking under load.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Recommendations & ranking](https://swe.quest/tags/recommendation-systems.md) (AI & ML)
- [Video & media](https://swe.quest/tags/video-media.md) (Domains)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)

## Prerequisites

- GraphQL basics ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- recommendation system stages
- mobile app networking ([easy posts on Mobile](https://swe.quest/tags/mobile.md?difficulty=easy))

## Keywords

Facebook Reels, Facebook Watch, TAO, GraphQL, elastic ranking, client-side ranking

## Related posts

- [How Facebook encodes your videos](https://swe.quest/articles/how-facebook-encodes-your-videos-a25a3c51f5bfb7c5.md): Meta Engineering · 2021-04-05 · Medium · 12 min read · Video & media, Machine learning, Scheduling, Cost optimization
  Facebook prioritizes advanced video encodings (VP9, slower H264 recipes) by a Benefit/Cost score instead of hard-coded rules.
- [Friend Bubbles: Enhancing Social Discovery on Facebook Reels](https://swe.quest/articles/friend-bubbles-enhancing-social-discovery-on-facebook-reels-3d7a92d940143b48.md): Meta Engineering · 2026-03-18 · Medium · 7 min read · Recommendations & ranking, Machine learning, Mobile, Performance engineering
  Friend bubbles on Facebook Reels surface videos that close friends have reacted to, using two closeness models: a survey-trained model run weekly over trillions of friend pairs, and a context-specific model trained on bubble interactions.
- [An analysis of Facebook photo caching](https://swe.quest/articles/an-analysis-of-facebook-photo-caching-9de93a54cc38848d.md): Meta Engineering · 2014-02-27 · Medium · 6 min read · Caching, CDN & edge, Performance engineering, Algorithms
  Facebook's photo-serving stack (browser caches, PoP edge caches, a photo-ID-sharded origin cache spanning data centers, and the Haystack backend) cuts backend traffic so Haystack serves only 9.9% of photo requests, based on a month-long trace from an SOSP study.
- [Adapting the Facebook Reels RecSys AI Model Based on User Feedback](https://swe.quest/articles/adapting-the-facebook-reels-recsys-ai-model-based-on-user-feedback-9918fb6d6f23d0f0.md): Meta Engineering · 2026-01-14 · Medium · 5 min read · Recommendations & ranking, Machine learning, Evaluation
  Facebook Reels added a User True Interest Survey (UTIS) model that learns from in-feed survey responses asking how well a video matches the viewer's interests, instead of relying only on engagement signals like likes and watch time.
- [From User Sequences to Scaling Laws: A Multi-Stage Architecture for Meta’s Ads Ranking](https://swe.quest/articles/from-user-sequences-to-scaling-laws-a-multi-stage-architecture-for-meta-s-ads-3c689db90be36667.md): Meta Engineering · 2026-08-05 · Hard · 6 min read · Recommendations & ranking, Ads, Model training, Machine learning, Scaling
  Meta scales sequence learning for ads ranking by splitting it into two stages: an offline transformer user model processes thousands of user events asynchronously and caches user-level embeddings, and a lightweight online ranking model combines those embeddings with fresh signals and ad candidates under strict latency budgets.

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)
