×

About the author

Akansha Agrawal
Lead Engineer
Akansha Agrawal is a Lead Engineer at Nitor Infotech with over 10 years of experience in frontend engineering. She specializes in building s... Read More

Software Engineering   |      02 Dec 2026   |     50 min  |

Highlights

This blog explores how organizations can rethink frontend architecture by moving from micro-frontends to a modular monolith without compromising modularity. It explains the differences between modularity, repository structure, and distributed deployment, highlighting how a modular monolith simplifies development, testing, and deployment through clearly defined module boundaries. The article covers practical implementation strategies, including public APIs, controlled dependencies, state ownership, and automated boundary enforcement using tools such as ESLint and Nx. It also compares both architectural approaches and provides a step-by-step migration roadmap to help teams choose an architecture that balances team autonomy, maintainability, and operational simplicity.

When simplifying deployment does not have to mean giving up modularity

  • Frontend architecture often follows a familiar path.
  • We start with a monolith.
  • The application grows.
  • Teams grow.
  • Releases become harder to coordinate.
  • The codebase becomes increasingly difficult to understand.

Then someone says:

“We need micro-frontends.”

Sometimes that is exactly the right answer.

But sometimes it is the beginning of another problem.

The question we should ask is not simply:

“Can we split the frontend?”

The better question is:

“What kind of independence does our product and organization actually need?”

That distinction matters because frontend teams often confuse three different concerns:

  • Modularity
  • Repository structure
  • Distributed deployment

They are related, but they are not the same thing.

A large frontend can have strong architectural boundaries without becoming a collection of independently deployed applications.

This is where the modular monolith becomes an interesting alternative.

In short (NEW): a modular monolith gives an enterprise frontend clear module boundaries, ownership and testability while keeping a single build and deployment. Micro-frontend architecture adds independent deployment, at the cost of operational complexity. This guide helps you decide which frontend architecture fits your product and your teams.

The Three Decisions We Should Not Confuse

Before comparing micro-frontends and modular monoliths, it helps to separate three architectural concerns.

Repository structure, modularity and deployment are three separate decisions

Fig: Repository structure, modularity and deployment are three separate decisions

Repository structure

A repository structure answers:

Where does the code live?

For example, a monorepo can contain:

  • One frontend application
  • Multiple frontend applications
  • Shared libraries
  • Design systems
  • micro-frontends

A monorepo does not automatically mean a modular architecture.

Modular architecture

Modularity answers:

How is responsibility divided, and which parts of the application are allowed to depend on one another?

A modular architecture is about:

  • Clear ownership
  • Explicit responsibilities
  • Controlled dependencies
  • Stable contracts
  • Encapsulation
  • Independent evolution of internal implementation

Distributed deployment

Distribution answers:

Which parts of the frontend can be built, released, and deployed independently?

Micro-frontends combine modularity with distribution.

A modular monolith focuses on strong modularity while keeping a single deployment unit.

This leads to an important principle:

A modular architecture does not require a distributed deployment model.

A team can have:

Monorepo + Modular Monolith

Frontend
│
┌─────────┼─────────┐
▼                         ▼                         ▼
Customer         Policy                 Claims
│                            │                         │
└─────────┼─────────┘
│
One Build
│
▼
One Deployment

or:

Monorepo + Micro-Frontends

Shell
│
┌─────────┼─────────┐
▼                         ▼                         ▼
Customer         Policy                 Claims
MFE                  MFE                    MFE
│                        │                          │
▼                        ▼                        ▼
Deploy                Deploy              Deploy

The repository model, module boundaries, and deployment model should be considered separately.

Why Micro-Frontends Became Attractive for Enterprise Frontend Architecture

Imagine an enterprise application with four major business domains: Customer, Policy, Claims, Payments

Initially, everything might live inside one frontend:

Frontend Application

  • Customer
  • Policy
  • Claims
  • Payments

As the organization grows, problems appear.

  • Different teams modify the same code.
  • Releases become coordinated.
  • A small change in one area can affect another.
  • Build and test times increase.
  • Ownership becomes unclear.

Eventually, the organization may decide to split the application:

Shell

│

┌──────────┼───────────┐

│                             │                                 │

▼                            ▼                               ▼

Customer             Policy                     Claims

MFE                      MFE                      MFE

