arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.07147cs.SE
收藏

学生开发微服务架构中的架构反模式:一项探索性研究

Architectural Anti-Patterns in Student-Developed Microservice Architectures: An Exploratory Study

University of Naples Federico II(那不勒斯费德里科二世大学)

Anna Rita Fasolino, Marco De Luca, Michele Perlotto, Porfirio Tramontana

AI总结:

本研究通过分析学生开发的微服务架构,发现常见反模式并提出教学建议,旨在提升微服务教学与行业实践的契合度。

摘要:

在教学微服务架构时,由于分布式复杂性和学术与工业之间的差距而具有挑战性。理解学生在MSA中引入的质量问题是改进教育的关键。本研究利用已建立的反模式分类法分析学生开发的微服务,并得出学习教训和具有操作性的教学建议。我们进行了一项纵向、基于项目的课程(2023-2025),涉及216名硕士生(67个团队),他们为一个游戏化测试平台设计和部署了现实的、容器化的MSA。最终系统揭示了58种已知MSA反模式中的23种,涵盖五个类别。安全问题最为频繁,突显了认证、授权和数据保护方面的弱点。团队组织和服务交互问题次之,反映了有限的DevOps经验以及服务间协调的困难。较少的问题出现在内部服务设计和跨服务分解中,表明学生通常能够很好地定义服务边界。总体而言,学生更重视功能交付而非稳健性和操作纪律。为了解决这个问题,我们建议强制执行最低标准(API合同、网关),提供关于健壮通信的实验室,整合安全设计实践,并提供CI-CD模板。本文贡献了一个现实的、全规模的教育经历以及一个可复制的模型,用于教学行业对齐的微服务架构。

英文摘要:

Teaching microservice architectures is challenging due to distributed complexity and the gap between academia and industry. Understanding the quality issues students introduce in MSAs is essential to improve education. This study analyzes student-developed microservices using an established anti-pattern taxonomy and derives lessons learned with actionable teaching recommendations. We conducted a longitudinal, project-based course (2023-2025) involving 216 Master's students (67 teams) who designed and deployed a realistic, containerized MSA for a gamified testing platform. The final systems revealed 23 out of 58 known MSA anti-patterns, spanning five categories. Security issues were most frequent, highlighting weaknesses in authentication, authorization, and data protection. Team Organization and Service Interaction problems followed, reflecting limited DevOps experience and difficulties in inter-service coordination. Fewer issues appeared in Intra-service Design and Inter-service Decomposition, suggesting students generally defined service boundaries well. Overall, students prioritized feature delivery over robustness and operational discipline. To address this, we recommend enforcing minimal standards (API contracts, gateways), providing labs on resilient communication, integrating security-by-design practices, and offering CI-CD templates. The paper contributes a realistic, full-scale educational experience and a replicable model for teaching industry-aligned microservice architecture.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