How Netflix Knows When Code Changes Will Break Things
TL;DR: Netflix built an internal tool called Quasar that automatically identifies which applications will be affected by changes to shared code libraries. This helps its developers prevent widespread outages and plan migrations before releasing updates.
Key facts
- Category
- Infrastructure
- Impact
- High
- Published
- Source
- InfoQ
Full summary
Netflix's new tool, Quasar, traces API references across repositories to show developers the real-world impact of their code changes before they ship.
Netflix has developed a new internal tool, named Quasar, designed to solve a critical and common problem in large-scale software development: understanding the true impact of code changes. As reported by InfoQ, the tool allows engineering teams to measure the "blast radius" of modifications made to shared software libraries. In a complex ecosystem with thousands of services, a seemingly small update to a common library can trigger a cascade of failures across numerous applications. Quasar was built to prevent these kinds of unexpected breakages by giving library maintainers a clear view of every downstream service that depends on their code before a change is ever released. This proactive approach aims to shift the process from reactive firefighting to informed, planned migrations, ensuring stability across Netflix's massive engineering platform.
The mechanism behind Quasar combines sophisticated code analysis with large-scale data processing. The system works by first creating a comprehensive index of all the code across Netflix's many repositories. To do this, it leverages the Source Code Indexing Protocol (SCIP), an open standard that describes the relationships between different parts of a codebase, such as which function calls another. This index of API references is stored in a data lake using Amazon S3. When a developer wants to update a library, Quasar performs an API comparison between the old and new versions to identify exactly what has been added, removed, or modified. It then uses Amazon Athena to query the vast code index, quickly generating a precise list of every single application or service that calls the specific parts of the API that are changing. This provides a concrete data-driven report on the potential impact, transforming abstract risk into a manageable list of affected teams.
While Quasar is a custom Netflix tool, the problem it addresses is universal in modern software architecture. The challenge of managing dependencies, often called "dependency hell," has plagued developers for decades, but it has become particularly acute with the widespread adoption of microservices. When an organization runs hundreds or thousands of independent services, tracking the intricate web of interdependencies becomes nearly impossible without dedicated tooling. Other tech giants have tackled this with massive, centralized systems like Google's monorepo and Bazel build system, which enforce dependency rules at a fundamental level. Netflix's approach represents a different strategy, one that uses post-hoc analysis and indexing across a distributed set of repositories. This aligns with a broader industry trend toward improving software supply chain visibility, not just for stability but also for security, as understanding dependencies is the first step in tracking the spread of vulnerabilities.
The practical takeaway for engineering leaders and developers is the growing importance of treating dependency management as a first-class problem. While most companies cannot build a tool as sophisticated as Quasar, the principles behind it are scalable. Investing in tools that visualize the service dependency graph, enforcing clear API contracts, and establishing processes for deprecating code are crucial steps for any growing engineering organization. The future of this space, as hinted at by Netflix, involves even greater automation. The company is reportedly exploring the use of agent-assisted migrations, where an AI could potentially help rewrite the consumer code to adapt to the new library changes automatically. This points toward a future where developers are not only notified of a breaking change but are also provided with a ready-to-merge pull request that fixes it, dramatically reducing the friction and manual effort involved in keeping a large software ecosystem up to date.
Why it matters
For large engineering teams, managing dependencies is a constant risk. A seemingly minor update to a shared library can unknowingly break dozens of downstream services. Netflix's approach provides a blueprint for how to systematically map these dependencies and de-risk the software supply chain at scale.
Business impact
Unexpected breakages from library updates lead to costly downtime, emergency fixes, and delayed product timelines. By proactively identifying the impact of changes, companies can reduce engineering rework, prevent outages, and ship features faster and more reliably. This directly improves developer productivity.
Tags
Related on Notifire
Related stories
Primary source: InfoQ
