Distributed Databases With Peter Mattis
AIThis post was created with the assistance of artificial intelligence (AI).

TL;DR

Peter Mattis, co-founder and CTO of Cockroach Labs and an original creator of GIMP, appeared on The Pragmatic Engineer podcast to discuss distributed databases, his work on Gmail storage and Google’s Colossus, and how AI tools have brought him back to writing production code. He argued AI can improve quality and multiply the impact of domain experts.

Peter Mattis, co-founder and CTO of Cockroach Labs and one of the original creators of GIMP, sat down with The Pragmatic Engineer for a wide-ranging interview on distributed databases, his engineering work at Google, and why he believes AI coding tools have made him more productive than ever without a drop in quality. Mattis, who said he regularly shipped roughly 100K lines of database-grade code per year before the AI era, now feels even more effective — and credits AI with bringing him back to hands-on coding after years of management work.

Buying for a business?Offer from Amazon

Get business pricing on tech for your team

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

The conversation traces Mattis’s path from open-source graphics software to distributed systems. He and his college roommate Spencer Kimball created GIMP, which was used to make the very first version of the Google logo. In 2001, according to Mattis, Sergey Brin made him an offer to join Google — which he initially turned down because of the commute from San Francisco to Mountain View. After a stint at another startup that, in his words, “didn’t go anywhere,” he accepted when Google reached out again.

At Google, Mattis worked on Gmail’s early storage layer and on distributed storage. He recounted that Gmail launched on 1 April 2004 with 1GB of free storage — an offer so generous that, as the interview notes, many assumed it was an April Fool’s joke. Under the hood, Gmail used B-trees to track email threads and unread counts, matching incoming messages to threads via the search index. Later, working on Colossus, Google’s successor to the Google File System, Mattis and his team introduced Reed–Solomon erasure coding in a distributed file system: data was stored twice instead of three full copies, which he said reduced storage overhead by 33% while increasing redundancy.

A recurring theme of the episode is the B-tree. Mattis twice built replacements that outperformed standard library data structures: a B-tree substitute for C++’s std::map at Google, and a Swiss Table hash map for Go that was later merged into Go’s standard library with help from the Go team. As the episode puts it, if you squint hard, everything in distributed databases and storage — Gmail’s backend, CockroachDB’s range index — starts looking like a B-tree, a phenomenon covered in the paper The Ubiquitous B-Tree.

At a glance
reportWhen: published by The Pragmatic Engineer (in…
The developmentThe Pragmatic Engineer published a new interview episode with Peter Mattis covering distributed databases, his Google-era storage work, and AI-assisted engineering productivity.

Why a Database Veteran’s AI Experience Counts

Mattis’s account matters because it comes from an engineer with decades of shipped, database-grade systems rather than an AI vendor. His claim that AI assistance lets an experienced individual contributor produce more code at equal or higher quality adds a data point to the debate over whether AI tools help or hurt software quality — and his view that AI multiplies the impact of domain experts suggests the technology may favor engineers with deep systems knowledge, not replace them. His Colossus erasure-coding anecdote also illustrates a concrete tradeoff — less storage overhead with more redundancy — that remains relevant to any team operating distributed storage today.

Products Worth Considering

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

LG UltraGear 27-inch 4K UHD IPS Gaming Monitor, Dual Mode 180Hz/360Hz, 1ms, G-SYNC Compatible

As an affiliate, we earn on qualifying purchases.

From GIMP to Google to CockroachDB

Mattis and Kimball built GIMP as students; weeks before launch, they saw an announcement for a rival photo editor promising everything GIMP did and more. They shipped anyway and, according to Mattis, never heard of the competing project again. He drew a founder’s lesson from it: “There’s always going to be someone else working on your idea. You can’t get dissuaded if they pre-announce it.” He added that founders should assume dozens of people share their idea, but most won’t ship. Mattis later co-founded Cockroach Labs, the company behind CockroachDB, a distributed SQL database, after working on Gmail and distributed storage at Google.

“There’s always going to be someone else working on your idea. You can’t get dissuaded if they pre-announce it. To founders: assume that dozens of people have the same idea you have, but most won’t ship it!”

— Peter Mattis, co-founder and CTO of Cockroach Labs

Claims Awaiting Broader Evidence

The productivity claims are Mattis’s personal assessment and are not backed by published measurements; the interview does not specify which AI tools he uses or how quality was evaluated. The 33% storage-overhead reduction from Colossus erasure coding is Mattis’s recollection of internal Google work and has not been independently verified. Details such as the rival photo editor that nearly derailed GIMP were not named in the episode. The interview is also, in part, sponsored content (turbopuffer, Linear, WorkOS), which readers should weigh when evaluating its framing.

Where the Conversation Goes From Here

The full episode, including a transcript and timestamps, is available on YouTube, Apple, and Spotify via The Pragmatic Engineer. Readers interested in the latency discussion Mattis raised can follow the referenced research on low-latency routing in space, including his observation that a network round trip within a zone has fallen from milliseconds to roughly 100 microseconds since Colossus was built. Cockroach Labs’ ongoing database development, and wider industry evidence on AI’s effect on engineering quality, will show whether Mattis’s experience holds broadly.

Key Questions

Who is Peter Mattis?

He is co-founder and CTO of Cockroach Labs, the company behind CockroachDB, and an original creator of the GIMP image editor. He previously worked on Gmail and distributed storage at Google.

What did Mattis say about AI and productivity?

He said that despite shipping roughly 100K lines of database-grade code per year pre-AI, he feels even more productive today with no drop in quality, and that AI brought him back to hands-on coding after shifting toward management.

How did B-trees relate to Gmail?

Gmail’s storage layer used B-trees to track email threads and unread counts, with incoming messages matched to threads using the search index.

What is the Colossus storage claim?

According to Mattis, replacing GFS’s three-copy replication with Reed–Solomon erasure coding in Colossus cut file storage overhead by 33% while actually increasing redundancy.

Where can I listen to the full interview?

The episode is available on YouTube, Apple, and Spotify, with a transcript and timestamps on The Pragmatic Engineer newsletter site.

Source: rss

You May Also Like

They Drenched A Dining Room In Deep Blue — Now It’s Moody And Vintage

Search and coverage interest is rising around deep blue dining rooms with a moody, vintage feel. What’s driving the trend and what’s unconfirmed.

What Is Reported About Nvidia’s CEO Search, And What Happens Next?

Nvidia has named CFO Colette Kress interim CEO as its board begins a permanent search. Here is what is confirmed, reported and still unknown.

Bangalore Apartments’ Federation Welcomes Law To Safeguard Owners’ Rights – Deccan Herald

Bangalore’s apartment owners’ federation praises new legislation aimed at safeguarding property rights, marking a significant step for residents and authorities.

Before GTA VI Launches, An Estimate Of $1 Billion Sets Expectations

Sensor Tower estimates GTA VI has 10.31 million pre-orders worth about $1 billion, but Take-Two has not released an official count.