Functional Requirements
Users must be able to search tweets— show the top 100 results.
Search results need not be personalized i.e. it is expected that the same search query will return the same results for 2 different users, simulteneously querying the system.
Search results should show the latest and trending tweets.
Search results should be ranked in reverse chronological order.
Non Functional Requirements
Availability — Search functionality should be always available
Low Latency — Search results should be returned with very low latency (50ms)
Reliability — Latest tweets should be available for search within 10s of creation.
Traffic and Throughput Requirements
Number of DAU = 500 million
Number of search queries per second = 1 million
Average length of search queries = 10
Number of tweets per second = 10K
Peak number of tweets per second = 1 million
Maximum length of tweets = 140 characters
https://mecha-mind.medium.com/system-design-twitter-search-ccb29c48d9b6