February 2025 Summaries
6 posts from Nx
Filter
Month:
Year:
Post Summaries
Back to Blog
In this webinar presented by Juri Strumpflohner, the focus is on building modern React applications using platform-native tools such as NPM workspaces and TypeScript project references. The session highlights how Nx enhances the developer experience and accelerates the shipping of React applications. Key topics include the exploration of features like project references, their operational mechanisms, and their potential to significantly boost the performance of large React and TypeScript monorepos, both in local environments and on continuous integration (CI) systems.
Feb 26, 2025
76 words in the original blog post.
The tutorial outlines the process of building a full-stack application using Nx to manage both frontend and backend within a single repository, focusing on creating a GraphQL API with Apollo Server and a React application to consume it. It details the steps for setting up an Nx workspace, creating a GraphQL schema, using GraphQL Codegen for type generation, and developing a simple API to manage Lego sets. The guide emphasizes maintaining a modulith structure for monorepos to ensure consistent schema usage across projects. It also covers the integration of Apollo Client in a React app, demonstrating how to create and organize React components and libraries to facilitate communication with the backend. The tutorial provides insights on optimizing the development workflow with Nx, including setting up caching and task dependencies to ensure efficient and error-free code generation.
Feb 21, 2025
3,491 words in the original blog post.
Nx is a tool designed to enhance the efficiency and intelligence of development workflows within monorepos by providing a consolidated view of multiple projects and offering metadata that improves the capabilities of Large Language Models (LLMs) like GitHub Copilot. By integrating with editors like VSCode, Nx Console preprocesses metadata about workspace structure, project connections, technology stacks, and more, allowing LLMs to operate beyond file-level reasoning and understand architectural contexts. This integration helps streamline development processes by improving collaboration, reducing duplication, and enabling real-time error fixing. Nx's metadata also supports LLMs in understanding project ownership and dependencies, enhancing their ability to provide meaningful suggestions and optimizations. As LLMs continue to evolve, the combination of local workspace metadata with Nx Cloud insights, which track CI-related data, promises even richer assistance and higher-level reasoning.
Feb 17, 2025
1,390 words in the original blog post.
Vattenfall, a leader in energy production, faced significant challenges with their continuous integration (CI) infrastructure as their development teams and codebase grew, leading to bottlenecks due to the limitations of their CI provider, which allowed only 100 CI runners. Their workspace's requirement of 25+ runners per pull request (PR) restricted them to only four concurrent PRs, slowing progress. By collaborating with the Nx Enterprise team and implementing Nx Agents, Vattenfall overcame these limitations, enabling 100 concurrent PRs and reducing CI runtimes by 44%. Nx Agents facilitated task distribution without consuming CI runners, allowing for scalable concurrency and faster CI processes. This advancement also enabled the detection and management of flaky tests, reducing re-runs, and allowed the regular use of RenovateBot for automating dependency updates, which previously consumed valuable CI resources. The implementation of Nx Agents proved beneficial not only in terms of efficiency and speed but also in inspiring other business units within Vattenfall to consider similar solutions.
Feb 12, 2025
1,001 words in the original blog post.
Hetzner Cloud, a prominent cloud infrastructure provider, faced challenges in maintaining development speed and collaboration as it scaled its operations, primarily due to a monolithic codebase and inefficient CI processes. To address these issues, Hetzner Cloud adopted Nx for its monorepo management capabilities, which allowed them to modularize their codebase, consolidate fragmented projects, and improve collaboration by clearly defining ownership and boundaries within their system. This transition resulted in a significant reduction in CI pipeline times from 45 minutes to an average of 6 minutes and improved their ability to manage hundreds of projects within a single, structured workspace, ultimately enabling faster feature shipping and enhanced scalability. The collaboration with the Nx Developer Productivity Engineers played a crucial role in fine-tuning their setup, ensuring continuous improvement and adaptability to future challenges.
Feb 06, 2025
954 words in the original blog post.
Organizing an Nx workspace effectively involves adopting a "modulith" architecture, which balances the benefits of monolith and microservices by maintaining a single deployable while dividing code into distinct, maintainable parts. This approach is enhanced by Domain Driven Design and Hexagonal Architecture, among others, and emphasizes the importance of structured planning over a disorganized, ad-hoc approach. A well-structured workspace facilitates faster engineering processes, reducing confusion and conflicts, and streamlining CI processes by minimizing redundant tasks. Projects should be categorized by clear purposes, with a consistent naming convention that includes project scope and type, making them easily locatable and maintainable. This structure supports efficient code navigation and minimizes excessive dependencies and merge conflicts, promoting a virtuous cycle of self-reinforcing organization. Consistent tagging and module boundary rules further ensure that projects adhere to their defined responsibilities, enabling engineers to quickly find and apply changes. Tools like workspace generators can help maintain this structure, and it's essential to remain adaptable to organizational changes while keeping the workspace structure aligned with evolving goals.
Feb 03, 2025
2,596 words in the original blog post.