Design Typeahead Search for Members, Companies, and Schools

Last updated: November 29, 2026

Quick Overview

Design the global search typeahead at the top of LinkedIn that suggests members, companies, schools, and job titles as the user types, personalized to the searcher's network.

LinkedIn
System Design
Software Engineer
LinkedIn
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the global search typeahead at the top of LinkedIn that suggests members, companies, schools, and job titles as the user types, personalized to the searcher's network.

LinkedIn's typeahead must return network-aware results in tens of milliseconds, which is why it is a common onsite design topic. The interviewer looks for a prefix index design, a federated query across entity types, and personalization using the searcher's connections without heavy per-keystroke cost.

What the Interviewer Expects
  • Defines latency budget per keystroke and result mix
  • Designs prefix indexes per entity type
  • Adds network personalization efficiently
  • Federates and blends results across verticals
  • Handles index updates for new members and name changes
  • Discusses caching and request cancellation
Key Topics to Cover
typeahead
prefix index
federated search
personalization
ranking
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 would you rank a second-degree connection named Sam against a famous company called Sam's?
  • How do you handle typos and transliterated names?
  • How are new profiles made searchable quickly?
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: suggestions after each keystroke from 1 character; mixed list of up to 10 items across members, companies, schools, and queries; members ranked higher if connected (first and second de...

High-Level Design
  • Client debounces (for example 50 ms) and cancels in-flight requests.
  • Typeahead frontend fans out in parallel to vertical services: member typeahead, company typeahead, school typeahead, and qu...

Submit Your Answer
Markdown supported