- Section
- archive
- Kind
- Archive · commissioned
- Reading time
- 8 min
Monorepo tools for polyglot teams
02 December 2026
Teams scaling a monorepo across several languages usually end up choosing between Bazel and Nx, with Turborepo as a lighter option. The tradeoff is rigor against effort. Bazel offers deep hermeticity, remote execution and reproducibility, but it requires a `BUILD` file for every package and a migration measured in weeks, and longer when several teams are involved. Nx adds caching and affected detection on top of existing scripts and can be adopted one piece at a time.
What Bazel's rigor costs to adopt and maintain
According to the Nx documentation comparing Nx and Bazel, Bazel is strong at hermetic caching, remote execution and reproducibility, and a small number of very large, heavily polyglot organizations need that depth. The same page lists first-class Bazel support for C++, Java, Go, Rust and Python.
The cost continues after migration. Aspect estimates that maintaining Bazel's JavaScript rulesets takes 0.75 to 1 full-time build engineer, a permanent headcount line that a JavaScript-heavy team has to budget for.
Airbnb's experience shows how long a migration can run. Its move of the JVM monorepo to Bazel took 4.5 years of work. Afterwards, Airbnb reported build CSAT rising from 38% to 68%, local build and test times 3–5x faster, and IntelliJ syncs 2–3x faster.
What the Bazel performance numbers show
Bazel caches results per action and uses sandboxing so that a build step cannot read files it has not declared. Airbnb applied that model when adopting Bazel for its web monorepo of more than 11 million lines of code, positioning Bazel as a universal build system across its backend, web and iOS platforms. The company reported TypeScript type checking 34% faster, ESLint linting 35% faster and incremental Jest unit tests 42% faster.
A broader picture comes from an arXiv study of Bazel projects on GitHub. The authors analyzed 383 projects and ran 3,500 experiments on them, plus 102,232 experiments on the last 100 commits of 70 buildable projects. For projects with long build times, median speedups were 2.00x, 3.84x, 7.36x and 12.80x at parallelism degrees of 2, 4, 8 and 16. Median incremental-build speedups for those projects were 4.22x with a CI cache independent of the build tool and 4.71x with a Bazel-specific cache.
The same study points to friction in practice. Of the 383 projects, 31.23% used a CI service but did not run Bazel in it, and among those that did run Bazel in CI, 27.76% relied on other tools to help execute it.
| Tool | Adoption time | Language support | Reported performance |
|---|---|---|---|
| Bazel | Weeks per migration; 4.5 years for Airbnb's JVM monorepo | First-class C++, Java, Go, Rust, Python | Median 2.00x–12.80x speedups with parallelism on long builds |
| Nx | Incremental, on existing scripts | JavaScript/TypeScript, via first-party plugins | Caching and affected detection |
Where Nx fits
Nx is aimed at JavaScript and TypeScript monorepos. Its documentation lists first-party plugins for Vite, Jest, Next.js and Playwright, and says Nx ships generators, migrations, release tooling and AI-assisted CI features that Bazel does not provide natively. Because Nx works with the scripts a repository already has, a team can turn on caching and affected-task runs without first writing build definitions for every package.
Choosing by language mix and build rigor
For US teams, the decision comes down to language mix and how much build infrastructure the team can staff. Bazel fits heavily polyglot organizations that need maximum build rigor at scale and can absorb a long migration and ongoing maintenance. Nx suits JavaScript/TypeScript-centric monorepos that want faster adoption and quicker CI gains. Turborepo is the lighter-weight choice for teams that want caching without running Bazel-level infrastructure.