Now each team can potentially:

  • Own its codebase
  • Manage its release process
  • Deploy independently
  • Adopt technology independently where necessary

That is a legitimate architectural benefit.

Micro-frontends solve a real organizational problem:

How can multiple teams work on one product without constantly coordinating every release?

The important word here is teams.

Micro-frontends are as much an organizational architecture as they are a frontend technical architecture.

But there is an important point to consider:

Multiple teams modifying the same repository does not automatically mean micro-frontends are required.

A modular monolith can also create ownership boundaries.

The difference is how much deployment independence the organization actually needs.

Related read: see Nitor Infotech’s guide to building scalable enterprise applications with React micro-frontends, covering Module Federation, Single-SPA and domain-driven design.

What Changes When the Frontend Becomes Distributed? – The Operational Cost of Micro-Frontend Architecture

Independent deployment is valuable.But it is not free.Once the frontend becomes distributed, additional concerns appear.

For example:

Shell

│

┌─────────┼─────────┐

▼                         ▼                         ▼

Customer         Policy                Claims

│                      │                        │

▼                     ▼                       ▼

Build               Build                 Build

│                      │                        │

Deploy            Deploy               Deploy

The team may now need to manage:

  • Multiple repositories
  • Multiple pipelines
  • Multiple deployments
  • Runtime composition
  • Shared dependency compatibility
  • Routing coordination
  • Shared authentication
  • Cross-frontend communication
  • Version compatibility
  • Integration testing
  • Runtime monitoring

The important point is not that these are impossible.They are solvable engineering problems.The question is whether solving them creates enough business value

What Changes When the Frontend Becomes Distributed? – Why Integrated Apps Fail Between Micro-Frontends

Consider a shell that loads Customer and Policy micro-frontends at runtime.

Customer MFE ─────┐
▼
Shell
▲
Policy MFE ──────┘

The Customer MFE may pass its own tests.The Policy MFE may pass its own tests.

The shell may also pass its tests.Yet the integrated application can still fail.

For example:

  • Runtime loading: The shell expects a remote module at a particular location, but the deployed MFE is unavailable or the expected remote entry has changed.
  • Routing: The shell expects: /customer/details while the Customer MFE changes its internal route handling or exposed route contract.
  • Shared dependencies: The shell and MFE may expect incompatible versions or configurations of shared libraries.
  • Authentication: The shell may establish an authenticated session, but the MFE may expect the authentication context in a different form. Communication contracts: Customer may publish: CUSTOMER_SELECTED while Policy expects: CUSTOMER_CHANGED, The individual applications can still be healthy while the integrated experience is broken. This is the operational tax of distribution.

Five ways a distributed micro-frontend architecture breaks at the seams

Fig: Five ways a distributed micro-frontend architecture breaks at the seams

Testing Across Frontend Boundaries in Micro-Frontends and Modular Monoliths

Testing is therefore an important architectural consideration.

In a modular monolith, teams can still test their modules independently while also running integration and end-to-end tests against the complete application.

A typical strategy might look like:

Customer Module
│
├── Unit tests
├── Component tests
└── Integration tests
│
▼
Full Application
│
▼
End-to-End Tests

With micro-frontends, the testing model becomes distributed:

Customer MFE ──┐
│
Policy MFE ────┼──> Shell ──> Integrated E2E Tests
│
Claims MFE ────┘

Each MFE should test its own implementation and contracts.

But the composed application still needs tests that validate the boundaries between independently deployed applications.

For example, an end-to-end flow might validate:

Login
↓
Customer
↓
Select Customer
↓
Policy
↓
Check Eligibility
↓
Create Policy

This catches failures that isolated MFE tests may not detect.The key point is: Independent deployment does not eliminate system-level testing. It changes where and how that testing needs to happen. A useful testing strategy therefore includes:

  • Module-level unit and component tests
  • Contract/integration tests for exposed interfaces
  • Shell integration tests
  • End-to-end tests for critical cross-domain journeys

This is one of the important trade-offs teams should consider before introducing distributed frontend architecture.

The Question We Should Ask

Instead of asking: “Is our frontend too large?” Ask: “What problem are we actually trying to solve?” Suppose the real problem is: “Five teams are modifying the same code.” Micro-frontends might solve that. lBut there may be another solution:

Single Application

│

├── Customer Module

├── Policy Module

