All posts
Engineering

Monorepo vs. Polyrepo for Web and Mobile Codebases: How a Vietnam Engineering Team Structures Shared Code Across Platforms

Published on 6 Oct 2026

monorepo-vs-polyrepo-for-web-and-mobile-codebases-how-a-vietnam-engineering-team-structures-shared-code-across-platforms

It determines how fast a team ships when a web app, an iOS app, an Android app, and a backend API all need the same business logic, and it determines how much time engineers lose to broken builds, permission mismatches, or duplicated code. For teams shipping web and mobile from one codebase, the short answer is: use a monorepo when the platforms share meaningful logic and one team owns all of them, and use a polyrepo when compliance boundaries, release cadence, or team ownership genuinely diverge across platforms.

724SOFTWARE, a Vietnam-based engineering partner that has built multi-platform products for regulated fintech and consumer apps, structures this decision around three questions: what code is actually shared, who needs independent release cycles, and what compliance boundary has to hold at the repository level.

TL;DR

  • A monorepo puts web, mobile, and shared logic in one repository with one version history; a polyrepo splits each platform into its own repository with its own history and permissions.

  • Monorepos reduce duplication and simplify cross-platform refactors, but recent benchmarking shows they carry real costs: a 2026 Faros AI study of 320 teams found median pull request cycle times of 19 hours in monorepos versus 2 hours in polyrepos.

  • Tool choice matters more than the monorepo/polyrepo label alone. Turborepo and Lerna work well for JavaScript/TypeScript-only stacks; Nx adds plugin support for web and mobile frameworks; Bazel handles polyglot repos (native iOS/Android plus web) at higher setup cost.

  • Compliance frameworks favor polyrepos by default because repository-level permissions map directly to access-control requirements; monorepos need CODEOWNERS files or directory-level tooling to reach the same boundary.

  • 63% of companies with 50+ developers now run a monorepo structure, but that adoption rate does not mean monorepo is correct for every web/mobile team, particularly smaller ones with divergent release cadences.

About the Author: 724SOFTWARE is a Vietnam-based engineering partner with delivery experience spanning React Native, Flutter, and native iOS/Android builds for fintech and consumer platforms across Hong Kong, South Korea, and Vietnam. This article draws on that direct architecture experience, not secondary research alone.

What Is the Actual Difference Between a Monorepo and a Polyrepo?

A monorepo is a single repository holding multiple projects, packages, or platform targets under one version-control history. A polyrepo is the inverse: each project, service, or platform gets its own repository, its own commit history, and its own access controls.

The difference sounds cosmetic until a team tries to change a shared validation rule that lives in both the web app and the mobile app. In a monorepo, that change is one commit touching both consumers, reviewed in one pull request. In a polyrepo, it is two (or three) coordinated pull requests across separate repos, often merged out of order, with a published package version bridging the gap in between.

That single distinction, one commit versus coordinated multi-repo commits, is the mechanism behind most of the tradeoffs discussed below. It is not about preference; it is about how many moving parts a single logical change touches.

Why Does Build and Dependency Management Get Harder as Web and Mobile Code Converge?

Dependency management complexity in a monorepo scales with the number of packages and the depth of their interdependencies, not with team size alone. When a web app, a mobile app, and a shared UI or business-logic package sit in one repo, every dependency bump (a new version of a validation library, a design-token package) has to be tested against every consumer simultaneously.

Polyrepos sidestep this by isolating each project's dependency graph, which is part of why polyrepos generally build faster for any individual project. But that isolation has a cost: teams lose the guarantee that "the version of shared code in web matches the version in mobile," and drift between platforms becomes a silent, recurring bug source rather than a compile-time error.

This is where tool choice becomes the real decision, not just the monorepo/polyrepo label. Nx provides caching and code generation with plugin support that spans both web and mobile frameworks, which is why teams running React Native alongside a web frontend often land on Nx rather than a JavaScript-only tool.

Turborepo and Lerna are built for fast caching and publishing in JavaScript/TypeScript projects but do not natively support native mobile code (Swift, Kotlin), so a turborepo vs nx decision usually comes down to whether the mobile layer is React Native (Turborepo can work) or fully native (Nx or Bazel is the more realistic fit). Bazel goes further still, supporting large, polyglot repositories spanning web and native mobile languages together, but that capability comes with meaningfully higher setup complexity than either Turborepo or Nx.

What Do the Numbers Actually Say About Monorepo Performance?

The performance conversation around monorepo vs polyrepo has moved past theory into measured data, and the data is more mixed than most advocacy blogs suggest. A 2026 Faros AI study of 320 engineering teams found median pull request cycle times of 19 hours in monorepos compared to 2 hours in polyrepos, a gap large enough that it should factor directly into the architecture decision for any team where release velocity is the primary constraint.

Storage and build scaling is the second real cost. Monorepos can grow to a size where naive Git operations become slow enough to affect daily work; Dropbox's monorepo optimization work, which reduced repository size from 87GB to 20GB, is a documented example of the kind of infrastructure investment monorepos eventually require. Teams considering a monorepo for monorepo react native projects specifically should budget for this: a mobile monorepo that includes native build artifacts, image assets, and multiple platform targets grows faster than a web-only monorepo, and the caching layer (Nx, Turborepo, or a custom solution) is not optional once the repo passes a few hundred megabytes.

