Towards a Characterization of Microservice Architectures Generated by Large Language Models
José Renan, Ademar Sousa, Emanuel Dantas, Danyllo Albuquerque, Mirko Perkusic, Kyller Gorgônio, Angelo Perkusich
Abstract
Large Language Models (LLMs) are increasingly used for software design tasks, yet little is known about the structure and coherence of the architectures they produce. In particular, how LLMs behave in Architecture-to-Architecture transformations remains insufficiently understood. This study empirically characterizes how LLMs generate microservice architectures from natural language descriptions of modular monoliths, focusing on structural and descriptive properties rather than architectural correctness. We conduct controlled experiments on two modular monolith systems, comparing zero-shot and few-shot prompting strategies using GPT-based models from OpenAI and models from DeepSeek. Generated architectures are represented in a standardized CSV format and evaluated using normalized metrics capturing service granularity, inter-service communication patterns, communication density, service isolation, and responsibility descriptiveness. The results reveal systematic differences driven primarily by prompting strategy rather than model provider. Few-shot prompting consistently produces finer-grained decompositions with lower communication density and more detailed responsibility descriptions, whereas zero-shot prompting favors coarser and more tightly connected architectures. Rather than assessing architectural quality, this study provides an empirical baseline for understanding LLM behavior in text-driven Architecture-to-Architecture transformations, informing future research on generative design workflows and hybrid architectural reasoning in early-stage software modernization.
Create a lesson
Related papers
From Industrial Product Documentation to Automated Digital Product Passport Generation: An Experimental Study of Large Language Models
Shared title terminology · Marco Buecheler, Grant Richards, Nathan Hartman
Doc2CI: A Multi-Service Study of CI Configuration Generation Using Large Language Models
Shared title terminology · Taher A. Ghaleb
Repository-Aware Metamorphic Relation Generation for Augmented Reality Applications using Large Language Models
Shared title terminology · Dibyendu Brinto Bose, Jiawei Qin, Chris Brown
Reliability is a user-specific property of large language models
Shared title terminology · Xingyu Zhao
A Survey on RLOps for Large Language Models
Shared title terminology · Lingzhe Zhang, Tong Jia, Chiming Duan et al.
Scientific Coding with Large Language Models: Evidence from Finite Element Analysis
Shared title terminology · Erfan Hamdi, Joel Shor, Emma Lejeune