<scp>ASRMG</scp>: Business Topic Clustering‐Based Architecture Smell Refactoring for Microservices Granularity

ABSTRACT Introduction Microservices architecture is one of the most popular design approaches in software development. The granularity smell of microservices is a topic of great interest, which often leads to a degradation in the quality of the microservices architecture, so it needs to be eliminated through architecture refactoring. Existing research on architecture refactoring to address granularity smells in microservices is limited, with a lack of consideration for the semantic information of business logic, and suggestions for microservice refactoring rely too much on manual experience and lack standardized descriptions. Objectives This paper aims to provide a novel approach for refactoring granularity smells in microservice architectures, addressing the existing shortcomings in considering semantic information of microservice business logic, the reliance on empirical experience for refactoring suggestions, and the lack of standardized suggestions for refactoring. Methods This paper introduces a novel method for refactoring granularity smells in microservices architecture based on business topic clusters, named ASRMG. This method extracts business topic clusters from the business logic code of interfaces, thereby defining the cohesion and coupling semantics of the system. It then employs an enhanced genetic algorithm for refactoring the microservices system, using a refactoring pattern database to automate the generation of fine‐grained refactoring suggestions. Results Experiments conducted on five open‐source microservices systems of varying scales and domains achieved a 99.24% elimination rate of granularity smells, with cohesion metrics improving by an average of 60.19% and coupling metrics reducing by an average of 15.32%, indicating a significant enhancement in the quality of microservice architecture. Conclusion This paper introduces a novel method for refactoring and evaluating microservice systems, named ASRMG. ASRMG extracts business topic clusters from the code of microservice systems and refines the evaluation method for refactored microservice, and proposes an automated method for generating refactoring suggestions for granularity smells, enhancing the efficiency and quality of architecture smell refactoring.

Authors

Institutions

Publication Details

Journal
Software Practice and Experience
Published
2025-02-04
DOI
https://doi.org/10.1002/spe.3404
Citations
1
Primary Topic
Software System Performance and Reliability
Type
article
Field-Weighted Citation Impact
1.49

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ASRMG: Business Topic Clustering‐Based Architecture Smell Refactoring for Microservices Granularity

Wangliang Yan, Sixuan Wang, Qi Han, Dongjin Yu et al.
1 citations
Software Practice and Experience
Software System Performance and Reliability
1.49
article

ASRMG: Business Topic Clustering‐Based Architecture Smell Refactoring for Microservices Granularity

Wangliang Yan, Sixuan Wang, Qi Han, Dongjin Yu, Baoqing Jin
article en
1 citations

Abstract

ABSTRACT Introduction Microservices architecture is one of the most popular design approaches in software development. The granularity smell of microservices is a topic of great interest, which often leads to a degradation in the quality of the microservices architecture, so it needs to be eliminated through architecture refactoring. Existing research on architecture refactoring to address granularity smells in microservices is limited, with a lack of consideration for the semantic information of business logic, and suggestions for microservice refactoring rely too much on manual experience and lack standardized descriptions. Objectives This paper aims to provide a novel approach for refactoring granularity smells in microservice architectures, addressing the existing shortcomings in considering semantic information of microservice business logic, the reliance on empirical experience for refactoring suggestions, and the lack of standardized suggestions for refactoring. Methods This paper introduces a novel method for refactoring granularity smells in microservices architecture based on business topic clusters, named ASRMG. This method extracts business topic clusters from the business logic code of interfaces, thereby defining the cohesion and coupling semantics of the system. It then employs an enhanced genetic algorithm for refactoring the microservices system, using a refactoring pattern database to automate the generation of fine‐grained refactoring suggestions. Results Experiments conducted on five open‐source microservices systems of varying scales and domains achieved a 99.24% elimination rate of granularity smells, with cohesion metrics improving by an average of 60.19% and coupling metrics reducing by an average of 15.32%, indicating a significant enhancement in the quality of microservice architecture. Conclusion This paper introduces a novel method for refactoring and evaluating microservice systems, named ASRMG. ASRMG extracts business topic clusters from the code of microservice systems and refines the evaluation method for refactored microservice, and proposes an automated method for generating refactoring suggestions for granularity smells, enhancing the efficiency and quality of architecture smell refactoring.

Software Practice and ExperienceVol. 55(6)
Hangzhou Dianzi University (CN)
National Natural Science Foundation of China, Natural Science Foundation of Zhejiang Province
Openalex Percentile: Top 20%
Software System Performance and Reliability
1.49
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.