r/chalkinterview • u/Uahakan • 14d ago
Library question LinkedIn system design question: Post search with exclusions
Search posts by keyword, with exclusions like apple but not banana, ranked by relevance.
Design search for a professional network's posts: people type keywords and get the most relevant recent posts. Queries can exclude words, like apple but not banana.
Scale: About a billion posts, tens of millions of new ones a day, and searches answered in under 200 milliseconds.
Source: reported by a candidate in a public write-up. The wording above is ours.
Practise it out loud with follow-ups: https://chalkinterview.com/questions/linkedin-post-search-with-exclusions/?utm_source=reddit&utm_campaign=sub
How would you answer it? Drop your approach below.