MicroAgent: Context-Augmented Multi-agent Framework for Automatic Microservice Decomposition
Open Access
- 7 October 2026
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1396-1408
Abstract
The adoption of Microservice Architecture (MSA) has revolutionized software engineering by enhancing scalability, agility, and maintainability over traditional monolithic applications. As more developers transition their legacy systems to microservice-based architectures, effective microservice decomposition—partitioning monolithic applications into highly cohesive services—becomes vital. However, this decomposition task presents significant challenges. Manual approaches are time-consuming and labor-intensive. Existing automated methods often fail to capture the necessary semantic insights from complex applications, while naive applications of Large Language Models tend to overlook crucial contextual information and design principles, leading to suboptimal results. To address these challenges, we propose MicroAgent, a Context-Augmented Multi-Agent Framework for Microservice Decomposition. Our framework divides the decomposition process into five distinct subtasks and assigns each to a specialized agent. To enhance the effectiveness of each agent, we provide tailored, multi-granularity context that keeps its analysis focused and mitigates information overload. Furthermore, to ensure the decomposition adheres to established design principles, we integrate analytical tools that guide the agents’ decision-making. Experimental evaluations on 10 Java Web applications demonstrate that MicroAgent achieves an average decomposition accuracy of 89.2%, outperforming the state-of-the-art method by 24.6%. We also conduct a case study to highlight the practical benefits of our design.Keywords
Funding Information
- Research Grants Council Grant for Theme-based Research Scheme Project (RGC Ref. No. T43-513/23-N)
This publication has 29 references indexed in Scilit:
- MonoEmbed: Enhancing LLM representations for monolith to microservices decomposition through contrastive learningEmpirical Software Engineering, 2025
- Large Language Models for Software Engineering: Survey and Open Problems2023
- From monolithic to microservice architecture: an automated approach based on graph clustering and combinatorial optimization2023
- Combining Static and Dynamic Analysis to Decompose Monolithic Application into Microservices2022
- From legacy to microservices: A type‐based approach for microservices identification using machine learning and semantic analysisJournal of Software: Evolution and Process, 2022
- Towards Migrating Legacy Software Systems to Microservice-based Architectures: a Data-Centric Process for Microservice Identification2022
- Analysis of the Criteria Adopted in Industry to Extract Microservices2019
- Extraction of Microservices from Monolithic Software Architectures2017
- Optimization of Object-Oriented Programs Using Static Class Hierarchy Analysis2000
- A Mathematical Theory of CommunicationBell System Technical Journal, 1948