From Textual Requirements to Microservice Architectures: A Comprehensive Evaluation of LLM-Based Design Synthesis
DOI:
https://doi.org/10.5753/jserd.2026.7957Keywords:
Large Language Models, Microservice Architectures, Design Synthesis, Software Architecture, Requirements Engineering, Empirical Software EngineeringAbstract
[Context]. Microservice architectures have become a dominant paradigm for modernizing monolithic systems. However, identifying appropriate services remains a challenging and largely manual task. Existing decomposition approaches are predominantly code-centric, limiting their applicability in early design stages where only textual requirements are available. [Problem]. Despite recent advances in Large Language Models (LLMs), there is still limited empirical evidence regarding their ability to synthesize complete microservice architectures directly from natural-language requirements, including both service definitions and inter-service interactions. [Goal]. This study investigates whether an LLM can bridge the gap between requirements engineering and architectural design by generating microservice architectures solely from textual requirements, and evaluates the structural agreement and perceived quality of the generated solutions. [Method]. We conduct a mixed-method study using the OpenAI o3 model under zero-shot (ZS) and few-shot (FS) prompting strategies across two systems (Bookstore and PetClinic), with one execution per system and prompting condition. Generated architectures are evaluated through (i) quantitative comparison with implemented reference architectures using precision, recall, and F1-score for service identification and communication recovery, and (ii) a blinded expert assessment of correctness, completeness, modularity, and plausibility, supplemented by a structured descriptive synthesis of open-ended feedback. [Results]. The findings indicate that OpenAI o3 can identify services from requirements, achieving higher agreement with the references under FS prompting (F1 ≈ 0.79 for ZS and ≈ 0.97 for FS). Communication recovery is more challenging, with ZS producing overly dense architectures characterized by high recall but low precision (F1 ≈ 0.61). FS prompting improves structural agreement and perceived architectural quality, achieving F1 ≈ 0.82 for communication recovery while reducing unsupported dependencies. Expert evaluation corroborates these findings, indicating that FS-generated architectures are consistently perceived as more modular, coherent, and plausible than ZS outputs. [Conclusion]. Within the evaluated scope, OpenAI o3 shows potential to support requirements-driven architectural synthesis, particularly when guided by minimal exemplar-based prompting. The results should be interpreted as model- and context-specific evidence from two relatively small systems and a single execution per condition, rather than as model-independent proof of effectiveness.
Downloads
References
Abgaz, Y., McCarren, A., Elger, P., Solan, D., Lapuz, N., Bivol, M., Jackson, G., Yilmaz, M., Buckley, J., and Clarke, P. (2023). Decomposition of monolith applications into microservices architectures: A systematic review. IEEE Transactions on Software Engineering, 49(8):4213–4242.
Al-Debagy, O. and Martinek, P. (2020). Extracting microservices' candidates from monolithic applications: Interface analysis and evaluation metrics approach. In 2020 IEEE 15th International Conference on System of Systems Engineering (SoSE), pages 289–294. IEEE.
Albuquerque, D., Guimarães, E., Tonin, G., Rodríguezs, P., Perkusich, M., Almeida, H., Perkusich, A., and Chagas, F. (2022). Managing technical debt using intelligent techniques: A systematic mapping study. IEEE Transactions on Software Engineering, 49(4):2202–2220.
Alsayed, K. and Benomar, O. (2024). MicroDec: Hybrid static + LLM embeddings for microservice extraction. Journal of Systems and Software, 203:111622.
Assunção, W. K., Marchezan, L., Arkoh, L., Egyed, A., and Ramler, R. (2025). Contemporary software modernization: Strategies, driving forces, and research opportunities. ACM Transactions on Software Engineering and Methodology, 34(5):1–35.
Ataei, M., Cheong, H., Grandi, D., Wang, Y., Morris, N., and Tessier, A. (2025). Elicitron: A large language model agent-based simulation framework for design requirements elicitation. Journal of Computing and Information Science in Engineering, 25(2).
Austin, J. et al. (2021). Program synthesis with large language models. arXiv preprint arXiv:2108.07732.
Baresi, L., Garriga, M., and De Renzis, A. (2017). Microservices identification through interface analysis. In European Conference on Service-Oriented and Cloud Computing, pages 19–33. Springer.
Bushong, V., Abdelfattah, A. S., Maruf, A. A., Das, D., Lehman, A., Jaroszewski, E., Coffey, M., Cerny, T., Frajtak, K., Tisnovsky, P., et al. (2021). On microservice analysis and architecture evolution: A systematic mapping study. Applied Sciences, 11(17):7856.
Capilla, R., Jansen, A., Tang, A., Avgeriou, P., and Babar, M. A. (2016). 10 years of software architecture knowledge management: Practice and future. Journal of Systems and Software, 116:191–205.
Chen, M. et al. (2021). Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.
Dhar, R., Vaidhyanathan, K., and Varma, V. (2024). Can LLMs generate architectural design decisions? An exploratory empirical study. In 2024 IEEE 21st International Conference on Software Architecture (ICSA), pages 79–89. IEEE.
Dragoni, N. et al. (2017). Microservices: Yesterday, today, and tomorrow. In Present and Ulterior Software Engineering, pages 195–216.
Fritzsch, J., Bogner, J., Zimmermann, A., and Wagner, S. (2018). From monolith to microservices: A classification of refactoring approaches. In International Workshop on Software Engineering Aspects of Continuous Development and New Paradigms of Software Production and Deployment, pages 128–141. Springer.
Gysel, M., Kölbener, L., Gantenbein, P., and Zimmermann, O. (2016). Service Cutter: A systematic approach to service decomposition. In European Conference on Service-Oriented and Cloud Computing, pages 185–200. Springer.
Hassan, H., Abdel-Fattah, M. A., and Mohamed, W. (2024). Migrating from monolithic to microservice architectures: A systematic literature review. Volume 15, page 104.
He, J., Treude, C., and Lo, D. (2025). LLM-based multi-agent systems for software engineering: Literature review, vision, and the road ahead. Volume 34, pages 1–30. ACM.
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo, X., Lo, D., Grundy, J., and Wang, H. (2024). Large language models for software engineering: A systematic literature review. ACM Transactions on Software Engineering and Methodology, 33(8):1–79.
Imranur, M., Panichella, S., Taibi, D., et al. (2019). A curated dataset of microservices-based systems. arXiv preprint arXiv:1909.03249.
Jin, W., Liu, T., Cai, Y., Kazman, R., Mo, R., and Zheng, Q. (2019). Service candidate identification from monolithic systems based on execution traces. IEEE Transactions on Software Engineering, 47:987–1007.
Joselyne, M. I., Bajpai, G., and Nzanywayingoma, F. (2021). A systematic framework of application modernization to microservice based architecture. In 2021 International Conference on Engineering and Emerging Technologies (ICEET), pages 1–6. IEEE.
Kaloudis, M. (2024). Evolving software architectures from monolithic systems to resilient microservices: Best practices, challenges and future trends. International Journal of Advanced Computer Science & Applications, 15(9).
Mazlami, G., Cito, J., and Leitner, P. (2017). Extraction of microservices from monolithic software architectures. In 2017 IEEE International Conference on Web Services (ICWS), pages 524–531. IEEE.
Mohottige, T. I., Polyvyanyy, A., Fidge, C. J., Buyya, R., and Barros, A. (2025). Reengineering software systems into microservices: State-of-the-art and future directions. Information and Software Technology, 183:107732.
Newman, S. (2015). Building Microservices. O'Reilly Media.
Nijkamp, E. et al. (2022). CodeGen: An open large language model for code with multi-turn program synthesis. arXiv preprint arXiv:2203.13474.
Nogueira, V. L., Felizardo, F. S., Amaral, A. M., Assunção, W. K., and Colanzi, T. E. (2024). Insights on microservice architecture through the eyes of industry practitioners. In 2024 IEEE International Conference on Software Maintenance and Evolution (ICSME), pages 765–777. IEEE.
Oumoussa, I. and Saidi, R. (2024). Evolution of microservices identification in monolith decomposition: A systematic review. IEEE Access, 12:23389–23405.
Pahl, C. and Jamshidi, P. (2016). Microservices: A systematic mapping study. In CLOSER 2016, pages 137–146.
Pereira, J., Albuquerque, D., Perkusich, M., Rodríguez, G., Díaz-Pace, J., Gorgônio, K., and Perkusich, A. (2025). Toward generating microservice architectures from textual requirements with large language models. In Anais do XIX Simpósio Brasileiro de Componentes, Arquiteturas e Reutilização de Software, pages 79–89, Porto Alegre, RS, Brasil. SBC.
Ponnusamy, S. and Eswararaj, D. (2023). Navigating the modernization of legacy applications and data: Effective strategies and best practices. Asian Journal of Research in Computer Science, 16(4):239–256.
Romani, Y., Tibermacine, O., and Tibermacine, C. (2022). Towards migrating legacy software systems to microservice-based architectures: A data-centric process for microservice identification. In 2022 IEEE 19th International Conference on Software Architecture Companion (ICSA-C), pages 15–19. IEEE.
Saucedo, A. M., Diaz-Pace, J. A., Astudillo, H., and Rodríguez, G. (2024). On the variability of microservice decompositions: A data-driven analysis. In 2024 Latin American Computer Conference (CLEI), pages 1–9. IEEE.
Saucedo, A. M. and Rodríguez, G. (2024). Migration of monolithic systems to microservices using AI: A systematic mapping study. In Congresso Ibero-Americano em Engenharia de Software (CIbSE), pages 1–15. SBC.
Saucedo, A. M., Rodríguez, G., Rocha, F. G., and dos Santos, R. P. (2025). Migration of monolithic systems to microservices: A systematic mapping study. Information and Software Technology, 177:107590.
Seacord, R. C., Plakosh, D., and Lewis, G. A. (2003). Modernizing Legacy Systems: Software Technologies, Engineering Processes, and Business Practices. Addison-Wesley Professional.
Sellami, K. and Saied, M. A. (2025). Contrastive learning-enhanced large language models for monolith-to-microservice decomposition. arXiv preprint arXiv:2502.04604.
Sistla, S. (2023). Domain-driven design in modern software architecture: Best practices and patterns. Journal of Mathematical & Computer Applications, 2(1):2–4.
Taibi, D., Lenarduzzi, V., and Pahl, C. (2017). Processes, motivations, and issues for migrating to microservices architectures: An empirical investigation. IEEE Cloud Computing, 4(5):22–32.
Tapia, V. and Gaona, M. (2023). Research opportunities in microservices quality assessment: A systematic literature review. Journal of Advances in Information Technology, 14(5):991–1002.
Trabelsi, I., Mahmoudi, B., Minani, J. B., Moha, N., and Guéhéneuc, Y.-G. (2025). A systematic literature review of machine learning approaches for migrating monolithic systems to microservices. IEEE Transactions on Software Engineering, 51(11):2972–2995.
Velepucha, V. and Flores, P. (2023). A survey on microservices architecture: Principles, patterns and migration challenges. IEEE Access, 11:88339–88358.
Vera-Rivera, F. H., Gaona, C., and Astudillo, H. (2021). Defining and measuring microservice granularity: A literature overview. PeerJ Computer Science, 7:e695.
Weerasinghe, M., Kularathne, H., Madhushika, M., Lakshan, D., Silva, N. d., Wijayasiri, A., and Perera, S. (2026). From monolith to microservices: A comparative evaluation of decomposition frameworks. Pages 309–320.
Wohlin, C., Runeson, P., Höst, M., Ohlsson, M. C., Regnell, B., Wesslén, A., et al. (2012). Experimentation in Software Engineering, volume 236. Springer.
Wolff, E. (2016). Microservices: Flexible Software Architecture. Addison-Wesley Professional.
Zadenoori, M. A., Dąbrowski, J., Alhoshan, W., Zhao, L., and Ferrari, A. (2025). Large language models (LLMs) for requirements engineering (RE): A systematic literature review. arXiv preprint arXiv:2509.11446.
Zhang, Q., Fang, C., Xie, Y., Zhang, Y., Yu, S., Sun, W., Yang, Y., and Chen, Z. (2026). A survey on large language models for software engineering. Science China Information Sciences, 69(4):141102.
Zhao, L., Alhoshan, W., Ferrari, A., Letsholo, K. J., Ajagbe, M. A., Chioasca, E.-V., and Batista-Navarro, R. T. (2021). Natural language processing for requirements engineering: A systematic mapping study. ACM Computing Surveys (CSUR), 54(3):1–41.
Zheng, Z., Ning, K., Zhong, Q., Chen, J., Chen, W., Guo, L., Wang, W., and Wang, Y. (2025). Towards an understanding of large language models in software engineering tasks. Empirical Software Engineering, 30(2):50.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Danyllo Albuquerque, José Renan, Guillermo Rodríguez, Jorge Andrés Díaz-Pace, Emanuel Dantas, Ademar França, Mirko Perkusich, Kyller Gorgônio, Angelo Perkusich

This work is licensed under a Creative Commons Attribution 4.0 International License.

