Design Load Shedding With Request Priorities for Feed Backends

Last updated: November 29, 2026

Quick Overview

Design a load-shedding system for the backends that serve Facebook News Feed so that, during overload, low-priority work such as prefetch and background refresh is dropped first and user-visible feed loads keep succeeding.

Meta
System Design
Software Engineer
Meta
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a load-shedding system for the backends that serve Facebook News Feed so that, during overload, low-priority work such as prefetch and background refresh is dropped first and user-visible feed loads keep succeeding.

Meta runs at a scale where regional traffic shifts and failovers routinely push services to their limits, so infrastructure teams ask how to stay up under overload. The interviewer checks for priority propagation across a deep call graph, queue-based overload detection (as in CoDel-style controllers), and avoiding retry storms.

What the Interviewer Expects
  • Define request criticality classes and propagate them through the call graph
  • Detect overload from queueing delay rather than CPU alone
  • Shed at the earliest layer to save the most work
  • Prevent retry amplification with budgets
  • Validate the system with load tests and regional drain exercises
Key Topics to Cover
load shedding
criticality propagation
adaptive LIFO and CoDel
retry budgets
graceful degradation
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you stop teams from labeling everything as critical?
  • What is the difference between shedding at the edge and at a leaf service?
  • How would you handle a fan-out request where one of 50 leaf calls is shed?
  • How do you test shedding without hurting users?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: each request carries a criticality: CRITICAL (user waiting on feed load), DEGRADABLE (ranking extras, ads secondary signals), BACKGROUND (prefetch, cache warm). Under overload, servers...

High-Level Design

Criticality is set at the edge (web or mobile API layer) from the endpoint and client hint (a pull-to-refresh is critical, a background prefetch is not). It travels in RPC metadata (Thrift headers) to...


Submit Your Answer
Markdown supported