Monorepo
A version control strategy where multiple projects, libraries, and services are stored in a single repository, enabling atomic cross-project changes, shared tooling, and simplified dependency management.
A monorepo contains all of an organization's code in one repository, as opposed to having separate repositories for each project. Companies like Google, Meta, and Microsoft use monorepos at massive scale. Tools like Turborepo, Nx, Bazel, and Pants provide the build system intelligence needed to make monorepos fast, running only the tests and builds affected by a given change.
The advantages are significant. Cross-service refactoring is atomic: you can update an API and all its consumers in a single commit. Shared libraries are always at the latest version, eliminating dependency version conflicts. Code review happens in one place, and CI/CD pipelines have full visibility into change impact.
For AI product teams, monorepos simplify the coordination between application code, model serving code, data pipelines, and shared utilities. When a model's output format changes, you can update the model serving layer and the consuming application layer in the same pull request, ensuring they stay in sync. The trade-off is build tool complexity and repository size management at scale.
Related Terms
A/B Testing
A controlled experiment comparing two or more variants to determine which performs better on a defined metric, using statistical methods to ensure reliable results.
Feature Flag
A software mechanism that enables or disables features at runtime without deploying new code, used for gradual rollouts, A/B testing, and targeting specific user segments.
MLOps
The set of practices combining machine learning, DevOps, and data engineering to reliably deploy, monitor, and maintain ML models in production.
Model Serving
The infrastructure and systems that host trained ML models and handle inference requests in production, optimizing for latency, throughput, and cost.
Semantic Search
Search that understands the meaning and intent behind a query rather than just matching keywords, typically powered by embedding-based similarity comparison.
CI/CD (Continuous Integration / Continuous Deployment)
An automated software practice where code changes are continuously integrated into a shared repository, tested, and deployed to production, reducing manual intervention and accelerating delivery cycles.