When search engines like Google and Bing crawl the web, they need to store massive amounts of data efficiently to enable fast retrieval during search operations. Both companies have developed sophisticated storage systems tailored to their specific needs.
Google's Storage Infrastructure
Google primarily uses a distributed storage system called BigTable for storing web data it has crawled and indexed[11][16]. BigTable is specifically designed to handle structured data at an enormous scale—petabytes of data across thousands of commodity servers[16].
Data Format and Organization
Google's storage architecture for crawled web content follows these key patterns:
-
Table Structure: Data in BigTable is stored in scalable tables composed of rows and columns. Each table provides a sorted key/value map, with rows indexed by a single row key[11].
-
Sparse Tables: The tables are sparse, meaning if a column doesn't contain data for a particular row, it doesn't use storage space[11].
-
Timestamped Cells: Every cell in a BigTable table contains a unique timestamped version of the data, allowing Google to maintain a record of how data has changed over time[11].
-
SSTable Format: The tables are sharded into blocks of contiguous rows called "tablets," which are stored in the SSTable (Sorted String Table) format on Google's Colossus file system. An SSTable is an immutable file containing sorted key-value pairs[11].
-
MapReduce Processing: BigTable uses a methodology called MapReduce to quickly search through the stored data[3][15].
Google's index doesn't store complete copies of web pages in their original HTML form. Instead, the HTML is processed and broken down into a more structured representation before being put into the index[3][15].
Bing's Storage Infrastructure
Microsoft Bing uses its homegrown ObjectStore service with RocksDB as the storage engine for its web search data[2][12]. This system hosts hundreds of petabytes of data and processes hundreds of millions of lookups per second[2].
Data Format and Organization
Bing's storage system has several distinctive features:
-
Column Store Architecture: Web Data Table is persisted and served as a Column Store, which is a distributed NoSQL database built on RocksDB supporting column-oriented operations[2].
-
Data Model: Bing uses a Bigtable-like data model where all sub-tables are joined by primary key as column groups, improving resource efficiency by avoiding redundant data[2].
-
Hot/Cold Data Separation: Web documents are classified as relatively hot or cold by update frequency, then stored in different column groups. Each column group maps to a separated LSM-tree (Log-Structured Merge-tree) with a path assigned either on SSD or HDD[2].
-
Process Controller: The processing of a document starts in Process Controller, which determines which documents should be processed. The document is then passed through various stages before being stored back into the Web Data table[2].
-
Optimized RocksDB: RocksDB is a high-performance persistent key-value storage engine that Bing has optimized for its specific workload characteristics[17].
Common Storage Characteristics
Both Google and Bing share several common approaches to storing crawled web data:
-
File Types Support: Both systems can index a wide variety of file types beyond HTML, including PDFs, Office documents, text files, source code, images, and videos[18].
-
Structured Data Extraction: Both extract structured data from pages (like schema.org markup) to better understand content relationships[10].
-
Cache Strategies: Both use sophisticated caching strategies, including server-side and client-side (browser localStorage) caching to improve performance[5].
-
Distributed Architecture: Both use highly distributed systems to manage the enormous scale of web data, spreading storage and processing across many servers[11][2].
-
Continuous Updating: Both systems continuously update their indices to reflect changes in web content and discover new pages[14].
The storage formats and systems used by Google and Bing are specifically designed to handle the challenges of web-scale data processing: enormous volume, high variety of content types, and the need for both batch processing and real-time serving of search results. Their proprietary technologies enable them to efficiently manage petabytes of crawled web data while providing fast search response times.