Can AI Agents Generate Microservices? How Far are We?

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Adnan, Bassam, Esposito, Matteo, Taibi, Davide, Vaidhyanathan, Karthik
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866908875529125888
author Adnan, Bassam
Esposito, Matteo
Taibi, Davide
Vaidhyanathan, Karthik
author_facet Adnan, Bassam
Esposito, Matteo
Taibi, Davide
Vaidhyanathan, Karthik
contents LLMs have advanced code generation, but their use for generating microservices with explicit dependencies and API contracts remains understudied. We examine whether AI agents can generate functional microservices and how different forms of contextual information influence their performance. We assess 144 generated microservices across 3 agents, 4 projects, 2 prompting strategies, and 2 scenarios. Incremental generation operates within existing systems and is evaluated with unit tests. Clean state generation starts from requirements alone and is evaluated with integration tests. We analyze functional correctness, code quality, and efficiency. Minimal prompts outperformed detailed ones in incremental generation, with 50-76% unit test pass rates. Clean state generation produced higher integration test pass rates (81-98%), indicating strong API contract adherence. Generated code showed lower complexity than human baselines. Generation times varied widely across agents, averaging 6-16 minutes per service. AI agents can produce microservices with maintainable code, yet inconsistent correctness and reliance on human oversight show that fully autonomous microservice generation is not yet achievable.
format Preprint
id arxiv_https___arxiv_org_abs_2603_09004
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Can AI Agents Generate Microservices? How Far are We?
Adnan, Bassam
Esposito, Matteo
Taibi, Davide
Vaidhyanathan, Karthik
Software Engineering
LLMs have advanced code generation, but their use for generating microservices with explicit dependencies and API contracts remains understudied. We examine whether AI agents can generate functional microservices and how different forms of contextual information influence their performance. We assess 144 generated microservices across 3 agents, 4 projects, 2 prompting strategies, and 2 scenarios. Incremental generation operates within existing systems and is evaluated with unit tests. Clean state generation starts from requirements alone and is evaluated with integration tests. We analyze functional correctness, code quality, and efficiency. Minimal prompts outperformed detailed ones in incremental generation, with 50-76% unit test pass rates. Clean state generation produced higher integration test pass rates (81-98%), indicating strong API contract adherence. Generated code showed lower complexity than human baselines. Generation times varied widely across agents, averaging 6-16 minutes per service. AI agents can produce microservices with maintainable code, yet inconsistent correctness and reliance on human oversight show that fully autonomous microservice generation is not yet achievable.
title Can AI Agents Generate Microservices? How Far are We?
topic Software Engineering
url https://arxiv.org/abs/2603.09004