一句话:评估微前端架构在原生移动平台上的适配方式、局限与挑战,发现静态开发侧组合可行但牺牲灵活性。
移动应用开发日益复杂,其主要原因是单体式架构:应用仍以单一单元部署;而 Web 应用已采用微服务、微前端(MFE)等模块化架构,将开发按特性拆分为由不同团队负责的独立单元。本文研究在原生移动平台上引入 MFE 架构的可行性,具体探讨三个问题:如何将 MFE 适配到当前原生移动平台;在移动端适配 MFE 存在哪些局限;以及 MFE 会给移动应用开发带来哪些挑战。研究结果表明,尽管在部署后组合移动端 MFE 存在困难,但在开发侧维持静态组合是可行的,代价是灵活性下降。该方案能够实现团队分离与特性独立开发,但并未达成技术无关性(technological agnosticism)。
Since their introduction, mobile application development has become complex and now rivals web app development. The primary factor contributing to this complexity is their monolithic architecture: a mobile application is still deployed as a single unit. In contrast, web applications have adopted modular architectures such as Microservice or Micro FrontEnd (MFE). This last approach divides development into teams, each responsible for an MFE corresponding to a specific software feature. Our study examines the adoption of the MFE architecture on native mobile platforms. This paper discusses: i) how MFE can be adapted to current native mobile platforms; ii) the limitations of adapting MFE architecture on mobile; and iii) the challenges MFE introduces to mobile application development. Despite challenges in composing mobile MFEs post-deployment, our research highlighted maintaining a static development-side composite is feasible, albeit with a loss of flexibility. This allows team separation and independent feature development, though technological agnosticism isn't achieved.
DOI 原文 ·
@inproceedings{paperbot8347,
title = {Assessing the feasibility of Micro frontend architecture in native mobile app development},
author = {Quentin Capdepon and Nicolas Hlad and Benoit Verhaeghe and Abdelhak-Djamel Seriai},
booktitle = {ASE},
year = {2024},
doi = {10.1145/3691620.3695313}
}