惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
P
Palo Alto Networks Blog
C
Cisco Blogs
The Hacker News
The Hacker News
T
Threatpost
S
Schneier on Security
K
Kaspersky official blog
Spread Privacy
Spread Privacy
博客园_首页
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
量子位
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Google DeepMind News
Google DeepMind News
Security Latest
Security Latest
博客园 - 司徒正美
云风的 BLOG
云风的 BLOG
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
News and Events Feed by Topic
爱范儿
爱范儿
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
Project Zero
Project Zero
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
GbyAI
GbyAI
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
Forbes - Security
Forbes - Security
博客园 - 三生石上(FineUI控件)
C
Cyber Attacks, Cyber Crime and Cyber Security
N
News and Events Feed by Topic
V
V2EX
Webroot Blog
Webroot Blog
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Blog — PlanetScale
Blog — PlanetScale
M
MIT News - Artificial intelligence
Scott Helme
Scott Helme
Simon Willison's Weblog
Simon Willison's Weblog
L
LangChain Blog
W
WeLiveSecurity
Cloudbric
Cloudbric

Nx Blog

Sharing Tailwind CSS Styles Across Apps in a Monorepo | Nx Blog How SiriusXM Stays Competitive by Iterating and Getting to Market Fast | Nx Blog Agentic Experience Is the New Developer Experience | Nx Blog Nx Joins the Linux Foundation and the Agentic AI Foundation | Nx Blog A Monorepo Is NOT a Monolith | Nx Blog Why we deleted (most of) our MCP tools | Nx Blog Teach Your AI Agent How to Work in a Monorepo | Nx Blog How Broadcom stays efficient and nimble with monorepos | Nx Blog Why Monorepos are King in the Age of AI | Nx Blog Nx 2026 Roadmap: Expanding Agent Autonomy, Improving Performance, Better Polyglot and More | Nx Blog End to End Autonomous AI Agent Workflows with Nx | Nx Blog Autonomous Agents at Scale | Nx Blog Scaling 700+ Projects: How Nx Became a 'No-Brainer' for Caseware | Nx Blog Configure Tailwind v4 with Angular in an Nx Monorepo | Nx Blog The Missing Multiplier for AI Agent Productivity | Nx Blog A Year of Nx Webinars | Nx Blog Wrapping Up 2025 | Nx Blog Nx 22.3 Release: Angular 21 Support, tsgo Compiler, and Prettier v3 | Nx Blog Nx Cloud Release: Agent Resource Usage | Nx Blog An Nx Carol: Past, Present, and Future of Your Monorepo | Nx Blog Nx 22.1 Release: Terminal UI on Windows, Storybook 10, Vitest 4, and more! | Nx Blog The Compounding Effect: How Nx Features Multiply Performance Gains | Nx Blog 10 Monorepo Myths Debunked: Separating Fact from Fiction | Nx Blog Nx Cloud Release: Enterprise Task Analytics | Nx Blog Watch and Rebuild Storybook Dependencies with Nx | Nx Blog Book - React for Enterprise: Timeless Architecture for Enterprise Apps | Nx Blog Beyond Remote Cache: Unlock 70% More CI Performance | Nx Blog Nx 22 Release: Expanding the build platform | Nx Blog What's the Point of Generating All This Code If You Can't Merge It? | Nx Blog What's New in Nx Self-Healing CI | Nx Blog Nx Highlights: Smarter AI integration, all-new graph UI, and big new versions of your favorite tools | Nx Blog Making the Case for Smarter Monorepos, and How to Not Get Fooled by Myths | Nx Blog Integrating Biome in 20 Minutes | Nx Blog S1ngularity - What Happened, How We Responded, What We Learned | Nx Blog Stop Babysitting Your PRs: Self-Healing CI Cuts Time to Green by 50% | Nx Blog UKG Unifies Their Codebase and Eliminates CI Overhead to Focus on Customer Value | Nx Blog How Git Worktrees Changed My AI Agent Workflow | Nx Blog Nx Cloud Workspace Graph: See Your Organization's Code Structure Like Never Before | Nx Blog Seamless Java Deployment in Nx Using Docker | Nx Blog Getting Mobile Into Your Monorepo: Android + Nx | Nx Blog Polyglot Projects Made Easy: Integrating Spring Boot into an Nx Workspace | Nx Blog The Journey of the Nx Plugin for Gradle: From Prototype to Production | Nx Blog Combining Predictability and Intelligence With Nx Generators and AI | Nx Blog A New UI For The Humble Terminal | Nx Blog Continuous tasks are a huge DX improvement | Nx Blog New and Improved Module Federation Experience with Nx | Nx Blog A New UI for Nx Migration | Nx Blog Custom Task Runners and Self-Hosted Caching Changes | Nx Blog Enterprise Angular Monorepo Patterns | Nx Blog Using Rspack with Angular | Nx Blog Angular Architecture Guide To Building Maintainable Applications at Scale | Nx Blog Modern Angular Testing with Nx | Nx Blog Nx Update: 20.5 | Nx Blog Are Monorepos the Answer to Better AI-Assisted Development? | Nx Blog Making Cursor Smarter with an MCP Server For Nx Monorepos | Nx Blog React Development for 2025 | Nx Blog Using Apollo GraphQL in an Nx Workspace | Nx Blog Angular State Management for 2025 | Nx Blog Tailoring Nx for Your Organization | Nx Blog Nx Cloud Pipelines Come To Nx Console | Nx Blog Define the relationship with monorepos | Nx Blog See your affected project graph in Nx Cloud | Nx Blog Handling CORS In Your Workspace | Nx Blog Improve your architecture and CI pipeline times with Nx projects | Nx Blog Announcing Nx 20 | Nx Blog Introducing Nx Powerpack | Nx Blog Nx 19.5 is here! Stackblitz, Bun, Incremental Builds for Vite, Gradle Test Atomizer | Nx Blog Introducing Explain with AI | Nx Blog Nx Enterprise Podcast Episode 2: Tine Kondo | Nx Blog Monorepos and CI can be a Mess - Here's How Nx and Nx Cloud Fixed It | Nx Blog Nx Enterprise Podcast Episode 1: Hicham El Hammouchi | Nx Blog Nx 19.0 Release!! | Nx Blog Manage Your Gradle Project using Nx | Nx Blog Making the Argument for Monorepos | Nx Blog Reliable CI. A new execution model fixing both flakiness and slowness | Nx Blog Monorepos - Why Speed Matters | Nx Blog Nx Agents Walkthrough: Effortlessly Fast CI Built for Monorepos | Nx Blog Launch Nx Week Recap | Nx Blog Versioning and Releasing Packages in a Monorepo | Nx Blog Fast, Effortless CI | Nx Blog Introducing @nx/nuxt Enhanced Nuxt.js Support in Nx | Nx Blog What if Nx Plugins Were More Like VSCode Extensions | Nx Blog Monorepos: the Benefits, Challenges, and Importance of Tooling Support | Nx Blog Nx — Highlights of 2023 | Nx Blog Nx 17.2 Update | Nx Blog Unit Testing Expo Apps With Jest | Nx Blog Nx Docs AI Assistant | Nx Blog State Management Nx React Native/Expo Apps with TanStack Query and Redux | Nx Blog Nx 17 has Landed | Nx Blog Nx Conf 2023 — Recap | Nx Blog Nx Raises $16M Series A | Nx Blog Introducing Playwright Support for Nx | Nx Blog Nx 16.8 Release!!! | Nx Blog Step-by-Step Guide to Creating an Expo Monorepo with Nx | Nx Blog Qwikify your Development with Nx | Nx Blog Create Your Own create-react-app CLI | Nx Blog Storybook Interaction Tests in Nx | Nx Blog Evergreen Tooling — More than Just CodeMods | Nx Blog Nx 16.5 Release!!! | Nx Blog A Practical Guide on Effective AI Use - AI as Your Peer Programmer | Nx Blog
Nx Platform Outperforms DIY Cache by 5x | Nx Blog
Victor Savkin · 2025-12-05 · via Nx Blog

