Design Latency-Aware Routing of Users to Meta Edges and Regions

Last updated: November 29, 2026

Quick Overview

Design the global traffic engineering system that routes each user's request to a good edge point of presence and then to a data center region, accounting for latency, capacity, and failures, as Meta does for its apps worldwide.

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

0

0

0 solved


Design the global traffic engineering system that routes each user's request to a good edge point of presence and then to a data center region, accounting for latency, capacity, and failures, as Meta does for its apps worldwide.

Meta serves billions of users from edge PoPs and a smaller set of data center regions, and decides routing with systems that combine DNS, anycast and measured latency. The interviewer checks that you separate edge selection from region selection, use real latency measurements rather than geography alone, and respect capacity limits during shifts.

What the Interviewer Expects
  • Separate user-to-edge from edge-to-region routing
  • Use client-side latency measurements to build a routing map
  • Choose DNS-based steering, anycast, or both, with trade-offs
  • Respect PoP and region capacity with a global optimizer
  • Shift traffic quickly on failures without overloading neighbors
Key Topics to Cover
traffic engineering
DNS steering
anycast
latency measurement
capacity-aware routing
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
  • Why is geographic distance a poor proxy for latency?
  • How do you route users whose DNS resolver is far from them?
  • What happens when an undersea cable cut changes latency for a continent?
  • How often should the routing map be recomputed?
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: for each client network (IP prefix), choose an edge PoP that terminates TCP/QUIC and TLS, and for each PoP, choose the data center region that serves its dynamic requests. Route around...

High-Level Design

Three parts. (1) Measurement: a fraction of clients run lightweight probes (fetching tiny objects from several candidate PoPs) and report latency by client prefix. (2) Optimizer: a central ser...


Submit Your Answer
Markdown supported