How to Engineer a Social Discovery Feature That Scales to Billions: Lessons from Facebook Reels' Friend Bubbles

By ✦ min read

Introduction

When you first see the Friend Bubbles feature on Facebook Reels, it looks deceptively simple: a small indicator showing which Reels your friends have watched or reacted to. But behind this straightforward interface lies a complex engineering journey that required rethinking machine learning models, reconciling platform-specific behaviors, and finding the one breakthrough that made everything click. In this step-by-step guide, we draw on insights from the Meta Tech Podcast with engineers Subasree and Joseph from the Facebook Reels team to help you build a social discovery feature that can scale to billions of users.

How to Engineer a Social Discovery Feature That Scales to Billions: Lessons from Facebook Reels' Friend Bubbles
Source: engineering.fb.com

What You Need

Step-by-Step Guide

Step 1: Define the Core User Need Behind the 'Simple' Feature

Before writing a single line of code, step back and articulate the social discovery problem. For Friend Bubbles, the team realized that users wanted to see what their friends are engaging with, not just a generic feed of popular Reels. The key was to make this feel effortless and native. Action items:

Step 2: Design an ML Model That Evolves with User Behavior

The initial machine learning model for Friend Bubbles was built on top of existing Reels ranking signals, but it quickly became clear that social signals required a different approach. Subasree and Joseph describe the evolution as moving from a static friend-affinity model to a dynamic one that learns from real-time interactions. How to implement:

Step 3: Uncover and Accommodate Platform Differences (iOS vs. Android)

One of the most surprising findings was that iOS and Android users exhibited very different behaviors around Friend Bubbles. For instance, iOS users tended to tap buttons more deliberately, while Android users were more exploratory. These differences required separate optimizations for each platform. Practical tips:

Step 4: Find the 'Click' Moment Through Iterative Breakthroughs

According to the Meta engineers, the feature didn't click until a key insight emerged: users wanted to see why a friend watched a Reel – not just that they did. Adding subtle cues (like reaction icons or timestamps) transformed engagement overnight. How to engineer your 'click' moment:

How to Engineer a Social Discovery Feature That Scales to Billions: Lessons from Facebook Reels' Friend Bubbles
Source: engineering.fb.com

Step 5: Scale to Billions Without Sacrificing Performance

Once the feature clicked, the team faced the engineering challenge of serving billions of personalized Friend Bubbles in real time. This required rethinking caching strategies, database queries, and network requests. Scaling strategies:

Tips & Best Practices

By following these steps, you can replicate the approach used by Meta's Reels team to build a social discovery feature that feels effortless yet scales to the world's largest platforms. For more insights, listen to the full discussion on the Meta Tech Podcast.

Tags:

Recommended

Discover More

April 2026 Swift Update: 4 Key Developments You Need to KnowHawaii Eruption Clues May Unlock Venus's Volcanic SecretsThe Quiet Revolution: How Japan's Motorcycle Titans Are Shifting to ElectricNew Milestones for AMD openSIL and Coreboot on Consumer MotherboardsHow We Managed a DNSSEC Failure at the .de TLD: A Step-by-Step Response Guide