Computer Science ›› 2026, Vol. 53 ›› Issue (11A): 251100111-1023.doi: 10.11896/jsjkx.251100111

• Computer Software & Architecture • Previous Articles     Next Articles

Research on Automatic Identification and Optimization Method for Microservices at the Method Level

ZHONG Linhui1, LI Zhuoyu1, ZHENG Yi1, SUN Wenbin1, LI Fangyun1, HUANG Qixuan2, CHEN Shangyang1   

  1. 1 College of Artificial Intelligence,Jiang Xi Normal University,Nanchang 330022,China
    2 China Mobile Communications Group Jiangxi Co.,Ltd.Fuzhou Branch,Fuzhou,Jiangxi 344399,China
  • Online:2026-11-16 Published:2026-11-16
  • About author:ZHONG Linhui,born in 1974,Ph.D,associate professor,is a member of CCF(No.09772M).His main research interests include software architecture,software evolution,and maintenance.
    ZHENG Yi,born in 1974,master.His main research interests include compu-ter system architecture and the development of software and hardware platforms for embedded systems.
  • Supported by:
    This work was supported by the National Natural Science Foundation of China(62062039,61966017),Natural Science Foundation of Jingxi Pro-vince,China(20212BAB202017,20224BAB202013,20212BAB202018) and Teaching Reform Research Project of Jiangxi Normal University(JXSDJG2301,JXSDJG2044).

Abstract: Microservices architecture is a distributed style where services interact via communication mechanisms;migrating mo-noliths to it improves maintainability and scalability.Existing automated decomposition methods suffer from coarse class-level granularity,which misses fine-grained functional relations,and from similarity measures that ignore multi-dimensional features.This paper proposes a method-granularity approach that fuses semantic,lexical,and structural information to improve partitioning accuracy.Semantic similarity uses CodeT5+ embeddings and cosine similarity;lexical similarity is based on method names and parameters;structural similarity analyzes call relations and parameter dependencies using Jaccard coefficients.A similarity matrix from these dimensions drives hierarchical clustering for an initial partition.A genetic algorithm then performs multi-objective optimization to maximize message-level cohesion and structural modularity while reducing inter-service coupling.A class restructuring strategy merges or vertically splits related methods to enhance functional independence.Experimental results show the method outperforms traditional approaches in accuracy,cohesion,and modularity,achieving efficient and precise automated microservice decomposition.

Key words: Microservice identification, Genetic algorithm, Hierarchical clustering, Multi-objective optimization, Code similarity

CLC Number: 

  • TP311