├── Claims Module

├── Payments Module

└── Shared UI

with strict boundaries between the modules. Now we have a modular monolith. The deployment remains:

One Application

│

▼

One Build

│

▼

One Deployment

But internally, the application is no longer an uncontrolled monolith.

What Is a Modular Monolith?

A modular monolith is: A single deployable application that is internally divided into well-defined modules with explicit boundaries and controlled dependencies.

For example:

Frontend Application

│

├── Customer

│ ├── Public API

│ └── Internal

│

├── Policy

│ ├── Public API

│ └── Internal

│

├── Claims

│ ├── Public API

│ └── Internal

│

└── Payments

├── Public API

└── Internal

There is still one deployment. But that does not mean everything can access everything else. That distinction is the heart of the architecture.

A Folder Structure Does Not Make an Application Modular

This is where many modularization efforts fail. Someone creates: /customer

/policy /claims/payments and declares: “We now have a modular architecture.” Not necessarily. If Policy can directly import anything inside Customer:

Policy

│

└──> Customer/Internal/CustomerRepository

then the boundary is weak.

The real goal should be:

Policy

│

▼

Customer Public API

│

▼

Customer Internal Implementation The Customer module decides what it exposes.

Everything else remains internal. The same principle can be enforced technically.

For example, the project can expose a module entry point:

customer/
├── public-api.ts
├── components/
├── state/
├── services/
└── repositories/

Other modules import only: customer/public-api rather than reaching into: customer/repositories, customer/state, customer/services

The exact mechanism differs between Angular, React, and other frameworks, but the architectural goal is the same: Make the allowed dependency visible and the forbidden dependency difficult to create.

A weak folder boundary vs an enforced public API boundary (module boundaries)

Fig: A weak folder boundary vs an enforced public API boundary (module boundaries)

How Do We Make Module Boundaries Enforceable? in a Frontend Monorepo

This raises an important question: What prevents a developer from ignoring the intended boundary? A folder structure and architectural documentation are not enough.

Suppose the intended dependency is:

Policy
│
▼
Customer Public API
│
▼
Customer Internal

What prevents someone from importing: Customer/internal/state, Customer/internal/services, Customer/internal/repositories

directly? The answer should not be: “Developers should remember not to do that.” Important architectural rules should be encoded into the tooling.

Define the rules first

Before selecting a tool, the architecture needs explicit dependency rules.

For example:

  • A module may access another business module only through its public API.
  • Direct imports from another module’s internal implementation are forbidden.
  • Circular dependencies between business modules are not allowed.
  • A lower-level shared library should not depend on a business domain.
  • Shared UI libraries can be reused across modules.
  • Domain-specific business logic should remain owned by the relevant business module.
  • Cross-domain dependencies should be intentional and documented.

For example:

Policy → Customer Public API ✓

Policy → Customer Internal ✗

Shared UI → Customer Domain ✗

Customer → Policy → Claims
↑                                                  │
└─────────────────┘
✗ Cycle

Once the rules are clear, they can be enforced automatically.

Public entry points

A module should expose only the APIs that other modules are allowed to consume.

For example:

customer/
├── index.ts ← Public entry point
│
└── internal/
├── components/
├── state/
├── services/
└── repositories/

Another module should import only from the approved public entry point:

Policy
│
▼
customer/index.ts

rather than directly accessing:

