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

推荐订阅源

Y
Y Combinator Blog
V
V2EX
Jina AI
Jina AI
爱范儿
爱范儿
M
MIT News - Artificial intelligence
量子位
L
LangChain Blog
Google DeepMind News
Google DeepMind News
酷 壳 – CoolShell
酷 壳 – CoolShell
罗磊的独立博客
腾讯CDC
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss

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 Nx Platform Outperforms DIY Cache by 5x | 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
Hetzner Cloud gets More Features to Market with Faster, M...
Juri Strumpflohner · 2025-02-07 · via Nx Blog

Hetzner Cloud is a leading provider of cloud infrastructure solutions, known for its reliability and flexibility. Their platform enables businesses to deploy and manage cloud environments efficiently, catering to a broad range of use cases, from hosting applications to scaling complex workloads. As the company grew, its engineering team faced challenges in maintaining development speed and team collaboration.

Challenge

As Hetzner Cloud scaled its operations, two primary challenges emerged:

  • Team structure and scaling – The growing codebase made it difficult to organize teams efficiently and allocate clear ownership.
  • CI performance – Long feedback loops slowed down development, making it harder to ship updates quickly.

Changes often required modifying several repositories and running multiple pipelines, adding unnecessary complexity and slowing development.

They found themselves in the situation that plagues most large organizations: the struggle with code organization. Over time, a monolithic architecture can become difficult to manage, with tightly interwoven dependencies making it hard to separate concerns. Hetzner Cloud's engineering team needed a structured approach to:

  • Modularize their monolithic application into smaller, more manageable units.
  • Allocate teams more effectively by defining ownership at a modular level.
  • Enforce clear boundaries between different parts of the system to prevent unintentional dependencies.

In addition to their monolith, Hetzner Cloud had multiple related projects spread across GitLab. Changes often required modifying several repositories and running multiple pipelines, adding unnecessary complexity and slowing development.

Their existing CI setup presented another major challenge.

  • Pipelines took 45 minutes per run, introducing significant delays in shipping features.
  • GitLab merge trains helped maintain code quality but resulted in redundant work, repeatedly running tests and builds even when unchanged code was involved.

Hetzner Cloud needed a solution that would streamline their development process, consolidate fragmented projects, and significantly improve CI performance.

Solution

After evaluating Nx and Turborepo, Hetzner Cloud selected Nx for its advanced monorepo management capabilities. They started a Nx Enterprise contract and closely collaborated with the Nx Developer Productivity Engineers to assess Hetzner's current software landscape and evaluate the best strategy. Their goal was not necessarily to create a monorepo in the first place, but to modularize their monolithic application. Nx provided the right tools to:

  • Break down the monolith into modular packages without affecting deployment.
  • Define clear domain boundaries using module boundary rules and conformance rules.
  • Improve ownership management by having a more modular structure with clear boundaries allowing for easier allocaton of owernship. Something that could further be improved in the future by using CodeOwners.

Beyond modularization, Nx helped consolidate fragmented projects into a single, structured workspace. This reduced the overhead of maintaining multiple repositories and simplified dependency management. Using the Nx Graph, the team gained visibility into their project relationships, making it easier to coordinate work and optimize collaboration.

Junior developers were amazed at how fast things became. They'd run tests expecting them to take 20 minutes, and they'd finish in seconds!

Pavlo Grosse

Pavlo Grosse

Senior Software Engineer, Hetzner Cloud

To tackle the CI performance bottleneck, Hetzner Cloud adopted Nx Cloud, highly leveraging its Nx Replay feature, ability to distribute runs and re-run flaky tasks automatically. These capabilities allowed them to optimize their CI workflows and eliminate inefficiencies that had previously slowed down development cycles.

  • Minimized redundant processing – PRs in merge trains only reprocessed necessary parts, restoring everything else from the Nx remote cache.
  • Drastic CI time reduction – Pipelines that previously took 45 minutes now averaged 6 minutes, even as more projects were onboarded.
  • Improved debugging capabilities – Nx Cloud provides insights into task execution times and makes it easy to search logs of failed ones, making troubleshooting more efficient.

Also having the Nx Console extension in their IDE was a big time saver when working with a large workspace with hundreds of projects. It allows you to explore the workspace in a more visual way and trigger tasks directly from within the IDE vs typing commands in the terminal.

Results

From a Monolith to a Modular Architecture with 116+ Projects

By structuring their codebase into fine-grained packages, Hetzner Cloud successfully transitioned from a large monolith to a modular architecture. This shift made the codebase easier to maintain and evolve, reducing dependencies between different parts of the system. It also allowed teams to be allocated more effectively, ensuring clear ownership of specific areas within the codebase, leading to a more efficient and scalable development process.

Pipeline Speed Improved Despite Codebase Growing to Hundreds of Projects

CI performance saw a dramatic improvement. Build times dropped from 45 minutes to most runs being around 6 minutes, with some reaching up to 20 minutes. As Hetzner Cloud modularized the monolith into separate projects and brought in additional ones, the codebase grew, yet CI execution time kept decreasing, making scaling seamless. An 85% cache hit rate saved a staggering 6 days of compute time per day, totaling 197 days saved monthly.

Shipping Features Faster

Consolidating projects into a single repository eliminated the complexity of managing multiple repositories and pipelines, reducing overhead from maintaining separate CI setups. This simplified cross-project changes, allowing the team to ship features faster and with greater confidence.

Continuous Refinement in Collaboration with Nx DPE Team

Hetzner Cloud continues to work closely with the Nx Developer Productivity Engineering (DPE) team to monitor and refine their setup. By actively collaborating, they ensure that their monorepo remains optimized and that their CI is continuously improved. This ongoing partnership allows Hetzner Cloud to adapt to new challenges, fine-tune configurations, and further push the boundaries of efficiency in their development workflow.