[1] 刘江鹏.基于项目驱动的微服务架构实验教学设计[J].信息系统工程,2025(10):165-168.
[2] HUSSEIN S,LAHAMI M,TORJMEN M.Assessing the quality of microservice and monolithic architectures:systematic literature review[J].Operational Research in Engineering Sciences:Theory and Applications,2024,7(2):417-446.
[3] GYSEL M,KÖLBENER L,GIERSCHE W,et al.Service cutter:A systematic approach to service decomposition[C]//Ser-vice-Oriented and Cloud Computing:5th IFIP WG 2.14 European Conference(ESOCC 2016).Springer,2016:185-200.
[4] SAIDANI I,OUNI A,MKAOUER M W,et al.Towards automated microservices extraction using muti-objective evolutionary search[C]//Service-Oriented Computing:17th International Conference(ICSOC 2019).Springer,2019:58-63.
[5] SELLAMI K,OUNI A,SAIED M A,et al.Improving microservices extraction using evolutionary search[J].Information and Software Technology,2022,151:106996.
[6] CARVALHO L,GARCIA A,COLANZIT E,et al.On the performance and adoption of search-based microservice identification with tomicroservices[C]//2020 IEEE International Confe-rence on Software Maintenance and Evolution(ICSME).IEEE,2020:569-580.
[7] TRABELSI I,MOHA N,GUÉHÉNEUC Y G,et al.Magnet:Method-based approach using graph neural network for microservices identification[C]//2024 IEEE 21st International Conference on Software Architecture(ICSA).IEEE,2024:1-11.
[8] LI Q,LI B,MERCATI P,et al.RAMBO:Resource allocation for microservices using Bayesian optimization[J].IEEE Computer Architecture Letters,2021,20(1):46-49.
[9] PENDYALA K V N S,BUYYA R.An Infrastructure Cost Optimised Algorithm for Partitioning of Microservices[J].arXiv:2408.06570,2024.
[10] KINOSHITA T,KANUKA H.Enhancing Automated Micro-service Decomposition via Multi-Objective Optimization[J].IEEE Access,2024,12:55697-55710.
[11] GrammarT5:Grammar-integrated pretrained encoder-decoder neu-ral model for code[C]//IEEE/ACM 46th International Confe-rence on Software Engineering.2024:1-13.
[12] BORGEAUD S,MENSCH A,HOFFMANN J,et al.Improving language models by retrieving from trillions of tokens[C]//International Conference on Machine Learning.PMLR,2022:2206-2240.
[13] RAHIMI I,GANDOMI A H,CHENF,et al.A review on constraint handling techniques for population-based algorithms:from single-objective to multi-objective optimization[J].Archives of Computational Methods in Engineering,2023,30(3):2181-2209.
[14] ABDULLAH J M,RASHID T A,MAAROOFB B,et al.Multi-objective fitness-dependent optimizer algorithm[J].Neural Computing and Applications,2023,35(16):11969-11987.
[15] SHAPIRO J.Genetic algorithms in machine learning[M]//Advanced Course on Artificial Intelligence.Berlin:Springer,1999:146-168.
[16] DEB K,AGRAWAL S,PRATAP A,et al.A fast elitist non-dominated sorting genetic algorithm for multi-objective optimization:NSGA-II[C]//Parallel Problem Solving from Nature PPSN VI:6th International Conference.Berlin:Springer,2000:849-858.
[1] DENG Hanqing, WU Xiangjuan. Parallel Weight Association and Guided Direction Based WGAN with Gradient Penalty forLarge-scale Multi-objective Optimization [J]. Computer Science, 2026, 53(9): 309-323.
[2] LIU Yicong, MI Qingrong, GENG Yangyang, MA Rongkuan, JIA Yan, CAO Yan. VxSymRe:VxWorks Firmware Function Symbol Recovery System Based on Binary CodeSimilarity Detection [J]. Computer Science, 2026, 53(7): 406-413.
[3] LI Li, YI Jiali, LI Youjun, LI Guangpeng. Multi-objective Evolutionary Method by Training Front Modeling Based on MOEA/D [J]. Computer Science, 2026, 53(6A): 250500081-11.
[4] ZHONG Linhui, LIAO Zichen, ZHENG Yi, QU Qiaoqiao, HU Zhen, LI Zhuoyu, LIU Wenxuan. Research on C2 Style Oriented Software Architecture Evolution Path Planning [J]. Computer Science, 2026, 53(6A): 250900102-7.
[5] JIN Kehan, JIA Riheng. Research on Cooperative Trajectory Optimization of Multi-truck-UAV System Based on UAV Exchange [J]. Computer Science, 2026, 53(6A): 250900105-9.
[6] LIU Meilin, MA Le. Learning Path Recommendation Based on Fusion of Hypergraph Neural Network and Dynamic Knowledge Tracking [J]. Computer Science, 2026, 53(5): 68-78.
[7] WU Yansheng, CAO Xinyi, FAN Weibei. Research on Efficient Construction of Plateaued Functions Based on DQN-enhanced Genetic Algorithm [J]. Computer Science, 2026, 53(4): 57-65.
[8] YANG Changhao, QIN Jin, WANG Hao. Large-scale Multi-objective Evolutionary Algorithm Based on Objective Similarity and Dual-EndVariable Guided Search [J]. Computer Science, 2026, 53(3): 351-365.
[9] LIN Bing, JIANG Haiou, TAN Xiao, CHEN Xing , ZHENG Yuheng. Data Placement Strategy Based on Erasure Code in Data Space [J]. Computer Science, 2026, 53(2): 196-206.
[10] WEN Jia, WU Shuxia, YU Zhengxin, MIAO Wang, CHEN Zheyi. Multi-objective Optimization for Virtual Machine Placement in Large-scale Hadoop Cluster [J]. Computer Science, 2026, 53(2): 387-395.
[11] ZHANG Shun, WANG Zixuan, XU Yi, HE Yixuan. Multi-objective Genetic Evolutionary Task Allocation Scheme for Spatial Crowdsourcing [J]. Computer Science, 2026, 53(11A): 260300031-931.
[12] YANG Cheng, ZHANG Wei, WANG Zhengfeng, JIA Wei, WANG Lei, WANG Jingjing. Enhanced URCMO:Improved Algorithm for Large-scale Power System Optimization Problems [J]. Computer Science, 2026, 53(11A): 251200097-361.
[13] WANG Wei, ZHAO Yunlong, PENG Xiaoyu, PAN Xiaodong. TSK Fuzzy System Enhanced by TSVR with Cooperative Parameter Optimization [J]. Computer Science, 2025, 52(7): 75-81.
[14] HUANG Ao, LI Min, ZENG Xiangguang, PAN Yunwei, ZHANG Jiaheng, PENG Bei. Adaptive Hybrid Genetic Algorithm Based on PPO for Solving Traveling Salesman Problem [J]. Computer Science, 2025, 52(6A): 240600096-6.
[15] WEI Youyuan, SONG Jianhua, ZHANG Yan. Survey of Binary Code Similarity Detection Method [J]. Computer Science, 2025, 52(6): 365-380.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!