High Level Design
Searching
- User intiates a search requests. Eg: Searching
Quantom Computing - The API-Gateway forwards the request to
Search-Service - The
Seach-Servicesearches in indexDb (and Cache) for any keyword hit. - If such keyword is not found, then request is forwarded to
Query Correction Service, to provide closest correct query/word based on various factors such as edit-distance, context, relevance etc. Then, Search-Service searches thecorrected-search-requestwithin theIndexDb - Tweets are fetched from the
tweetsdb(and Cache) corresponding to the indexes returned within previous steps. - The Tweets are then sent to
Ranking Servicewhich ranks them according to user needs. Eg: latest-to-oldest ranking, maximum liked tweeted ranking, most relevant first etc.
img/hld-designs/Search-System/search.png
For excalidraw file, click here to download