Recent News
- Aug 30, 2024v6.12.0 - Stakeholder and Value Modelling Support
- Jan 11, 2024v6.11.0 Release Notes
- Nov 24, 2023v6.10.0 Release Notes
- Aug 16, 2023v6.9.0 Release Notes
- Jun 13, 2023Eclipse Update Site URL Changed
- May 8, 2023v6.8.0 Release Notes
- Dec 2, 2022v6.7.0 Release Notes
- Oct 6, 2021v6.6.0 Release Notes
- May 31, 2021ArchUnit Extension for Context Mapper Released
- May 8, 2021Eclipse Update Site URL Changed
- All news ...
Service Decomposition as a Series of Architectural Refactorings
Aug 30, 2019 • Stefan Kapferer
The Context Mapper project is developed as part of term projects at HSR (former “HSR”). The newest Context Mapper feature, the Architectural Refactorings (ARs), are a result of our latest project “Service Decomposition as a Series of Architectural Refactorings”.
Abstract
Decomposing a system into modules or services always has been a hard design problem. With the current trend towards microservices, this issue has become even more relevant and challenging. Domain-driven Design (DDD) with its Bounded Contexts provides one popular technique to decompose a domain into multiple parts. The open source tool Context Mapper, developed in our previous term project, offers a Domain-specific Language (DSL) for the strategic DDD patterns. DSL and supporting tools assist architects in the process of finding service decompositions. Context Mapper has already been used in practice projects, which led to suggestions how to improve the DSL to further increase its usability. Moreover, Context Mapper at present does not offer any transformations or refactoring tools to improve and evolve the DDD models. Finally, our previous work only gives very basic advice on how to implement systems that have been modeled in Context Mapper in a (micro-) service-oriented architectural style.
This work presents a series of Architectural Refactorings (ARs) for strategic DDD models based on corresponding Decoupling Criteria (DC) collected from literature and personal experience. These refactorings allow a software architect to (de-)compose a domain iteratively. Aiming for a broad DC coverage, a set of seven ARs has been implemented. These ARs are realized as code refactorings for the Context Mapper DSL (CML) language and support splitting, extracting and merging Bounded Contexts and/or Aggregates. Therefore, DSL users are able to refactor their CML models within the provided Eclipse plugin. A new service contract generator offers assistance how to implement the DDD models in an (micro-)service-oriented architecture. The resulting contracts are written in the Microservices Domain Specific Language (MDSL), another emerging DSL for specifying service contracts.
The provided DSL with its seven ARs, implemented as model transformations, support evolving DDD-based models in an iterative way. The conducted validation activities support our hypothesis that software architects can benefit from such an approach and tool. Action research has been applied to improve Context Mapper in each iteration of the prototypical implementation. Basic case studies conducted on real world projects in the industry indicated the usefulness and effectiveness of the modeling language. More advanced validation activities still have to be conducted to analyze and demonstrate the practicability of the ARs.
Full report
The full project report can be found here: https://eprints.ost.ch/784/
- Older
- Newer