Skip to Content
微前端设计与实现
book

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
130
6
如今,公司内的自动化流水线多由开发人员负责,这并不意味着开发人员有权在持续集成
中做任何想做的事情,而是他们确实应该参与流水线的工作,因为流水线的反馈闭环的速
度与他们息息相关。技术驱动团队(架构师、平台团队、开发体验团队、技术负责人、经
理等)应该提供操作指南和工具来帮助团队更好地运作,同时应该在定义的边界内提供一
定的灵活性。
在微前端中,持续集成尤为重要,因为我们需要稳定地构建和部署大量独立的产物。开发
人员应该正确地使用工具,保证微前端的自动化策略能够正常运行。每个微前端都有自己
的工具集合,这种方式看似有些过度设计了,但通常还是会有几个不同的工具用于执行相
似的任务。这种方式也有利于工具间良性竞争,帮助团队打造最佳实践。
我在走廊里不止一次地听到开发人员说,像
Rollup
这样的构建工具在某些场景中具有
webpack
没有的特性
,反之亦然。我认为这正是这些工具在真实环境下的较量,而不仅是
在沙盒中测试。
同样重要的是,微前端的持续集成流程不是只有一种实现方式,它在很大程度上取决于项
目、公司标准和采用的架构方式。比如,当使用纵向拆分的方式实现微前端时,持续集成
流水线的各个阶段都和普通的单页应用类似。如果自动化策略允许按需创建环境,就可以
在部署之前进行端到端测试,测试完成后释放环境。然而,横向拆分则需要考虑任务执行
的时机。我们必须在预发布环境或者生产环境中执行端到端测试,否则,每条流水线都需
要了解整个应用的组成,获取每个微前端的最新版本并且将其推送到一个临时环境中。这
种解决方案难以维护和改进。 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python语言及其应用(第2版)

Python语言及其应用(第2版)

Bill Lubanovic

Publisher Resources

ISBN: 9787115595089