Designing Microservices Using AI: A Systematic Literature Review
Abstract
:1. Introduction
Research Questions
2. The Problems of Microservices Design
3. Related Work
4. Research Methodology
4.1. Source Selection
4.2. Search Strategy
4.3. Search Items and Selection Criteria
- Inclusion Criteria:
- ○
- Scientific papers that directly address the application of AI in the design, development, or optimization of microservices.
- ○
- Studies published between 2018 and 2024.
- ○
- Peer-reviewed journal articles and conference papers.
- ○
- Studies available in English.
- Exclusion Criteria:
- ○
- Papers focusing on service-oriented architecture (SOA) without specific reference to microservices.
- ○
- Articles published before 2018, except for foundational work.
- ○
- Non-peer-reviewed articles, white papers, or unpublished studies.
- ○
- Studies without empirical data or validation.
4.4. Study Selection Process
5. Results
5.1. Overview of Selected Studies
5.2. Answers to the Research Questions
5.3. Discussion
6. Threads to Validity
7. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Vural, H.; Koyuncu, M.; Guney, S. A systematic literature review on microservices. In Computational Science and Its Applications–ICCSA 2017: 17th International Conference, Trieste, Italy, 3–6 July 2017, Proceedings, Part VI 17; Springer: Berlin/Heidelberg, Germany, 2017; pp. 203–217. [Google Scholar]
- Lewis, J.; Fowler, M. Microservices: A Definition of this New Architectural Term (2014). Available online: http://martinfowler.com/articles/microservices.html (accessed on 20 September 2024).
- Li, Y.; Li, Z.; Bu, Y.; Xiao, H.; Deng, Y. PF4MD: A Microservice Decomposition Tool Combining Problem Frames. In Proceedings of the 2023 IEEE 31st International Requirements Engineering Conference (RE), Hannover, Germany, 4–8 September 2023; IEEE: Piscataway, NJ, USA, 2023; pp. 359–360. [Google Scholar]
- Ponce, F.; Soldani, J.; Astudillo, H.; Brogi, A. Smells and refactorings for microservices security: A multivocal literature review. J. Syst. Softw. 2022, 192, 111393. [Google Scholar] [CrossRef]
- Taibi, D.; Lenarduzzi, V. On the definition of microservice bad smells. IEEE Softw. 2018, 35, 56–62. [Google Scholar] [CrossRef]
- Evans, E. Domain-Driven Design: Tackling Complexity in the Heart of Software; Addison-Wesley Professional: Boston, MA, USA, 2004. [Google Scholar]
- Vural, H.; Koyuncu, M. Does domain-driven design lead to finding the optimal modularity of a microservice? IEEE Access 2021, 9, 32721–32733. [Google Scholar] [CrossRef]
- Zhong, C.; Li, S.; Huang, H.; Liu, X.; Chen, Z.; Zhang, Y.; Zhang, H. Domain-driven design for microservices: An evidence-based investigation. IEEE Trans. Softw. Eng. 2024, 50, 1425–1449. [Google Scholar] [CrossRef]
- Alshuqayran, N.; Ali, N.; Evans, R. A systematic mapping study in microservice architecture. In Proceedings of the 2016 IEEE 9th International Conference on Service-Oriented Computing and Applications (SOCA), Macau, China, 4–6 November 2016; IEEE: Piscataway, NJ, USA, 2016; pp. 44–51. [Google Scholar]
- Bajaj, D.; Goel, A.; Gupta, S.C. GreenMicro: Identifying microservices from use cases in greenfield development. IEEE Access 2022, 10, 67008–67018. [Google Scholar] [CrossRef]
- Vera-Rivera, F.H.; Cuadros, E.G.P.; Perez, B.; Astudillo, H.; Gaona, C. SEMGROMI—A semantic grouping algorithm to identifying microservices using semantic similarity of user stories. PeerJ Comput. Sci. 2023, 9, e1380. [Google Scholar] [CrossRef]
- Bajaj, D.; Bharti, U.; Gupta, I.; Gupta, P.; Yadav, A. GTMicro—Microservice identification approach based on deep NLP transformer model for greenfield developments. Int. J. Inf. Technol. 2024, 16, 2751–2761. [Google Scholar] [CrossRef]
- Liu, K.; Reddivari, S.; Reddivari, K. Artificial intelligence in software requirements engineering: State-of-the-art. In Proceedings of the 2022 IEEE 23rd International Conference on Information Reuse and Integration for Data Science (IRI), San Diego, CA, USA, 9–11 August 2022; IEEE: Piscataway, NJ, USA, 2022; pp. 106–111. [Google Scholar]
- Kochbati, T.; Li, S.; Gérard, S.; Mraidha, C. From user stories to models: A machine learning empowered automation. In Proceedings of the MODELSWARD 2022-9th International Conference on Model-Driven Engineering and Software Development, Online Streaming, France, 8–10 February 2021; SCITEPRESS-Science and Technology Publications: Setúbal, Portugal, 2021; pp. 28–40. [Google Scholar]
- Díaz-Pace, J.A.; Tommasel, A.; Capilla, R. Helping Novice Architects to Make Quality Design Decisions Using an LLM-Based Assistant. In European Conference on Software Architecture; Springer: Berlin/Heidelberg, Germany, 2024; pp. 324–332. [Google Scholar]
- Velepucha, V.; Flores, P. A survey on microservices architecture: Principles, patterns and migration challenges. IEEE Access 2023, 11, 88339–88358. [Google Scholar] [CrossRef]
- Nitin, V.; Asthana, S.; Ray, B.; Krishna, R. Cargo: Ai-guided dependency analysis for migrating monolithic applications to microservices architecture. In Proceedings of the 37th IEEE/ACM International Conference on Automated Software Engineering, Rochester, MI, USA, 10–14 October 2022; pp. 1–12. [Google Scholar]
- Baškarada, S.; Nguyen, V.; Koronios, A. Architecting microservices: Practical opportunities and challenges. J. Comput. Inf. Syst. 2020, 60, 428–436. [Google Scholar] [CrossRef]
- Goli, A.; Mahmoudi, N.; Khazaei, H.; Ardakanian, O. A Holistic Machine Learning-based Autoscaling Approach for Microservice Applications. CLOSER 2021, 1, 190–198. [Google Scholar]
- Charankar, N.; Pandiya, D.K. Microservices and API Deployment Optimization Using AI. Int. J. Recent Innov. Trends Comput. Commun. 2024, 11, 1090–1095. [Google Scholar] [CrossRef]
- Ierache, J.; García-Martínez, R.; De Giusti, A. Learning life cycle in autonomous intelligent systems. In Proceedings of the IFIP International Conference on Artificial Intelligence in Theory and Practice, Milano, Italy, 7–10 September 2008; Springer: Boston, MA, USA, 2008; pp. 451–455. [Google Scholar]
- Ünlü, H.; Kennouche, D.E.; Soylu, G.K.; Demirörs, O. Microservice-based projects in agile world: A structured interview. Inf. Softw. Technol. 2024, 165, 107334. [Google Scholar] [CrossRef]
- Page, M.J.; McKenzie, J.E.; Bossuyt, P.M.; Boutron, I.; Hoffmann, T.C.; Mulrow, C.D.; Shamseer, L.; Tetzlaff, J.M.; Akl, E.A.; Brennan, S.E.; et al. The PRISMA 2020 statement: An updated guideline for reporting systematic reviews. BMJ 2021, 372, n71. [Google Scholar] [CrossRef] [PubMed]
- Kitchenham, B.; Pretorius, R.; Budgen, D.; Brereton, O.P.; Turner, M.; Niazi, M.; Linkman, S. Systematic literature reviews in software engineering—A tertiary study. Inf. Softw. Technol. 2010, 52, 792–805. [Google Scholar] [CrossRef]
- Kalia, A.K.; Xiao, J.; Lin, C.; Sinha, S.; Rofrano, J.; Vukovic, M.; Banerjee, D. Mono2micro: An ai-based toolchain for evolving monolithic enterprise applications to a microservice architecture. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering, Virtual USA, 8–13 November 2020; pp. 1606–1610. [Google Scholar]
- Magableh, B.; Almiani, M. Deep Q Learning for Self Adaptive Distributed Microservices Architecture. IEEE Acess, 2019; in press. [Google Scholar]
- Dhar, R.; Vaidhyanathan, K.; Varma, V. Can LLMs Generate Architectural Design Decisions?—An Exploratory Empirical study. arXiv 2024, arXiv:2403.01709. [Google Scholar]
- Ramamoorthi, V. AI-Driven Partitioning Framework for Migrating Monolithic Applications to Microservices. J. Comput. Soc. Dyn. 2023, 8, 63–72. [Google Scholar]
- Imdoukh, M.; Ahmad, I.; Alfailakawi, M.G. Machine learning-based auto-scaling for containerized applications. Neural Comput. Appl. 2020, 32, 9745–9760. [Google Scholar] [CrossRef]
- Singh, A.; Aggarwal, A. Artificial Intelligence Enabled Microservice Container Orchestration to increase efficiency and scalability for High Volume Transaction System in Cloud Environment. J. Artif. Intell. Res. Appl. 2023, 3, 24–52. [Google Scholar]
- Zhong, Z.; Xu, M.; Rodriguez, M.A.; Xu, C.; Buyya, R. Machine learning-based orchestration of containers: A taxonomy and future directions. ACM Comput. Surv. (CSUR) 2022, 54, 1–35. [Google Scholar] [CrossRef]
- Jiang, Y.; Zhang, N.; Ren, Z. Research on intelligent monitoring scheme for microservice application systems. In Proceedings of the 2020 International Conference on Intelligent Transportation, Big Data & Smart City (ICITBS), Vientiane, Laos, 11–12 January 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 791–794. [Google Scholar]
- Power, A.; Kotonya, G. A microservices architecture for reactive and proactive fault tolerance in iot systems. In Proceedings of the 2018 IEEE 19th International Symposium on “A World of Wireless, Mobile and Multimedia Networks” (WoWMoM), Chania, Greece, 12–15 June 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 588–599. [Google Scholar]
- Gan, Y.; Liang, M.; Dev, S.; Lo, D.; Delimitrou, C. Sage: Practical and scalable ML-driven performance debugging in microservices. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Virtual USA, 19–23 April 2021; pp. 135–151. [Google Scholar]
- Zubov, D.; Kupin, A.; Kosei, M.; Holiver, V. Models and Technologies for Autoscaling Based on Machine Learning for Microservices Architecture. In Proceedings of the COLINS-2024: 8th International Conference on Computational Linguistics and Intelligent Systems, Lviv, Ukraine, 12–13 April 2024. [Google Scholar]
- Zhang, Y.; Hua, W.; Zhou, Z.; Suh, G.E.; Delimitrou, C. Sinan: ML-based and QoS-aware resource management for cloud microservices. In Proceedings of the 26th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Virtual USA, 19–23 April 2021; pp. 167–181. [Google Scholar]
- Kang, P.; Lama, P. Robust resource scaling of containerized microservices with probabilistic machine learning. In Proceedings of the 2020 IEEE/ACM 13th International Conference on Utility and Cloud Computing (UCC), Leicester, UK, 7–10 December 2020; IEEE: Piscataway, NJ, USA, 2020; pp. 122–131. [Google Scholar]
- Ozkaya, I. Can architecture knowledge guide software development with generative AI? IEEE Softw. 2023, 40, 4–8. [Google Scholar] [CrossRef]
- JMaranhão, J.O.; Guerra, E.M. A Prompt Pattern Sequence Approach to Apply Generative AI in Assisting Software Architecture Decision-making. In Proceedings of the 29th European Conference on Pattern Languages of Programs, People, and Practices, Irsee, Germany, 3–7 July 2024; pp. 1–12. [Google Scholar]
- Phoenix, J.; Taylor, M. Prompt Engineering for Generative AI: Future-Proof Inputs for Reliable AI Outputs at Scale; O’Reilly Media, Inc.: Sebastopol, CA, USA, 2024. [Google Scholar]
- JWhite; Hays, S.; Fu, Q.; Spencer-Smith, J.; Schmidt, D.C. Chatgpt prompt patterns for improving code quality, refactoring, requirements elicitation, and software design. In Generative AI for Effective Software Development; Springer: Berlin/Heidelberg, Germany, 2024; pp. 71–108. [Google Scholar]
- Moreschini, S.; Pour, S.; Lanese, I.; Balouek-Thomert, D.; Bogner, J.; Li, X.; Pecorelli, F.; Soldani, J.; Truyen, E.; Taibi, D. AI Techniques in the Microservices Life-Cycle: A Survey. arXiv 2023, arXiv:2305.16092. [Google Scholar]
- Alipour, H.; Liu, Y. Online machine learning for cloud resource provisioning of microservice backend systems. In Proceedings of the 2017 IEEE International Conference on Big Data (Big Data), Boston, MA, USA, 11–14 December 2017; IEEE: Piscataway, NJ, USA, 2017; pp. 2433–2441. [Google Scholar]
- Haselböck, S.; Weinreich, R.; Buchgeher, G.; Kriechbaum, T. Microservice design space analysis and decision documentation: A case study on API management. In Proceedings of the 2018 IEEE 11th Conference on Service-Oriented Computing and Applications (SOCA), Paris, France, 20–22 November 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 1–8. [Google Scholar]
- Parekh, N.; Kurunji, S.; Beck, A. Monitoring resources of machine learning engine in microservices architecture. In Proceedings of the 2018 IEEE 9th Annual Information Technology, Electronics and Mobile Communication Conference (IEMCON), Vancouver, BC, Canada, 1–3 November 2018; IEEE: Piscataway, NJ, USA, 2018; pp. 486–492. [Google Scholar]
Technique/Model | Application | Advantages | Limitations |
---|---|---|---|
Generative AI/LLMs | Analyzes historical architectural data and textual requirements to generate design recommendations and propose decompositions. | Automates complex design tasks; provides multiple design options. | Requires high-quality data; may lack interpretability; needs domain-specific fine-tuning. |
Deep Learning for Autoscaling | Predicts workload patterns and dynamically adjusts resource allocation in distributed microservices. | Enhances performance; minimizes manual intervention; adapts to dynamic loads. | Requires extensive training data; may struggle with unforeseen scenarios. |
Reinforcement Learning for Resource Allocation | Optimizes real-time resource allocation and improves fault tolerance by continuously learning from operational feedback. | Continuously improves performance; adapts to changing conditions. | Complexity in modeling; potential training instability; requires careful reward design. |
Hybrid Models (Traditional + AI) | Combines rule-based architectural decision frameworks with AI-driven insights to support both design and runtime optimization. | Integrates strengths of traditional methods and data-driven approaches. | Increases overall system complexity; poses integration challenges. |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Narváez, D.; Battaglia, N.; Fernández, A.; Rossi, G. Designing Microservices Using AI: A Systematic Literature Review. Software 2025, 4, 6. https://doi.org/10.3390/software4010006
Narváez D, Battaglia N, Fernández A, Rossi G. Designing Microservices Using AI: A Systematic Literature Review. Software. 2025; 4(1):6. https://doi.org/10.3390/software4010006
Chicago/Turabian StyleNarváez, Daniel, Nicolas Battaglia, Alejandro Fernández, and Gustavo Rossi. 2025. "Designing Microservices Using AI: A Systematic Literature Review" Software 4, no. 1: 6. https://doi.org/10.3390/software4010006
APA StyleNarváez, D., Battaglia, N., Fernández, A., & Rossi, G. (2025). Designing Microservices Using AI: A Systematic Literature Review. Software, 4(1), 6. https://doi.org/10.3390/software4010006