Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

description:sync gists with given description

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

all:systemctl search all fields

Registrarse

Iniciar sesión

Todos Nuevo Registrarse Iniciar sesión

linkjobai

Unido 21 hours ago

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado
Todos los gists 1

linkjobai / System Design: Search Autocomplete (Typeahead)

0 gustos
0 bifurcaciones
1 archivos
Última actividad 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.
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 9ms⋅

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