Adoption data supports the direction of travel even with these costs: current industry figures put monorepo adoption at 63% among companies with 50 or more developers. That is a signal about team size and coordination need, not a verdict that monorepo is correct regardless of context.

How Does Compliance Change the Right Answer for Regulated Industries?

Compliance requirements are not neutral on this architecture decision; they actively favor polyrepos unless a team invests in additional tooling. Regulated industries typically require strict access control, least-privilege enforcement, and separation of duties. Polyrepos support these requirements natively because permissions attach at the repository level: a contractor working on the mobile app simply has no access to the payments-service repository.

Monorepos need CODEOWNERS files, directory-level access controls, or specialized tooling to reach the same boundary, and that tooling has to be configured correctly and audited, not just installed once. For a fintech platform handling KYC data, trading logic, or settlement flows, this is a real design constraint, not a footnote. On engagements like SHS Derivatives and MyVIB Stock Trading, where regulatory scrutiny and audit trails are non-negotiable, repository-level access boundaries were part of the initial architecture conversation, not an afterthought bolted on after a security review.

How Does 724SOFTWARE Decide Which Structure Fits a Client's Web and Mobile Product?

The decision follows three questions applied in order, not a generic best practice checklist.

First: does the shared code (validation, API clients, design tokens, business rules) change often enough that keeping it in sync across separate repos would create real drag? If yes, a monorepo with Nx or a similar tool is usually the default starting point.

Second: does one team own web and mobile together, or do separate teams with separate release cadences own each platform? Divergent ownership is a strong signal toward polyrepo, regardless of code overlap.

Third: does a compliance boundary need to hold at the repository level, which is common in fintech and healthcare engagements, in which case polyrepo (or a monorepo with enforced CODEOWNERS policies) is the safer default.

On the Higher fan-engagement platform (React Native, 500,000+ downloads), a single team owned mobile and backend together, which made a monorepo the practical choice for shared voting-logic code under traffic spikes. On UTGL, a Flutter-based omni-channel platform spanning mobile and web with a rule-based compliance engine, repository structure had to account for audit and access-control requirements from day one, which shaped a more segmented approach around sensitive services.

This architecture decision benefits from software architecture expertise grounded in actual delivery experience, because the wrong choice compounds every sprint afterward.

Frequently Asked Questions

Is a monorepo always faster for web and mobile teams? No. Faster code-sharing does not mean faster delivery; the Faros AI cycle-time data shows the opposite trend for pull request velocity in many monorepo setups.

What's the simplest rule for choosing turborepo vs nx?

If the stack is JavaScript/TypeScript only (web plus React Native), Turborepo is lighter to set up. If native iOS/Android code is involved alongside web, Nx's plugin ecosystem handles the mix better.

Does monorepo react native work well with a native iOS/Android app in the same repo?

It can, but native build artifacts increase repo size and build time faster than pure JavaScript code, so caching tooling becomes necessary sooner than teams expect.

Do compliance standards force a specific architecture?

They favor polyrepos by default because access control maps to repository boundaries; a monorepo can meet the same standard but needs deliberate tooling (CODEOWNERS, directory permissions) to do so.

How does 724SOFTWARE decide this for a new client engagement?

By assessing shared-code volume, team ownership structure, and compliance boundary requirements before writing an architecture recommendation, the same approach applied across fintech, edtech, and consumer mobile engagements.

Is this a good fit question for outsourced or offshore teams?

Yes. Any offshore software development team or application development outsourcing engagement should include this architecture conversation in the first weeks, because retrofitting repo structure after a codebase grows is expensive.

Does repo choice affect mobile app development pricing?

Indirectly. A monorepo that reduces duplicated logic across web and mobile can reduce ongoing maintenance cost, but setup complexity (especially with Bazel) adds upfront engineering time that should be scoped explicitly.

About 724SOFTWARE

724SOFTWARE is a Vietnam IT company delivering custom software development, dedicated engineering teams, and offshore development center (ODC) engagements for startups, SaaS companies, and enterprises across Singapore, Australia, the US, UK, and the SEA/APAC region. As a custom software development company with 200+ professionals (58% senior-level) and delivery experience spanning fintech, digital healthcare, and edtech platforms, the team has built and structured multi-platform web and mobile codebases for regulated and high-traffic consumer products alike.

Teams scale from 1 to 50+ pre-vetted engineers within 2-4 weeks, supported by a follow-the-sun delivery model with <10-minute incident response time for 24/7 support. As a selected Anthropic partner in Vietnam, 724SOFTWARE trains its engineers to use Claude Code as part of standard delivery work, which shapes how quickly architecture decisions like monorepo versus polyrepo get implemented and validated in practice.

If your team is weighing this decision for an upcoming web and mobile build, or evaluating enterprise application development services for a multi-platform product, talk to 724SOFTWARE at https://724software.com.vn/.

Share this article

Engineering

Shrimpie Tran

AI Engineer

Keep Reading

Explore more from our experts.

View all

Stay ahead with our insights.

Get the latest on software design, strategy, and what's working in the field.

We respect your inbox. Unsubscribe anytime from any email.