🤖 AI Summary
This work addresses the challenge of migrating monolithic backends to serverless architectures, a process typically requiring extensive manual effort. The authors propose the first automated migration pipeline that integrates lightweight static analysis with multi-agent collaboration. By constructing call graphs and identifying asynchronous behaviors, the approach orchestrates four specialized LLM agents—Architect, Developer, SAM Engineer, and Consistency Validator—to jointly generate end-to-end deployable applications compliant with AWS SAM specifications. Evaluated on six real-world benchmarks comprising over 10,000 lines of code and 76 endpoints, the method achieves a 100% deployment success rate, 66.1% end-to-end correctness, and a 98.7% F1 score for API coverage, substantially outperforming existing commercial solutions.
📝 Abstract
Cloud computing platforms offer elastic scaling, managed infrastructure, and pay-per-use pricing, but moving existing monolithic backends to them remains a difficult software engineering task. In practice, the migration requires coordinated changes to program structure, source code, infrastructure configuration, and cloud-specific design decisions, and these changes are still largely carried out by hand. In this paper, we present Mono2Sls, an automated pipeline that converts monolithic web backends into deployable AWS SAM applications. The pipeline combines lightweight static analysis of entry points, call graphs, and asynchronous behavior with four sequential tool-using LLM agents: Architect, Code Developer, SAM Engineer, and Consistency Validator. These agents communicate through explicit intermediate artifacts and consult a curated SAM knowledge base. Evaluated on six benchmark applications totaling more than 10K lines of code and 76 business endpoints, Mono2Sls achieves 100% deployment success without manual fixes. It also reaches 66.1% end-to-end correctness and 98.7% API-coverage F1, whereas the commercial baselines achieve 53.7--61.2% and 88.4%, respectively. The migrated systems show more consistent use of AWS-native authentication and asynchronous patterns, and an ablation study indicates that static-analysis-guided architecture planning contributes 23.4 percentage points to end-to-end correctness.