LLM-Generated Microservice Implementations from RESTful API Definitions

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chauhan, Saurabh, Rasheed, Zeeshan, Sami, Abdul Malik, Zhang, Zheying, Rasku, Jussi, Kemell, Kai-Kristian, Abrahamsson, Pekka
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912258256273408
author Chauhan, Saurabh
Rasheed, Zeeshan
Sami, Abdul Malik
Zhang, Zheying
Rasku, Jussi
Kemell, Kai-Kristian
Abrahamsson, Pekka
author_facet Chauhan, Saurabh
Rasheed, Zeeshan
Sami, Abdul Malik
Zhang, Zheying
Rasku, Jussi
Kemell, Kai-Kristian
Abrahamsson, Pekka
contents The growing need for scalable, maintainable, and fast-deploying systems has made microservice architecture widely popular in software development. This paper presents a system that uses Large Language Models (LLMs) to automate the API-first development of RESTful microservices. This system assists in creating OpenAPI specification, generating server code from it, and refining the code through a feedback loop that analyzes execution logs and error messages. By focusing on the API-first methodology, this system ensures that microservices are designed with well-defined interfaces, promoting consistency and reliability across the development life-cycle. The integration of log analysis enables the LLM to detect and address issues efficiently, reducing the number of iterations required to produce functional and robust services. This process automates the generation of microservices and also simplifies the debugging and refinement phases, allowing developers to focus on higher-level design and integration tasks. This system has the potential to benefit software developers, architects, and organizations to speed up software development cycles and reducing manual effort. To assess the potential of the system, we conducted surveys with six industry practitioners. After surveying practitioners, the system demonstrated notable advantages in enhancing development speed, automating repetitive tasks, and simplifying the prototyping process. While experienced developers appreciated its efficiency for specific tasks, some expressed concerns about its limitations in handling advanced customizations and larger scale projects. The code is publicly available at https://github.com/sirbh/code-gen
format Preprint
id arxiv_https___arxiv_org_abs_2502_09766
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM-Generated Microservice Implementations from RESTful API Definitions
Chauhan, Saurabh
Rasheed, Zeeshan
Sami, Abdul Malik
Zhang, Zheying
Rasku, Jussi
Kemell, Kai-Kristian
Abrahamsson, Pekka
Software Engineering
The growing need for scalable, maintainable, and fast-deploying systems has made microservice architecture widely popular in software development. This paper presents a system that uses Large Language Models (LLMs) to automate the API-first development of RESTful microservices. This system assists in creating OpenAPI specification, generating server code from it, and refining the code through a feedback loop that analyzes execution logs and error messages. By focusing on the API-first methodology, this system ensures that microservices are designed with well-defined interfaces, promoting consistency and reliability across the development life-cycle. The integration of log analysis enables the LLM to detect and address issues efficiently, reducing the number of iterations required to produce functional and robust services. This process automates the generation of microservices and also simplifies the debugging and refinement phases, allowing developers to focus on higher-level design and integration tasks. This system has the potential to benefit software developers, architects, and organizations to speed up software development cycles and reducing manual effort. To assess the potential of the system, we conducted surveys with six industry practitioners. After surveying practitioners, the system demonstrated notable advantages in enhancing development speed, automating repetitive tasks, and simplifying the prototyping process. While experienced developers appreciated its efficiency for specific tasks, some expressed concerns about its limitations in handling advanced customizations and larger scale projects. The code is publicly available at https://github.com/sirbh/code-gen
title LLM-Generated Microservice Implementations from RESTful API Definitions
topic Software Engineering
url https://arxiv.org/abs/2502.09766