← Meta Interview Insights

Meta·Software Engineer·Onsite - System Design / Architecture·Senior

SeniorPrefer not to say
May 2026

Summary

Meta system design round, one question about building a people recommendation feature. Pretty open-ended, which I wasn't fully prepared for.

Questions Asked (1)

Q1

How would you design a 'people you may know' recommendation system?

System DesignProduct Sense & IdeationTechnical Trade-offs
Author's notes

I jumped straight into graph traversal and mutual friends because that felt obvious, but then the interviewer kept pushing on scale and I realized I hadn't thought about how you'd actually compute this for hundreds of millions of users without it being a disaster.

Create a free account to read the full note

AI HintsAI Generated

Suggested Approach

Start by clarifying requirements and constraints (scale, latency, privacy, evaluation metrics) with the interviewer. Then outline a high-level architecture covering data sources, candidate generation, ranking, and serving, and dive into trade-offs for each component. Finally, discuss evaluation, iteration, and potential pitfalls.

Pro tip: Emphasize the importance of offline evaluation and online A/B testing, and mention how you would handle cold-start and privacy concerns—these are critical at Meta's scale.

1. Clarify Requirements

Ask questions to understand scale (e.g., billions of users), latency requirements (e.g., <100ms), privacy constraints, and success metrics (e.g., CTR, mutual connections).

2. High-Level Architecture

Outline the main components: data collection (user interactions, graph), candidate generation (e.g., friends-of-friends, embeddings), ranking (ML model), and serving (real-time API).

3. Deep Dive into Components

For each component, discuss specific techniques: e.g., for candidate generation, use graph traversal and approximate nearest neighbors; for ranking, use gradient boosted trees or deep neural networks with features like common friends, interactions, and profile similarity.

4. Trade-offs and Scalability

Discuss trade-offs between different approaches (e.g., batch vs. real-time, simple heuristics vs. complex models) and how to scale (sharding, caching, distributed processing).

5. Evaluation and Iteration

Explain how to evaluate the system offline (precision/recall, AUC) and online (A/B tests, engagement metrics), and how to iterate based on feedback.

Key Points to Mention

  • Graph-based features: friends-of-friends, common connections, and interaction history.
  • Candidate generation techniques: graph traversal, approximate nearest neighbors (ANN) for embeddings.
  • Ranking model: machine learning models (e.g., GBDT, DNN) with features like profile similarity, mutual friends, and activity.
  • Scalability: distributed systems, caching, and precomputation for low-latency serving.
  • Privacy and ethical considerations: handling sensitive data, user consent, and avoiding bias.
  • Evaluation metrics: offline (precision, recall, NDCG) and online (CTR, conversion, user engagement).

AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.