Mono2Sls: Automated Monolith-to-Serverless Migration via Multi-Stage Pipeline with Static Analysis
Xingyan Chen, Yuxin Su, Zishan Su, Yang Yu, Zibin Zheng

TL;DR
Mono2Sls is an automated pipeline that transforms monolithic web backends into AWS serverless applications using static analysis and multi-agent LLM orchestration, achieving high deployment success and correctness.
Contribution
It introduces a novel multi-stage pipeline combining static analysis and LLM agents for automated monolith-to-serverless migration, outperforming commercial baselines.
Findings
Achieves 100% deployment success on benchmarks.
Reaches 66.1% end-to-end correctness and 98.7% API coverage.
Static analysis improves correctness by 23.4 percentage points.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
