Home Blog Developer Experience and Pl Nx cloud for distributed caching and task execution
πŸ› οΈ Developer Experience and Pl February 26, 2026 12 min read

Nx cloud for distributed caching and task execution

Developer Experience and Pl Enterprise Guide 2026 SCALE D2C Developer Experience and Pl Enterprise Guide 2026

Nx Cloud's distributed task execution and remote caching transforms monorepo CI from a bottleneck into a competitive advantage β€” reducing CI times from 30–60 minutes to 5–15 minutes by caching task outputs across machines and distributing test execution in parallel. For engineering organisations with growing monorepos where CI time is becoming a developer friction point, Nx Cloud provides the highest-ROI infrastructure investment available. This guide covers the setup, the cost model, and the configuration patterns that maximise performance.

What Nx Cloud Provides

Two Core Nx Cloud Capabilities
Remote Cache: When a task (build, test, lint) has been executed with identical inputs anywhere β€” a colleague's machine, a previous CI run, any machine connected to the same workspace β€” Nx Cloud serves the cached output instantly instead of re-executing the task. A monorepo with 50 packages where 48 packages haven't changed runs only 2 packages' tasks; the other 48 are cache hits. Distributed Task Execution (DTE): For tasks that must run (cache misses), Nx Cloud distributes them across multiple CI agents in parallel, with intelligent task ordering to minimise total CI time. Together, these two capabilities eliminate the two main CI time wasters: running unchanged work and running changed work serially.

Setup and Configuration

01
Step 1
Connect to Nx Cloud

In your Nx workspace: npx nx connect. This adds an nxCloudId to nx.json and sets up the remote cache connection. Create an account at cloud.nx.app β€” the first organisation is free (up to 500 hours compute saved/month). Commit the updated nx.json. From this point, any developer or CI run that executes Nx tasks will: check the remote cache first, use cached results if available, upload new results to the cache for others to benefit from. First-time setup: 5 minutes. Immediate benefit: cache hit rates of 60–80% on typical monorepos within a week of the team using it.

npx nx connectnxCloudId in nx.jsoncloud.nx.app account
02
Step 2
Configure Distributed Task Execution

For DTE in CI: update your CI config to use multiple agents. GitHub Actions example: define a main workflow that runs npx nx-cloud start-ci-run --distribute-on="3 linux-medium-js", then N agent jobs that run npx nx-cloud start-agent. The main workflow coordinates; agents pick up and execute tasks in parallel. Nx Cloud handles task ordering (ensuring build runs before test) across agents automatically. Configure in .nx/workflows/agents.yaml for Nx's first-party CI integration. With 3–5 agents: CI time typically drops 60–70% vs serial execution on a single machine.

nx-cloud start-ci-runParallel agent jobs60–70% CI reduction
03
Step 3
Optimise Cache Hit Rate

Monitor cache hit rate in the Nx Cloud dashboard (cloud.nx.app β†’ workspace β†’ CI analytics). Target: >70% cache hit rate for stable CI. Improve hit rate: add inputs configuration to nx.json to precisely define what files affect each task (avoid broad glob patterns that invalidate cache unnecessarily). Example: for a build task, inputs should include source files and tsconfig but exclude test files. Each cache input tweak improves hit rate. Low hit rate (<50%): check whether inputs configuration is too broad, or whether a shared dependency is changing frequently and invalidating downstream caches.

cloud.nx.app CI analyticsTarget >70% hit rateinputs configuration tuning
80%
Cache hit rates achievable with well-configured Nx Cloud on mature monorepos β€” 4 in 5 CI task executions are cache hits, dramatically reducing compute time and cost
5Γ— faster
Typical CI time improvement with Nx Cloud remote cache + DTE vs baseline serial CI β€” a 30-minute CI pipeline becomes 5–8 minutes with 3–5 agents and 70%+ cache hit rate
Free tier
Nx Cloud free tier: 500 hours of compute saved per month β€” sufficient for teams with 5–20 developers. Paid plans from $49/month for higher limits. Compare to GitHub Actions compute cost saved: often the free tier pays for itself immediately
Nx and Monorepo CI Optimisation

Our DevOps and software development teams configure Nx Cloud for enterprise monorepos β€” remote cache setup, DTE configuration, and cache hit rate optimisation. Book a free advisory session.

Frequently Asked Questions

End-to-end Developer Experience and Pl strategy, implementation, and optimisation. Contact us for a free consultation.

Strategy: 4–8 weeks. Full implementation: 3–12 months.

Yes β€” D2C brands to enterprise. View our pricing.

DEVELOPER EX

Ready to Implement Developer Experience and Pl?

Our specialist team delivers measurable ROI for enterprise and D2C brands.

Free Audit