微前端反模式目录
摘要
微前端(Micro Frontend, MFE)架构因促进开发独立性和模块化而获得了广泛流行。尽管其应用广泛,但该领域仍相对未被探索,尤其是在识别问题和记录最佳实践方面。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 well-designed MFE applications.
引用
@article{arxiv.2411.19472,
title = {A Catalog of Micro Frontends Anti-patterns},
author = {Nabson Silva and Eriky Rodrigues and Tayana Conte},
journal= {arXiv preprint arXiv:2411.19472},
year = {2025}
}