Skip to content

PAPER EXPLAINED

Bigtable: A Distributed Storage System for Structured Data

IntermediateAbout 45 min to read the paper

TL;DR

Bigtable is Google's distributed storage system. It exposes data as a sorted map of (row, column, timestamp) to bytes, splits tables into tablets served by many servers, and uses GFS, SSTables and the Chubby lock service to scale to petabytes for dozens of products.

What problem does Bigtable solve?

Many Google products, including web indexing, Google Earth, Analytics and Personalized Search, needed to store structured data at very large scale. Their demands differed widely: data sizes ranged from URLs to satellite imagery, and workloads ranged from batch processing to latency-sensitive serving. One system had to scale to thousands of shared commodity machines, stay available through many kinds of failures, and stay fast for both reads and writes. A full relational database was not the interface these applications needed.

The core idea

Offer a deliberately simple data model: a sparse, sorted, multidimensional map from row key, column key and timestamp to uninterpreted bytes. Only single-row operations are atomic. Because rows are kept in sorted order, a table can be cut into contiguous row ranges called tablets and spread across servers. Clients control locality through their choice of row keys and by grouping column families. Underneath, each tablet stores recent writes in memory and older data in immutable sorted files on a distributed file system. A lock service coordinates which server owns which tablet.

IN THE AUTHORS’ WORDS

“Every read or write of data under a single row key is atomic”

Bigtable: A Distributed Storage System for Structured Data, p. 2

“A merging compaction that rewrites all SSTables into exactly one SSTable is called a major compaction.”

Bigtable: A Distributed Storage System for Structured Data, p. 6

“The most important lesson we learned is the value of simple designs.”

Bigtable: A Distributed Storage System for Structured Data, p. 12

How Bigtable works

  1. Data is indexed by row key, column key (family:qualifier) and timestamp. Rows are sorted lexicographically, and each row range forms a tablet, the unit of distribution and load balancing. Column families group columns for access control and accounting.
  2. A single master assigns tablets to tablet servers and balances load, but client data never flows through it. Clients find tablets through a three-level hierarchy: a Chubby file points to the root tablet, which points to METADATA tablets, which point to user tablets. Clients cache these locations.
  3. Each tablet server holds an exclusive lock on its own file in Chubby. If a server stops responding, the master grabs that lock and deletes the file, so the server can never serve again, then reassigns its tablets. A newly started master rebuilds its view by scanning Chubby, the live servers and the METADATA table.
  4. Writes are checked, appended to a commit log in GFS, and then inserted into an in-memory sorted memtable. Reads run on a merged view of the memtable and the tablet's immutable SSTables. Recovery replays the log from saved redo points.
  5. When the memtable fills, a minor compaction writes it out as a new SSTable. Merging compactions combine several SSTables to bound how many files a read must check. Major compactions rewrite everything into one SSTable and purge deleted data.
  6. Refinements improve performance: locality groups that can be kept in memory, per-block compression, two levels of caching, and Bloom filters that skip SSTables without the requested data. A single commit log per server is sorted in parallel during recovery.

Results

With one tablet server, random reads from disk ran at about 1200 per second, an order of magnitude slower than other operations, because each read pulls a 64 KB block for a 1000-byte value. Scans, in-memory reads and writes were much faster. Going from 1 to 500 servers raised aggregate throughput by over a factor of a hundred; in-memory random reads rose almost 300-fold. Scaling was not linear because of load imbalance and contention on shared machines, and disk random reads scaled worst due to saturated network links. In production, as of August 2006, there were 388 non-test clusters with about 24,500 tablet servers. Chubby unavailability made some data unavailable for an average of 0.0047% of server hours. Two-pass compression achieved a 10-to-1 reduction on one Webtable experiment.

Limitations and what came later

  • Bigtable does not support general transactions across row keys; only single-row operations are atomic.
  • If Chubby becomes unavailable for an extended period, Bigtable becomes unavailable too.
  • Performance does not scale linearly: per-server throughput drops significantly from 1 to 50 servers, and disk-based random reads scale worst because of network saturation.
  • Benchmarks ran on a shared Google cluster with 1000-byte values and approximately 1 GB per tablet server, so the numbers reflect that specific setup.
  • New users, especially those used to relational databases with general transactions, are sometimes unsure how best to use the unusual interface.