Nx is an Integrated Build Platform, which combines an advanced build system with innovative continuous integration and AI features.

The core of the platform is the Nx CLI, an MIT-licensed build system used by millions of developers. It provides tremendous value to teams who manage to scale their Nx repos with DIY cache solutions.

This post compares using the full platform against using only the Nx CLI with a DIY cache.

What the Nx Platform Adds

It adds two critical capabilities beyond remote caching:

Fast, Reliable CI That Scales Effortlessly

The platform shifts responsibility for fast, reliable CI from the external CI platform into the build system itself. Instead of treating CI orchestration as a separate concern, it handles scaling out work, leveraging caching, parallelism, and distributing compute to speed up validation. The only thing you need to do in your CI provider is specify which commands you want to run, and Nx will handle the rest.

Self Healing CI: AI Agent Automatically Fixing Broken PRs

The Nx platform includes an AI agent that detects and fixes broken pull requests automatically while the CI is still running. It will rerun flaky tasks, will analyze environmental issues, and, most importantly, it will generate and sometimes even automatically commit fixes for code issues.

Comparing Nx Platform and DIY

To compare the Nx platform with a DIY solution we created a repository with two similar CI setups: one uses the full Nx platform, the other uses only the Nx CLI and implements CI using a well-designed DIY distributed solution: https://github.com/vsavkin/benchmark-repo.

