一句话:通过将微服务反模式迁移到微前端并结合实践者调查,提出并验证了 12 个微前端反模式目录。
微前端(MFE)架构因提升开发独立性与模块化而流行,但相关问题与最佳实践仍缺乏系统记录。本文借鉴微服务(MS)反模式并分析采用 MFE 团队的真实问题,将 MS 反模式映射并适配到 MFE 语境,构建含 12 个 MFE 反模式的初始目录。为验证问题与方案,作者对工业界实践者开展问卷调查,收集反馈以细化反模式,并让参与者说明是否在实践中遇到、按 10 点 Likert 量表评价危害程度。结果显示所有反模式均在真实 MFE 架构中出现,仅一个报告率低于 50%;参与者认为目录对新老开发者均有指导价值。最终形成改进版目录,并开发 Web 应用展示反模式、促进社区协作。
Micro frontend (MFE) architectures have gained significant popularity for promoting independence and modularity in development. Despite their widespread adoption, the field remains relatively unexplored, especially concerning identifying problems and documenting best practices. Drawing on both established microservice (MS) anti-patterns and the analysis of real problems faced by software development teams that adopt MFE, this paper presents a catalog of 12 MFE anti-patterns. We composed an initial version of the catalog by recognizing parallels between MS anti-patterns and recurring issues in MFE projects to map and adapt MS anti-patterns to the context of MFE. To validate the identified problems and proposed solutions, we conducted a survey with industry practitioners, collecting valuable feedback to refine the anti-patterns. Additionally, we asked participants if they had encountered these problems in practice and to rate their harmfulness on a 10-point Likert scale. The survey results revealed that participants had encountered all the proposed anti-patterns in real-world MFE architectures, with only one reported by less than 50% of participants. They stated that the catalog can serve as a valuable guide for both new and experienced developers, with the potential to enhance MFE development quality. The collected feedback led to the development of an improved version of the anti-patterns catalog. Furthermore, we developed a web application designed to not only showcase the anti-patterns but also to actively foster collaboration and engagement within the MFE community. The proposed catalog is a valuable resource for identifying and mitigating potential pitfalls in MFE development. It empowers developers of all experience levels to create more robust, maintainable, and welldesigned MFE applications.
DOI 原文 ·
@inproceedings{paperbot8849,
title = {A Catalog of Micro Frontends Anti-Patterns},
author = {Nabson Paiva Souza da Silva and Eriky Rodrigues and Tayana Conte},
booktitle = {ICSE},
year = {2025},
doi = {10.1109/icse55347.2025.00079}
}