Why Bigtable matters

The paper shows that a simple, client-controllable data model built from a sorted map, immutable files, an in-memory buffer and a lock service can serve very different workloads at large scale. Its practical lessons stay useful for anyone building distributed systems: plan for failures beyond fail-stop, add features only after real needs are clear, monitor at the system level, and value simple designs.

Bigtable is a compact, readable account of how a large production storage system was built from a few simple pieces. The paper starts with a deliberately minimal data model: a sorted map keyed by row, column and timestamp. It then shows how that model maps onto real machinery: tablets, a lock service, an in-memory buffer, immutable on-disk files and background compactions. Along the way it explains concrete engineering choices, such as reversing URLs to keep related pages together, using one commit log per server, and sorting logs in parallel to speed up recovery. It reports both benchmark numbers and production usage. It is also candid about trade-offs: there are no general transactions, it depends heavily on Chubby, and throughput does not scale linearly. The lessons section argues for simple designs and for delaying features until real needs are clear. If you want to understand how sorted-map storage, memtable-plus-SSTable layouts and lock-service coordination fit together in one system, this paper covers all three end to end.

Before you read

Who it’s for

Software engineers, systems and database students, and anyone designing or operating large-scale storage who wants to see how a production system combines a simple data model with distributed coordination and log-structured storage.

What to know first

  • Basic idea of key-value stores and sorted maps
  • What a distributed file system does (GFS is referenced but not explained in depth)
  • Familiarity with locks, leases and leader/master roles in distributed systems
  • Rough understanding of disk seeks vs memory access costs
  • What a write-ahead (commit) log is

Glossary

Tablet
A contiguous range of rows in a table. It is the unit that Bigtable distributes across servers and moves for load balancing. Tablets split automatically as they grow, defaulting to roughly 100-200 MB.
Column family
A named group of column keys, written family:qualifier. Families must be created before use, are expected to be few per table, and are the level at which access control and disk and memory accounting apply.
SSTable
Google's file format for a persistent, ordered, immutable map from byte-string keys to values. It is stored as blocks with an in-memory index, so a lookup needs at most one disk seek.
Memtable
An in-memory sorted buffer holding a tablet's recently committed writes before they are flushed to an SSTable.
Chubby
A highly available distributed lock service with five replicas kept consistent by Paxos. Bigtable uses it to ensure a single master, store bootstrap locations and schemas, and track live tablet servers.
Minor compaction
Freezing a full memtable and writing it to GFS as a new SSTable. This frees memory and reduces how much of the commit log must be replayed during recovery.
Major compaction
A merging compaction that rewrites all of a tablet's SSTables into exactly one SSTable containing no deletion entries or deleted data.
Locality group
A client-chosen grouping of column families that are stored in their own SSTables. Each group can be tuned separately, for example kept in memory or compressed.
Bloom filter
A compact structure that answers whether an SSTable might contain data for a given row/column pair. It lets most lookups for nonexistent data avoid touching disk.

What to pay attention to

  • How the (row, column, timestamp) model and lexicographic row ordering let clients control data locality, as in the reversed-URL Webtable example.
  • Why only single-row operations are atomic, and what the authors later learned about how much users actually needed transactions.
  • The three-level tablet location hierarchy and the number of network round-trips a client needs when its cache is empty versus stale.
  • How Chubby locks and server files let the master decide that a tablet server can never serve again.
  • The write and read paths: commit log, then memtable, then SSTables, plus the difference between minor, merging and major compactions.
  • The trade-off behind a single commit log per tablet server, and how sorting log entries avoids reading the log many times during recovery.
  • Why random reads from disk scale worst in the benchmarks: a 64 KB block is fetched to serve a 1000-byte value.

You can skip it if… Skip it if you need a relational database with multi-row transactions and SQL, or if you want a general theory of distributed consensus. The paper is a system design description, not a formal treatment, and leaves Chubby and GFS internals to other papers.