Note on Cache Safety

Every DIY cache implementation, including first-party packages provided by Nx, has the CREEP vulnerability. This means that every DIY solution has two usage patterns: Safe and Unsafe. The Nx platform’s remote cache is always safe.

Two usage patterns of DIY cache:

  • Safe usage: On average, the DIY cache hit rate is around 30%.
  • Unsafe usage: On average, the DIY cache hit rate is around 60%, which is comparable with the Nx platform’s remote cache.

Organizations in regulated industries are required to use the cache safely. Despite this, most organizations run DIY cache in unsafe mode. The benchmarks in this document assume unsafe DIY cache usage, meaning the performance differences would be significantly larger with safe cache implementation.

Benchmarks

CI Time

We measured CI time at approximate p50 and p95 by running several common pull request types in the two repos. The p95 case represents a nearly full rerun (e.g., when a core library changes). The p50 case represents a PR rerun where a lot of targets are cached or a change affects only part of the repo.

Results

P50

  • Nx platform - Validation step: 3m 54s. Whole pipeline: 6m 11s
  • DIY. - Validation step: 5m 49s. Whole pipeline: 8m 1s

P95

  • Nx platform - Validation step: 9m 11s. Whole pipeline: 11m 23.
  • DIY - Validation step: 15m 53s. Whole pipeline: 18m

<!-- | P50 | Validation step | Whole pipeline | | - | --------------- | -------------- | | Nx platform | 3m 54s | 6m 11s | | DIY | 5m 49s | 8m 1s |

P95Validation stepWhole pipeline
Nx platform9m 11s11m 23
DIY15m 53s18m

The Nx platform is 30-40% faster. This speed comes from its powerful distribution mechanism that uses all the metadata Nx knows about your workspace. Nx allocates tasks efficiently across machines, shares files effectively, and splits large tasks (like e2e test suites) into smaller units, which improves compute allocation and CI time. Again, the difference will be most substantial if the DIY cache was used in a safe manner.

Note, the result is delivered without an increase in compute.

To demonstrate this in a real-world scenario, here’s an example of a CI run on a large monorepo. Each blue bar represents a batch of tasks running concurrently. It highlights how Nx splits and packs tasks to achieve near-perfect utilization of all available VMs.

A chart showing tasks distributed across multple Nx agents

Configuration

