Skip to content
Theory · Search autocomplete · lesson 4 of 10

API and data model

Autocomplete has three contracts. The first is between the browser and the service: what goes out on a keystroke and what comes back. The second is between the moderators and the blocklist. The third is between the build and the servers: in what form the build hands over its ready data. The data model is built around them: the log, the counts, the trie versions and the blocklist.

In this lesson

  • The suggestion call
  • What the browser does
  • Moderation
  • Data model
  • What to store where
  • Common mistake
  • Key points