Design People You May Know Recommendations for LinkedIn

Last updated: November 29, 2026

Quick Overview

Design the system that recommends new connections to LinkedIn members, optimizing for invitations that get accepted and lead to valuable networks while respecting privacy.

Microsoft
ML System Design
Machine Learning Engineer
Microsoft
November 29, 2026
Machine Learning Engineer
Onsite
ML System Design
Medium

0

0

0 solved


Design the system that recommends new connections to LinkedIn members, optimizing for invitations that get accepted and lead to valuable networks while respecting privacy.

LinkedIn is part of Microsoft and People You May Know is a core growth surface. The interviewer looks for graph-based candidate generation at scale, the choice of label (accepted invitation rather than click), and privacy constraints around inferred relationships.

What the Interviewer Expects
  • Pick an objective such as invitations sent and accepted, with guardrails on ignores and reports
  • Generate candidates from friends of friends, shared companies and schools, and address-book imports
  • Explain scaling of friends-of-friends on a graph with very high-degree nodes
  • Design features and a two-sided acceptance model
  • Discuss privacy rules for sensitive inferred connections
  • Evaluate offline and online including network-level effects
Key Topics to Cover
graph recommendations
friends of friends
link prediction
privacy
two-sided objective
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you stop recruiters with 30,000 connections from dominating friend-of-friend candidates?
  • Should you model the probability the recipient accepts, and why?
  • What connections should never be suggested even if the model likes them?
Sharpen Your Skills on Codemia

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

Practice ML System Design Problems
Sample Answer
Requirements
  • Show a ranked list of members to connect with on the My Network page and in emails.
  • Objective: accepted invitations per member, weighted toward connections that later interact. Guardrails: invitat...
High-Level Design
  1. Candidate generation (thousands per member): second-degree connections with common-neighbor counts; same company and overlapping tenure; same school and graduation years; contacts imported with...

Submit Your Answer
Markdown supported