With the Nx platform, the CI configuration is just 31 lines (see here) compared to 231 lines (see here) with the DIY setup. The DIY configuration is 7.5x longer. It’s also more complex and error prone. And as your repository grows or changes, you won’t need to constantly adjust your CI to keep it fast; Nx handles that automatically.

In real projects, the contrast is even more dramatic. When building the Nx platform and migrating our CI to use it, our CI configuration shrank by 10x. That translates to less maintenance, greater predictability, and easier organization-wide standardization.

The Real Impact is Increased Time-to-Green and Team Velocity

While the Nx platform substantially improves CI time and compute compared to DIY, the bigger difference is how it affects team velocity. We measure this through:

  • Number of interruptions per PR - ~ number of failed CI runs
  • Time-to-green (TTG) - Time to get a PR to its first green mergeable state
  • Time-to-final-green (TTFG) - Time to the final green PR before merge

As researchers at Microsoft showed, developers spend only 11% of their time writing code. The majority of their time is spent on other activities, including attending to their failing PRs. Metrics like TTG and TTFG correlate directly with team velocity.

And the combination of interruptions and TTFG determines developer time saved by the Nx platform.

The Effect of CI Speed on Velocity

CI typically requires multiple runs to reach a green state. Each failed attempt is a costly interruption.

Optimizing CI time through remote cache and distribution provided by the Nx platform does reduce TTG and TTGG. For instance, if CI drops from 30 minutes to 15 minutes and you run it twice on average, you save 30 minutes total.

However, cache and distribution don't reduce the number of failures. They just make failures happen faster. If CI fails due to flaky tasks or code issues, it fails in 15 minutes instead of 30, but you still face the same interruption.

The Effect of Nx Platform’s AI Agent on Velocity

Each interruption is expensive:

  • Research shows every interruption costs on average 45 minutes of developer time, often more
  • There's a gap between when CI fails and when a developer addresses it, meaning failed CI can increase TTG and TTFG by hours.
  • The impact extends beyond individual PRs—blocked merges create second-order effects that further reduce velocity

How Nx Platform Reduces Interruptions

  • Automatic deflaking - The platform deflakes flaky tasks, ensuring CI only fails for legitimate reasons. It uses a hybrid approach: a probabilistic model based on historical workspace data plus an agentic step that identifies flaky tasks. This resolves 95%+ of flaky failures.
  • Automatic fixes - The platform fixes failed pull requests by proposing and validating code changes. Even in large scale monorepos, about 60%+ of these fixes are accepted. When configured, it automatically applies straightforward fixes.

The platform also identifies CI failures caused by broken environments or bad repo state. This doesn't eliminate the interruption but drastically reduces investigation time. Measuring this impact requires actual development work, so sandbox benchmarks cannot capture it. Instead we will show the impact across different real world workspaces.

Real-World Impact

This is a sample of our enterprise clients. Note, the agent’s ability to generate useful fixes and assessments does not deteriorate as the repository grows. This consistency is largely thanks to Nx, which extracts valuable metadata from any repo to ensure the AI agent receives only the most relevant context.

Graph showing percentage of broken PRs fixed

This is how it affects team velocity:

Stacked bar graph showing Time to Green Savings per PR

Stacked bar graph showing Time to Green Savings per PR

The impact of remote caching is much stronger in time-to-final-green, since the same PRs are rerun multiple times and more targets end up cached. But even in this case the rest of the platform (especially Nx’s AI agent) has a much larger impact.

Note that these savings are per PR. It’s common to see TTG and TTFG decrease by several hours, resulting in thousands of hours saved per month. Also, in some cases, the number of interruptions (i.e., failed CI runs) is reduced by 40% or more.

When using a DIY setup with an unsafe remote cache, the cache-related gains (blue) are similar, but, as you can see, they typically account for only 20–40% of the total impact. This means the Nx platform realistically provides a 3–5× productivity improvement compared to a DIY solution with a self-hosted cache.

Learn more