customer/internal/**

The public entry point becomes the module’s architectural contract.

Import restrictions

Import restrictions can prevent developers from accessing internal implementation directly.

For example, ESLint rules such as no-restricted-imports can define rules like:

Allowed: 

Policy → Customer Public API ✓ 

Forbidden: 

Policy → Customer Internal State ✗ 
Policy → Customer Internal Service ✗ 
Policy → Customer Repository ✗

A developer who violates the rule receives a linting error.

The change can then be blocked before it reaches production.

Module-boundary rules

In a monorepo, workspace tooling such as Nx can define dependency constraints between libraries or modules.

For example:

Policy → Customer Public API ✓ 
Policy → Shared UI ✓ 
Policy → Customer Internal ✗ 
Customer → Policy Internal ✗

The rules can be based on module types, ownership, or tags.

This allows teams to define which kinds of dependencies are allowed.

For example:

Feature → UI Library ✓ 
Feature → Data Access ✓ 
Feature → Another Domain Restricted 
Shared UI → Business Domain ✗

Dependency analysis

Dependency analysis tools can validate the dependency graph and detect unexpected relationships.

For example, tools such as dependency-cruiser can define architectural dependency rules, while tools such as Madge can help identify circular dependencies.

For example:

Customer → Policy
Policy → Claims
Claims → Customer

This creates:

Customer
▲                 │
│                  ▼
Claims ← Policy

A dependency rule or architecture check can detect this before the application becomes increasingly coupled.

Controlled package exports

In larger applications, modules can be structured as workspace libraries or packages.

The package can expose only approved entry points.

For example:

@application/customer

is available to consumers, while:

@application/customer/internal/*

is not part of the supported public interface.

This creates another level of control around what a module is allowed to expose.

CI validation

The rules should not exist only on a developer’s machine.

They should be validated in the delivery pipeline:

Code Change
│
▼
ESLint Import Rules
│
▼
Module Boundary Rules
│
▼
Dependency Analysis
│
▼
CI Pass / Fail

If a developer:

  • Imports another module’s internal implementation
  • Introduces a forbidden dependency
  • Creates a circular dependency
  • Violates an ownership rule

the pull request should fail until the architectural violation is resolved. This turns an architectural guideline into an automated constraint. The principle is: A modular architecture should not depend entirely on developers remembering the rules. Important architectural boundaries should be encoded in tooling and continuously validated. The exact tools may vary by technology stack, but the approach remains the same:

  • Public APIs define what is allowed.
  • Import and dependency rules define what is forbidden.
  • Automated checks validate the rules.
  • CI prevents violations from being merged.

That is what makes the boundary enforceable rather than merely documented.

Module boundary rules validated automatically in CI

Fig: Module boundary rules validated automatically in CI

Example: Customer and Policy

Consider a Policy application that needs to know whether a customer is eligible.

A tightly coupled implementation might look like:

Policy

│

▼

CustomerRepository

│

▼

CustomerService

│

▼

CustomerInternalState

│

▼

Backend

Policy now understands too much about Customer. Imagine Customer changes its internal implementation. The Policy module may also need to change. That creates coupling. Instead, we could define a business-level contract:

Policy

│

▼

Customer Public API

│

▼

checkEligibility()

│

▼

Customer Internal Implementation

│

▼

Backend

Now Customer can change:

  • API implementation
  • State management
  • Repository
  • Caching
  • Internal services

without exposing those details to Policy. That is the real benefit of modularity.

Public APIs Are Architectural Contracts

Think of each module as a small business capability. For example:

Customer Public API

getCustomer()

checkEligibility()

getCustomerStatus()

Internally:

Customer

│

├── components

├── state

├── services

├── repositories

├── API clients

└── utilities

Other modules should not know about these internals. They should interact through the public contract. This creates an important property: Internal implementation can change without forcing unrelated modules to change. That is one of the strongest reasons to introduce modular boundaries.

The Same Principle Works Across Frameworks (Angular, React, Vue)

This architecture does not depend on whether the frontend is Angular or React. Angular can implement a modular monolith. React can implement a modular monolith. Vue can implement a modular monolith. The syntax and tooling may differ. The architectural principles remain:

Business Boundary

↓

Public Contract

↓

Internal Implementation

For example, an Angular application may enforce boundaries through libraries, public entry points, dependency rules, and project configuration. A React application can use package boundaries, explicit exports, dependency rules, and workspace tooling. The technology is different. The architectural intent is the same. This is why framework selection and architecture selection should be treated as separate decisions.

Related read: working in Angular? Read Nitor Infotech’s walkthrough on micro-frontend architecture with Angular, including Module Federation setup.

Keep Business Workflows Out of UI Components

Another common problem appears when business workflows are implemented directly inside screens.

Consider:

Create Policy

│

▼

Validate Customer

│

▼

Check Eligibility

│

▼

Create Policy

│

▼

Refresh Policy

│

▼

Notify User

It is tempting to put all of this inside the Policy screen. But now the UI knows:

  • How eligibility works
  • How policies are created
  • How notifications work
  • How state is refreshed

The component becomes an orchestration layer. A better model is:

UI

│

▼

Feature Logic

│

▼

Business Use Case

│

▼

Module Contract

│

▼

Repository / API

The exact terminology can differ between frameworks. The architectural idea remains the same: The UI should not become the owner of every business rule simply because it is the easiest place to put the code.

State Management Is Also an Architectural Boundary

State is another easy way to accidentally destroy modularity.

Imagine one giant global store:

Global State

│

├── Customer

├── Policy

├── Claims

├── Payments

└── Everything Else

Now every module can potentially modify everything.

We have created a hidden dependency graph.

For example:

Policy
│
▼
CustomerState.profile.status

If Customer later changes:

profile.status

to:

customerStatus

Policy may break even though Customer’s public business capability has not changed.

Instead:

Policy
│
▼
Customer Public API
│
▼
Customer-owned state

The Customer module owns its state representation. Other modules consume business-level information rather than internal state structures. This does not mean shared state is always wrong. Authentication, user preferences, feature flags, or other genuinely cross-cutting concerns may require shared state. The important question is: Who owns this state, and who is allowed to modify it? If nobody can answer that clearly, the state probably does not have a strong architectural owner.

Direct Contracts vs Events in Frontend Module Communication

Not every module interaction requires an event. Suppose Policy asks: “Is this customer eligible?” Policy needs an answer immediately. A direct contract is appropriate:

Policy

│

▼

Customer API

│

▼

Eligibility Result

Now consider another situation: “A policy has been created.” Several modules may want to react:

Policy

│

▼

POLICY_CREATED

│

├── Notification

├── Analytics

└── Audit

An event can make sense here. My rule of thumb is: Need an answer now? Prefer a direct contract. Something happened and other modules may react? Consider an event. We should not introduce distributed-system patterns simply because they sound architecturally sophisticated. Use the simplest mechanism that preserves the required boundary.

The Dependency Graph Is the Architecture

A modular monolith can still become a big ball of mud if dependency direction is uncontrolled.

Imagine:

Customer → Policy

Policy → Claims

Claims → Customer

We now have a cycle.

The problem is not the programming language.

The problem is unclear ownership.

A healthier model might be:

Customer

↑

│

Policy

│

▼

Claims

Or, where cross-domain workflows genuinely require it:

Customer ───────┐

▼

Orchestrator

▲

│

Policy ─────────┘

The exact graph depends on the business. But we should always be able to explain: Who owns this business rule? If we cannot answer that, our module boundary is probably not strong enough.

Shared UI Is Different From Shared Business Logic

A modular architecture should encourage reuse where reuse makes sense. A shared design system might contain:

Shared UI

├── Button

├── Modal

├── Table

├── DatePicker

├── Input

└── Notification

That is healthy.

But a shared module like:

SharedBusinessLogic

├── CustomerRules

├── PolicyRules

├── ClaimRules

└── PaymentRules

is dangerous. It becomes the place where every business rule goes.

Eventually:

Customer ──┐

Policy ────┼──> SharedBusinessLogic

Claims ────┤

Payments ──┘

Now every domain depends on one another indirectly. Shared code should reduce duplication. It should not become a dumping ground for business ownership. A good test is: Is this capability genuinely cross-cutting, or are we moving domain ownership somewhere merely to avoid duplication? Sometimes a small amount of duplication is healthier than introducing a dependency between two business domains.

collatral
Planning to modernize legacy applications?

Read what to consider before you modernize legacy applications, and how Nitor Infotech approaches IT modernization.

What We Gain by Returning to One Deployment

The biggest advantage of a modular monolith is simplicity. Instead of: Customer Deployment, Policy Deployment, Claims Deployment, Payments Deployment, Shell Deployment

we have:

Frontend

│

One Build

│

One Deployment

But internally:

Frontend

│

├── Customer

├── Policy

├── Claims

└── Payments

This can simplify:

Local development

Developers can run and debug the complete application rather than coordinating several independently running frontend applications.

Cross-module debugging

A workflow such as: Customer → Policy → Claims can be debugged within the same application process.

  • Routing: Navigation remains within a single application routing model rather than requiring coordination between shell and independently deployed routing boundaries.
  • Authentication: The application can share authentication context without requiring runtime synchronization between independently deployed applications.
  • Integration testing: A single build can assemble the complete dependency graph before deployment.
  • Deployment: There is one primary frontend artifact and one deployment pipeline. The trade-off is equally clear
  • Modules no longer have independent deployment lifecycles. That trade-off must be intentional.

What We Give Up

A modular monolith is not a free lunch. The biggest limitation is: Modules are still part of the same deployment unit. If the Claims team wants to deploy a change at 10 AM and Policy wants to deploy at 11 AM, they are still participating in the same application release process unless additional delivery mechanisms are introduced.

There can also be:

  • Tesbuilds
  • Larger test suites
  • Deployment coupling
  • Greater coordination as teams become very large

So I would never say: “Modular monoliths are better than micro-frontends.” That is too simplistic. The better statement is: A modular monolith can be a better architecture when the value of independent deployment does not justify the cost of distribution

Choosing the Right Architecture: Modular Monolith vs Micro-Frontends

The decision should be based on project context rather than application size alone.

The first question should be:

Are we trying to solve a modularity problem, or a deployment and team autonomy problem?

Project context Better fit Why
Strong business boundaries, shared release cadence Modular monolith Get modularity without distributed deployment complexity
Several teams that collaborate closely Modular monolith Ownership can be enforced without separate deployments
Frequent cross-domain synchronous workflows Modular monolith In-application contracts can be simpler
Simpler local development and debugging is important Modular monolith One application runtime and deployment
Teams genuinely require independent release cycles Micro-frontends Each domain can have its own delivery lifecycle
Independent rollback is important Micro-frontends A domain can be released or rolled back independently
Different teams genuinely need technology isolation Micro-frontends Technology boundaries can be isolated
Team autonomy provides significant business value Micro-frontends Distribution complexity has a clear organizational payoff

The benefit of micro-frontends is primarily about:

  • Organizational independence
  • Deployment independence
  • Release independence
  • Ownership
  • Delivery and rollback lifecycles
  • Technology isolation where genuinely required

It is not generally about independently scaling the client-side runtime. Micro-frontends execute in the user’s browser. Static assets are typically served through hosting infrastructure or a CDN, which can scale independently of whether the application is delivered as one bundle or several micro-frontend bundles.

A simple decision flow is:

Need strong business boundaries?
|
Yes
|
v
Need independent deployment?
/       \
No     Yes
|          |
v         v
Modular    Micro-
Monolith  Frontends

The question is not which architecture is more modern. The question is whether the project has real requirements that justify distribution.

The Migration Path Should Preserve the Good Parts – From Micro-Frontends to a Modular Monolith

Suppose an organization already has micro-frontends. I would not recommend: “Let’s remove all the MFEs and create one giant application.” That simply replaces one problem with another. Instead, start with the boundaries.

Eight-step migration path from micro-frontends to a modular monolith

Fig: Eight-step migration path from micro-frontends to a modular monolith

Step 1 — Identify business domains

Customer, Policy, Claims, Payments

Step 2 — Identify ownership

Who owns each domain?

Step 3 — Define public contracts

What can other modules consume?

Step 4 — Hide internals

Prevent direct access to internal implementation.

Step 5 — Analyze dependencies

Find:

  • Cycles
  • Shared state
  • Shared business logic
  • Cross-domain imports

Step 6 — Simplify communication

Replace unnecessary runtime communication with direct module contracts where appropriate.

Step 7 — Consolidate deployment

Move toward one deployment only when the organization no longer needs independent deployment.

Step 8 — Measure the result

Ask:

  • Did local development become easier?
  • Did deployments become simpler?
  • Did debugging improve?
  • Did coupling decrease?
  • Did teams retain ownership?

The migration should be measured by outcomes, not by how many applications we managed to combine.

Related read: migrating a legacy product? Nitor Infotech’s post on application modernization and new life for legacy systems covers the benefits and steps.

collatral
From a 25-year-old desktop app to a mobile-first web app

See how Nitor Infotech re-engineered the front-end of a legacy desktop application for a crisp, mobile-first user experience, on a cloud-hosted architecture with lower maintenance cost and effort.

The Architecture I Would Aim For

A target architecture could look like this:

Frontend Application

│

┌────────────────────┼────────────────────┐

│                                                           │                                                           │

▼                                                          ▼                                                          ▼

Customer                                           Policy                                                Claims

│                                                        │                                                        │

Public API                                       Public API                                         Public API

│                                                         │                                                        │

Internal                                            Internal                                           Internal

│                                                         │                                                      │

Repository                                       Repository                                      Repository

│                                                         │                                                            │

└────────────────────┼────────────────────┘

│

▼

Backend Services

Within each module:

UI

│

▼

Feature Logic

│

▼

Business Use Case

│

▼

Repository / API

│

▼

Backend

The exact implementation will vary by framework, but the architectural intent remains consistent: Business boundaries should be visible, explicit, and enforceable. A team should be able to see where a business capability begins and ends. The public API should explicitly define what other modules are allowed to consume. The internal implementation should remain hidden. And the dependency rules should be validated automatically through:

  • Public entry points
  • Import restrictions
  • Module-boundary rules
  • Dependency analysis
  • Circular dependency detection
  • CI validation

The goal is to make the intended architecture part of the development process rather than relying only on documentation. A boundary is enforceable when violating it is detected automatically and prevented from being merged into the application.

The Most Important Distinction: Modular vs Distributed

This is the distinction I think deserves more attention. Consider two applications.

Application A

One Deployment- Customer, Policy, Claims, Payments, but everything can directly access everything else. That is a monolith with poor boundaries.

Application B

One Deployment

Customer

│

Public API

│

Internal

 

Policy

│

Public API

│

Internal

 

Claims

│

Public API

│

Internal

with controlled dependencies.That is a modular monolith.

Application C

Customer MFE → independently deployed

Policy MFE → independently deployed

Claims MFE → independently deployed

That is a micro-frontend architecture.The important point is: Deployment boundaries and business boundaries are two different things. We should not confuse them.

The Lesson Is Bigger Than Any Framework

This is not an Angular-versus-React discussion.Angular can implement a modular monolith. React can implement a modular monolith. Vue can implement a modular monolith. Other frontend technologies can implement the same architectural approach. Likewise, micro-frontends are not tied to one framework. The technology can change. The deployment model can change. The business boundaries should be deliberately designed. That is what makes an architecture resilient to change.

Conclusion: Simplify Where You Can, Preserve What Matters

My view is simple: We should not distribute a frontend simply because distribution is possible. Micro-frontends are valuable when independent deployment and team autonomy justify their complexity. But when those requirements weaken, a modular monolith can be a deliberate architectural improvement—not a step backward. And this is not about choosing one frontend framework over another. It is about choosing the right architectural boundary for the organization’s current constraints. The goal is not to maximize the number of:

  • applications
  • repositories
  • pipelines
  • frameworks
  • architectural layers

The goal is to make change easier.

That means preserving:

  • clear ownership
  • explicit contracts
  • controlled dependencies
  • appropriate state boundaries
  • predictable communication
  • simple deployment where possible

A frontend can evolve:

Monolith

↓

Modular Monolith

↓

Micro-Frontends

And, importantly, it can also move in the other direction when constraints change:

Micro-Frontends

↓

Re-evaluate constraints

↓

Modular Monolith

That is not architectural failure. It is architecture responding to changing organizational and product constraints. The best architecture is not the most distributed one. It is the one that gives the organization the right boundaries with the least unnecessary complexity.

Key Takeaways

  1. A modular architecture does not require a distributed deployment model.
  2. A modular monolith is an architectural approach, not a framework-specific pattern.
  3. Angular, React, Vue, and other frontend technologies can all implement modular monoliths.
  4. Micro-frontends are valuable when independent deployment and team autonomy provide real business value.
  5. Deployment independence introduces operational and architectural complexity.
  6. Public APIs are more important than folders when enforcing module boundaries.
  7. Business workflows should not become responsibilities of UI components.
  8. State ownership should follow business responsibility.
  9. Direct contracts and events should be chosen based on the communication need, not architectural fashion.
  10. Circular dependencies are usually a symptom of unclear ownership.
  11. Shared UI is useful; unrestricted shared business logic can create hidden coupling.
  12. Architecture should be re-evaluated as organizational and product constraints change.
  13. The goal is not maximum distribution. The goal is manageable change.
Ready to simplify your frontend architecture?

Whether you are evaluating micro-frontends, consolidating into a modular monolith or modernizing a legacy product, Nitor Infotech’s engineers can help you choose the right boundaries with the least unnecessary complexity.

Frequently Asked Questions

subscribe image

Subscribe to our
fortnightly newsletter!

we'll keep you in the loop with everything that's trending in the tech world.

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.