The problem at Meta
- Functional: as the user types, return the top-k suggestions matching the prefix.
- Non-functional: <50ms response, personalization optional, updates as trends change.
- Scale: ~1B queries/day, ~100M distinct prefixes.
- Consistency: suggestions can be slightly stale (trending updates in seconds); personalization is best-effort.
Out of scope (covered in detail below)
Spell correction, full search ranking, multi-language/emoji, and trending detection — deferred and discussed in the dedicated section.
At Meta, this problem is framed around move fast, ship impact, scale thinking. Expect Meta-specific scale numbers and a focus on production readiness and the company's engineering bar.
Unlock the full guide
Premium members get every DSA, system design, company and role interview guide — plus AI practice, mock interviews, and analytics.
Unlock with Premium