Mono2Sls:通过多阶段流水线进行自动单体到无服务器迁移
Mono2Sls: Automated Monolith-to-Serverless Migration via Multi-Stage Pipeline with Static Analysis
AI总结:
本文提出Mono2Sls,一种自动化将单体Web后端转换为AWS SAM应用的流水线,通过静态分析和四个LLM代理实现高正确率迁移。
摘要:
云计算平台提供弹性扩展、托管基础设施和按使用付费定价,但将现有单体后端迁移到这些平台仍然是软件工程难题。本文提出Mono2Sls,一种自动化流水线,将单体Web后端转换为可部署的AWS SAM应用。该流水线结合轻量级静态分析入口点、调用图和异步行为,与四个顺序使用的LLM代理:架构师、代码开发者、SAM工程师和一致性验证器。这些代理通过显式中间产物通信,并咨询精心编纂的SAM知识库。在六个基准应用(总计超过10,000行代码和76个业务端点)上评估,Mono2Sls实现100%部署成功,无需手动修复。它还达到66.1%的端到端正确率和98.7%的API覆盖率F1,而商业基线达到53.7-61.2%和88.4%。迁移系统显示更一致使用AWS原生认证和异步模式,消融研究表明静态分析引导的架构规划对端到端正确率贡献23.4个百分点。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。