Questions to keep in mind

  • What does Bigtable give up compared with a relational database, and what does it gain in exchange?
  • How does the choice of row key affect performance and compression in Bigtable?
  • What happens, step by step, when a tablet server loses its Chubby lock?
  • Why does immutability of SSTables simplify concurrency, garbage collection and tablet splits?
  • Why does per-server throughput drop when moving from 1 to 50 tablet servers?

Bigtable quiz: check your understanding

1. What is the basic data model of Bigtable?

Show the answer

A sparse, distributed, persistent, multidimensional sorted map indexed by a row key, a column key and a 64-bit timestamp. Each value is an uninterpreted array of bytes.

2. Why does Webtable store maps.google.com/index.html under the key com.google.maps/index.html?

Show the answer

Bigtable keeps rows in lexicographic order by row key. Reversing the hostname components puts pages from the same domain in contiguous rows, which makes host and domain analyses more efficient. It also helps compression, because shared boilerplate from the same host ends up stored close together.

3. What are the three levels of the tablet location hierarchy?

Show the answer

A file in Chubby holds the location of the root tablet. The root tablet holds the locations of all METADATA tablets. Each METADATA tablet holds the locations of a set of user tablets. The root tablet is never split, so the hierarchy never grows beyond three levels.

4. What is the difference between a minor compaction and a major compaction?

Show the answer

A minor compaction freezes a full memtable and writes it to GFS as a new SSTable. This reduces memory use and shortens commit-log replay during recovery. A major compaction is a merging compaction that rewrites all of a tablet's SSTables into exactly one SSTable with no deletion entries or deleted data, which reclaims space and makes deleted data disappear.

5. How does the master ensure a tablet server that may be unreachable can never serve its tablets again?

Show the answer

The master tries to acquire the exclusive lock on that server's file in Chubby. If it succeeds, Chubby is live and the server is either dead or cannot reach Chubby. The master then deletes the server's file, so the server can never serve again, and moves its tablets into the unassigned set.

6. Why are random reads from disk much slower than other operations in the single-server benchmark?

Show the answer

Each random read transfers a 64 KB SSTable block from GFS to the tablet server but uses only one 1000-byte value from it. At roughly 1200 reads per second this amounts to about 75 MB/s, which saturates the tablet server CPUs and nearly saturates the network links.

7. What did the authors learn about general-purpose transactions?

Show the answer

They had planned to support them but delayed doing so. After observing real applications, they found most needed only single-row transactions. The main use for distributed transactions was maintaining secondary indices, so they planned a more specialized and efficient mechanism for that purpose.

Your answers stay on this page and are cleared when you leave.

Go a little deeper

Bigtable lets clients decide row-key layout, which data stays in memory, and how column families are grouped, rather than having the system decide automatically. When is pushing these decisions to the client a strength, and when does it become a burden? Consider the authors' remark that new users are sometimes unsure how best to use the interface.

Read next

More papers on Distributed storage.

Related reading lists

All papers explained →

Cite Bigtable

Chang, F., Dean, J., Ghemawat, S., Hsieh, W. C., Wallach, D. A., Burrows, M., Chandra, T., Fikes, A., & Gruber, R. E. (2006). Bigtable: A Distributed Storage System for Structured Data. USENIX OSDI.

@inproceedings{chang2006bigtable,
  title = {{Bigtable: A Distributed Storage System for Structured Data}},
  author = {Fay Chang and Jeffrey Dean and Sanjay Ghemawat and Wilson C. Hsieh and Deborah A. Wallach and Mike Burrows and Tushar Chandra and Andrew Fikes and Robert E. Gruber},
  year = {2006},
  booktitle = {USENIX OSDI},
  url = {https://www.usenix.org/legacy/event/osdi06/tech/chang/chang.pdf}
}

Original PDF ↗

Study Bigtable in ReadingTrack

Add the paper to your ReadingTrack library with its authors, venue and year, and get this page’s quiz as suggested review cards. You choose which cards to keep; nothing enters your reviews until you accept it.

Last reviewed 26 November 2026 by the ReadingTrack editors. Explanations are our own; quotes are short and attributed, and the paper is linked at its original source.