Google runs on a huge distributed network of computers. It has 3 major parts.
- Googlebot, a web crawler that crawls and saves web pages.
- Google indexer that reads every word on every page and stores page index information in a huge database.
- Google query processor that processes your search query, compares with page index and recommends the webpages that are most relevant to your query.