Minden Új

user:thomas létrehozva e felhasználó által

title:mygist gistek egyező címmel

description:sync gists with given description

filename:myfile.txt gistek melyek tartalmaznak fájlt egyező névvel

extension:yml gistek melyek tartalmaznak fájlt egyező kiterjesztéssel

language:go gistek melyek tartalmaznak fájlt egyező nyelvvel

topic:homelab gists with given topic

all:systemctl search all fields

Regisztráció

Bejelentkezés

Minden Új Regisztráció Bejelentkezés

linkjobai

Hozzáadva 21 hours ago

Újabbtól létrehozva
Utolsótól létrehozva
Újabbtól módosítva
Utolsótól módosítva
Összes gist 1

linkjobai / System Design: Search Autocomplete (Typeahead)

0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív 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.
Újabb Régebbi

Ez az oldal Opengist alapú ⋅ Load: 9ms⋅

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