Domain-Driven Design for Decomposing Legacy .NET Applications into Microservices: Effects on Service Coupling and Maintainability
Keywords:
domain-driven design, bounded context, systematic review, legacy modernisation, .NET, microservices, service decomposition, coupling, cohesion, maintainabilityAbstract
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
Issue
Section
License
Copyright (c) 2024 Sunny Hundwani (Author)

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Authors retain copyright. The license identified on this article governs its reuse. Under CC BY-NC-ND 4.0, users may share unadapted material for non-commercial purposes with appropriate attribution, a license link, and retention of applicable notices. Sharing adapted material and commercial reuse are not authorized by this license; seek separate permission where required. Third-party content may carry separate terms. Existing Version of Record licenses are not changed retrospectively by updates to journal policy. Full license: https://creativecommons.org/licenses/by-nc-nd/4.0/.