Layered microservices architecture: A multitree-based domain-driven approach

IF 4.3 2区 计算机科学 Q2 COMPUTER SCIENCE, INFORMATION SYSTEMS
Duc Minh Le , Duc-Hanh Dang , Hieu Dinh Vo
{"title":"Layered microservices architecture: A multitree-based domain-driven approach","authors":"Duc Minh Le ,&nbsp;Duc-Hanh Dang ,&nbsp;Hieu Dinh Vo","doi":"10.1016/j.infsof.2025.107720","DOIUrl":null,"url":null,"abstract":"<div><h3>Context:</h3><div>Domain-driven design is commonly used with microservices architecture to develop complex microservices-based software systems. Layered, tree-based microservices architectures have recently been discussed as a solution to tame the complexity of these systems. However, there exists a knowledge gap in terms of the exact nature of this architecture style and how it is constructed.</div></div><div><h3>Objective:</h3><div>In this paper, we propose a domain-driven multitree microservices architecture (TMSA) to bridge this gap.</div></div><div><h3>Method:</h3><div>We precisely define the TMSA metamodel in UML/OCL. A service is composed of a nested service tree, whose internal nodes are domain-driven modules. Service structure reuse is enabled by unidirectional edges that connect nodes in distinct service trees. The multitree structure provides a scaffolding on which to precisely define service resiliency and TMSA model evolution. We use OCL and the UML communication diagram to model the resiliency patterns and the architectural model evolution.</div></div><div><h3>Results:</h3><div>Our UML/OCL-based metamodel of TMSA provides a foundation on which to define three essential service resiliency patterns and two operators for architectural model evolution. To ease software construction, we further define an annotation-based DSL, named <span>TASL</span>, to specify the TMSA model and a semi-automatic procedure that takes a <span>TASL</span> specification as input and constructs software as the output. We demonstrate TMSA with an implementation in a Java software framework and a real-world software example. We also evaluate the performance, resiliency and modifiability of TMSA. The results show that TMSA possesses the expected levels of quality for these attributes.</div></div><div><h3>Conclusion:</h3><div>Our work provides not only a framework to identify and formally define multitree-based MSAs but a state-of-the-art realisation of this framework in high-level object-oriented programming languages.</div></div>","PeriodicalId":54983,"journal":{"name":"Information and Software Technology","volume":"183 ","pages":"Article 107720"},"PeriodicalIF":4.3000,"publicationDate":"2025-03-22","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information and Software Technology","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S095058492500059X","RegionNum":2,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0

Abstract

Context:

Domain-driven design is commonly used with microservices architecture to develop complex microservices-based software systems. Layered, tree-based microservices architectures have recently been discussed as a solution to tame the complexity of these systems. However, there exists a knowledge gap in terms of the exact nature of this architecture style and how it is constructed.

Objective:

In this paper, we propose a domain-driven multitree microservices architecture (TMSA) to bridge this gap.

Method:

We precisely define the TMSA metamodel in UML/OCL. A service is composed of a nested service tree, whose internal nodes are domain-driven modules. Service structure reuse is enabled by unidirectional edges that connect nodes in distinct service trees. The multitree structure provides a scaffolding on which to precisely define service resiliency and TMSA model evolution. We use OCL and the UML communication diagram to model the resiliency patterns and the architectural model evolution.

Results:

Our UML/OCL-based metamodel of TMSA provides a foundation on which to define three essential service resiliency patterns and two operators for architectural model evolution. To ease software construction, we further define an annotation-based DSL, named TASL, to specify the TMSA model and a semi-automatic procedure that takes a TASL specification as input and constructs software as the output. We demonstrate TMSA with an implementation in a Java software framework and a real-world software example. We also evaluate the performance, resiliency and modifiability of TMSA. The results show that TMSA possesses the expected levels of quality for these attributes.

Conclusion:

Our work provides not only a framework to identify and formally define multitree-based MSAs but a state-of-the-art realisation of this framework in high-level object-oriented programming languages.
分层微服务架构:基于多树的领域驱动方法
上下文:领域驱动设计通常与微服务架构一起用于开发复杂的基于微服务的软件系统。分层的、基于树的微服务架构最近被作为一种解决方案来讨论,以驯服这些系统的复杂性。然而,就这种体系结构风格的确切性质及其构造方式而言,存在着知识差距。目的:在本文中,我们提出了一个领域驱动的多树微服务架构(TMSA)来弥补这一差距。方法:用UML/OCL精确定义TMSA元模型。服务由嵌套的服务树组成,服务树的内部节点是领域驱动的模块。服务结构重用通过连接不同服务树中的节点的单向边来实现。多树结构提供了一个脚手架,在此基础上可以精确地定义服务弹性和TMSA模型演化。我们使用OCL和UML通信图对弹性模式和体系结构模型演化进行建模。结果:我们基于UML/ ocl的TMSA元模型提供了一个基础,在此基础上定义了三个基本的服务弹性模式和两个用于体系结构模型演化的操作符。为了简化软件构建,我们进一步定义了一个基于注释的DSL(称为TASL)来指定TMSA模型和一个半自动过程,该过程将TASL规范作为输入,并构建软件作为输出。我们用Java软件框架中的一个实现和一个真实的软件示例来演示TMSA。我们还评估了TMSA的性能、弹性和可修改性。结果表明,TMSA具有这些属性的预期质量水平。结论:我们的工作不仅提供了一个识别和正式定义基于多树的msa的框架,而且还提供了在高级面向对象编程语言中对该框架的最新实现。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Information and Software Technology
Information and Software Technology 工程技术-计算机:软件工程
CiteScore
9.10
自引率
7.70%
发文量
164
审稿时长
9.6 weeks
期刊介绍: Information and Software Technology is the international archival journal focusing on research and experience that contributes to the improvement of software development practices. The journal''s scope includes methods and techniques to better engineer software and manage its development. Articles submitted for review should have a clear component of software engineering or address ways to improve the engineering and management of software development. Areas covered by the journal include: • Software management, quality and metrics, • Software processes, • Software architecture, modelling, specification, design and programming • Functional and non-functional software requirements • Software testing and verification & validation • Empirical studies of all aspects of engineering and managing software development Short Communications is a new section dedicated to short papers addressing new ideas, controversial opinions, "Negative" results and much more. Read the Guide for authors for more information. The journal encourages and welcomes submissions of systematic literature studies (reviews and maps) within the scope of the journal. Information and Software Technology is the premiere outlet for systematic literature studies in software engineering.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信