Design the LinkedIn Home Feed Assembly and Ranking Service

Last updated: November 29, 2026

Quick Overview

Design the service that builds a LinkedIn member's home feed from posts by connections, followed companies, groups and recommended content, ranks them, and serves a page in under 200 ms.

Microsoft
System Design
Software Engineer
Microsoft
November 29, 2026
Software Engineer
Onsite
System Design
Hard

0

0

0 solved


Design the service that builds a LinkedIn member's home feed from posts by connections, followed companies, groups and recommended content, ranks them, and serves a page in under 200 ms.

LinkedIn is a Microsoft company and feed design is a classic onsite question there. The interviewer wants a hybrid push/pull design, a multi-stage ranking funnel, and attention to the professional context (spam, viral posts from influencers, diversity of content types).

What the Interviewer Expects
  • Uses a hybrid push/pull model with special handling for high-follower authors
  • Describes candidate generation, lightweight ranking, then heavy ranking
  • Keeps a feature store with fresh engagement signals
  • Enforces diversity and dedup rules after ranking
  • Defines latency budget per stage
  • Tracks impressions to avoid repeats
Key Topics to Cover
Hybrid fan-out
Candidate generation
Multi-stage ranking
Feature store
Impression tracking
Feed diversity
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 handle a post from an author with 20 million followers?
  • How would you bring in a post that a connection only commented on?
  • How do you make sure the same post is not shown on two consecutive sessions?
  • How do you evaluate a ranking change safely?
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: home feed shows posts from connections, follows, groups, plus 'suggested' and activity-based items (a connection commented). Infinite scroll, refresh shows new items, same item not rep...

High-Level Design

Write path: a new post goes to the post store and an event bus. A fan-out service pushes (postId, authorId, ts) into the inbox cache of each follower for authors below a threshold (for examp...


Submit Your Answer
Markdown supported