Skip to Content
Extending Bazel to Its Full Potential
book

Extending Bazel to Its Full Potential

by Brian Moakley, Marcus Eagan
July 2025
Intermediate to advanced
50 pages
1h 13m
English
O'Reilly Media, Inc.
Content preview from Extending Bazel to Its Full Potential

Extending Bazel to Its Full Potential

Modern-day build systems are just as diverse and dynamic as the many programming languages out there. While build systems are developed for a wide assortment of workflows and use cases, there are three universal expectations from end users: such a system must be fast, correct, and well-optimized.

Some build systems meet these expectations, but few are specifically built from the ground up to fulfill these expectations in a single stroke.

Introducing Bazel

Bazel, first released in 2015, is the open source version of Google’s Blaze build system. Blaze started development in 2006 as a way to unify Google’s growing codebase. Google famously keeps the vast majority of its code in a single repository, otherwise known as a monorepo. This repo contains almost every project in Google, allowing any Google engineer to build any Google project with a single command. Such a build system is required to be fast, scale with the number of developers using it, and, most importantly, produce identical builds regardless of the builder’s machine.

Blaze was the answer. Google designed Blaze for fast, correct builds. By using a distributed cache, Blaze scales with the number of developers using it, condensing build times from days to hours, and from hours to minutes. While ideal for a monorepo, Blaze works just as well for projects composed of many different repos.

By 2014, after Blaze had become quite popular with its own developers, Google decided to make it ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Developing Apps with GPT-4 and ChatGPT

Developing Apps with GPT-4 and ChatGPT

Olivier Caelen, Marie-Alice Blete
AI for Everyday IT

AI for Everyday IT

Brandon Abshire, Chrissy LeMaire

Publisher Resources

ISBN: 9798341623958