Tutti Nuovi

user:thomas utente che ha creato il gist

title:mygist titolo del gist

description:sync gists with given description

filename:myfile.txt nome di file nel gist

extension:yml estensione del file nel gist

language:go linguaggio del file nel gist

topic:homelab Gist con l'argomento dato

all:systemctl search all fields

Registrati

Entra

Tutti Nuovi Registrati Entra

linkjobai

Unito 21 hours ago

Più recente creazione
Meno recente creazione
Più recente aggiornamento
Meno recente aggiornamento
Tutti i gists 1

linkjobai / System Design: Search Autocomplete (Typeahead)

0 mi piace
0 forks
1 files
Ultima volta attivo 21 hours ago
Interview prep notes
interview

System Design: Search Autocomplete (Typeahead)

Designing autocomplete, like the search box suggestions on Google or Amazon, is a popular interview question because it combines a classic data structure (the trie) with real latency constraints.

Requirements

  • Return the top 5 to 10 suggestions for a prefix as the user types.
  • Latency under about 100 ms end to end, so each lookup must be a few milliseconds.
  • Suggestions ranked by popularity, with some freshness (trending queries).
  • Scale example: 10M daily users, about 10 keystrokes per search.
Più nuovi Più vecchi

Creato da Opengist ⋅ Load: 9ms⋅

Italiano
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文