Artificial Intelligence-Assisted Refactoring and Architectural Transformation: A Comprehensive Study on Large Language Models for Migrating Monolithic Software Systems to Microservices

Authors

  • Kim Keller Department of Computer Science University of Zurich, Switzerland

Keywords:

Large Language Models, Microservices Architecture, Software Refactoring, AI-Assisted Programming

Abstract

The rapid evolution of software systems and the increasing complexity of enterprise-scale applications have intensified the need for architectural modernization. Traditional monolithic software architectures, while historically dominant due to their simplicity and unified deployment model, have become increasingly difficult to maintain, scale, and evolve in contemporary distributed computing environments. Consequently, microservices architecture has emerged as a widely adopted paradigm for building scalable, modular, and independently deployable systems. However, the migration from monolithic architectures to microservices presents significant technical and organizational challenges, including service decomposition, dependency identification, data migration, and architectural restructuring. In recent years, the emergence of large language models (LLMs) and AI-assisted development tools has introduced new possibilities for automating aspects of software engineering, including code generation, code analysis, documentation, and architectural refactoring. This research article investigates the role of LLMs in facilitating the transformation of monolithic systems into microservices-based architectures. Drawing upon a comprehensive set of scholarly references on large language models, AI-assisted programming, prompt engineering, software refactoring strategies, and microservices extraction techniques, the study provides a detailed theoretical and methodological exploration of AI-augmented architectural transformation. The article examines how LLM-driven tools can assist developers in identifying service boundaries, summarizing code structures, generating refactoring suggestions, and supporting iterative system decomposition. Additionally, the study analyzes the challenges associated with AI-assisted development, including hallucination, non-determinism in code generation, prompt sensitivity, and security vulnerabilities such as prompt-based exploitation. Through a conceptual methodological framework and interpretive analysis of existing research findings, the article evaluates both the capabilities and limitations of LLM-based software engineering assistance. The discussion further explores implications for future research, particularly regarding the integration of AI agents into automated software modernization pipelines. Ultimately, the article argues that while LLMs do not fully replace traditional software engineering practices, they represent a transformative tool that can significantly enhance developer productivity and accelerate architectural modernization when used responsibly within structured engineering workflows.

References

Ahmadvand, M., & Ibrahim, A. (2016). Requirements reconciliation for scalable and secure microservice (de)composition. Proceedings of the IEEE International Requirements Engineering Conference Workshops.

Alkaissi, H., & Samy, M. F. (2023). Artificial hallucinations in ChatGPT: Implications in scientific writing. Cureus, 15(2), e35179.

Denny, P., Kumar, V., & Giacaman, N. (2022). Conversing with Copilot: Exploring prompt engineering for solving CS1 problems using natural language. arXiv preprint arXiv:2210.15157.

Döderlein, J. B., Acher, M., Khelladi, D. E., & Combemale, B. (2022). Piloting Copilot and Codex: Hot temperature, cold prompts, or black magic? arXiv preprint arXiv:2210.14699.

Dong, Y., Xue, J., Jin, Z., & Li, G. (2023). Self-collaboration code generation via ChatGPT. arXiv preprint arXiv:2304.07590.

Fritzsch, J., Bogner, J., Zimmermann, A., & Wagner, S. (2018). From monolith to microservices: A classification of refactoring approaches. Proceedings of the International Workshop on Software Engineering Aspects of Continuous Development and New Paradigms of Software Production and Deployment.

Gysel, M., Kolbener, L., Giersche, W., & Zimmermann, O. (2016). Service cutter: A systematic approach to service decomposition. European Conference on Service-Oriented and Cloud Computing.

K. S. Hebbar, “An AI-Augmented Framework for Refactoring Enterprise Monolithic Systems,” INTELLIGENT SYSTEMS AND APPLICATIONS IN ENGINEERING, vol. 11, no.8s, pp. 593-604, July. 2023 https://www.ijisae.org/index.php/IJISAE/article/view/8046/7054

Knoche, H., & Hasselbring, W. (2018). Using microservices for legacy software modernization. IEEE Software, 35(3), 44-49.

Li, S., Zhang, H., Jia, Z., Li, Z., Zhang, C., Li, J., Gao, Q., Ge, J., & Shan, Z. (2019). A dataflow-driven approach to identifying microservices from monolithic applications. Journal of Systems and Software, 157, 110380.

Liu, Y., Deng, G., Xu, Z., et al. (2023). Jailbreaking ChatGPT via prompt engineering: An empirical study. arXiv preprint arXiv:2305.13860.

Mazlami, G., Cito, J., & Leitner, P. (2017). Extraction of microservices from monolithic software architectures. IEEE International Conference on Web Services.

Ouyang, S., Zhang, J. M., Harman, M., & Wang, M. (2023). LLM is like a box of chocolates: The non-determinism of ChatGPT in code generation. arXiv preprint arXiv:2308.02828.

Poldrack, R. A., Lu, T., & Beguš, G. (2023). AI-assisted coding: Experiments with GPT-4. arXiv preprint arXiv:2304.13187.

Ren, Z., Wang, W., Wu, G., Gao, C., Chen, W., Wei, J., & Huang, T. (2018). Migrating web applications from monolithic structure to microservices architecture. Asia-Pacific Symposium on Internetware.

Sun, W., Fang, C., You, Y., et al. (2023). Automatic code summarization via ChatGPT: How far are we? arXiv preprint arXiv:2305.12865.

Xi, Z., Chen, W., Guo, X., et al. (2023). The rise and potential of large language model based agents: A survey. arXiv preprint arXiv:2309.07864.

Zhao, W. X., Zhou, K., Li, J., et al. (2023). A survey of large language models. arXiv preprint arXiv:2303.18223.

Downloads

Published

2025-10-31

How to Cite

Kim Keller. (2025). Artificial Intelligence-Assisted Refactoring and Architectural Transformation: A Comprehensive Study on Large Language Models for Migrating Monolithic Software Systems to Microservices. European International Journal of Multidisciplinary Research and Management Studies, 5(10), 194–202. Retrieved from https://eipublication.com/index.php/eijmrms/article/view/4183