Domain-Driven Design for Decomposing Legacy .NET Applications into Microservices: Effects on Service Coupling and Maintainability

Authors

  • Sunny Hundwani Web Application Architect, Bloomberg Industry Group, USA Author

Keywords:

domain-driven design, bounded context, systematic review, legacy modernisation, .NET, microservices, service decomposition, coupling, cohesion, maintainability

Abstract

Background: Decomposing a legacy application into microservices is fundamentally a boundary-design problem. Domain-Driven Design (DDD) offers bounded contexts, subdomains, ubiquitous language, and explicit ownership as mechanisms for discovering business-aligned boundaries, but a domain-correct cut can still create excessive distributed coupling if code, data, runtime, or transaction dependencies cross those boundaries.

Objective: This systematic review synthesised evidence published through 31 December 2021 on DDD-informed and closely related monolith-decomposition approaches, with emphasis on service coupling, cohesion, maintainability, and transferability to legacy .NET systems.

Methods: Structured searches covered major software-engineering publishers and indexes and were supplemented by citation chaining. Peer-reviewed empirical studies were eligible when they evaluated legacy/monolith decomposition, service identification, or DDD-informed boundary design and reported coupling, cohesion, modularity, maintainability, evolvability, or migration outcomes. Fifty-eight unique records were screened, 29 full texts were assessed, and 17 primary studies were included.

Results: DDD was most useful for proposing semantically coherent service boundaries, particularly when bounded contexts were combined with business capabilities or domain models. Across empirical studies, stronger decomposition results were obtained when semantic boundaries were validated against static dependencies, runtime traces, or migration constraints. Industrial cases reported improved maintainability, development speed, or modularity when bounded contexts and incremental facades were used, but shared data, transaction coupling, cyclic calls, and over-fragmentation remained major risks. Direct peer-reviewed evidence for legacy .NET decomposition was sparse through 2021; contemporaneous Microsoft .NET guidance nevertheless provided a platform-specific implementation model consistent with the architecture-independent findings.

Conclusion: DDD should be treated as a semantic boundary-discovery method rather than a stand-alone decomposition algorithm. For legacy .NET systems, the most defensible approach is to identify bounded contexts, validate them against source/runtime/data dependencies, enforce ownership inside a modularised codebase, and extract only boundaries that demonstrate low change coupling and operational autonomy.

Downloads

Published

2024-09-15

Similar Articles

1-10 of 29

You may also start an advanced similarity search for this article.