title: I would like to know how the Google search autocomplete function works
body: <p>I'm now starting a project to create an api that does autocomplete.
  While collecting references, ask questions to know the structure and structure that is auto-completed when you enter a search term in real time on Google or other search engine sites, and the techniques used.</p>
  <p>The structure I know briefly is the same.</p>
  <p>Client -&gt; Enter search term -&gt; Server -&gt; Query query -&gt; DB</p>
  <p>Client &lt;- search term input &lt;- server &lt;- search term query &lt;-DB</p>
  <p>Thanks for the comment. I don't know in detail yet, so I'll tell you the scenario I want to know. Suppose a user enters the alphabet of's','t','a','c','k' as a search word after accessing a search engine site. Then, at this time, the client and server want to know if they communicate in real time as soon as the alphabet is entered</p>
  <p>If so, is the communication method ajax? Is there a way to use the data necessary for the auto-completion function in the local area where the client is located other than real-time communication with the server?</p>
  <p>Because it is limited to use a server to place an api that functions as auto-completion, there is a problem that it will be difficult to handle the traffic generated when real-time input occurs.</p>