Design Twitter Search
Hard · System Design · about 45 minutes
Asked at X (Twitter), LinkedIn, Reddit, Pinterest, Meta, Yelp, Quora.
Design search over every tweet: users type keywords (with AND/OR) and get matching tweets sorted by recency or relevance, and new tweets are searchable within seconds. Assume ~500M new tweets per day, years of history, and tens of thousands of search queries per second.