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
November 29, 20260
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
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- 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 ProblemsSample 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...