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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
146
7
用到其他的构建工具。需要注意的是,可以在一定范围内给团队提供选择工具的自由。当
团队有特殊的构建需求时,需要确保引入的新构建工具(通常是在自动化流水线中)不要
破坏开发边界。引入新的构建工具本身不是问题,因为在此过程中,我们可以实验和比较
不同团队的方案,甚至可以从中发现新的解决方案。到目前为止,我们并不需要使用其他
的构建工具。如果所有团队在整个自动化流水线中使用的是同一套工具,那就再好不过
了。不过,不要阻碍创新。有时,使用与初期商定的方案不一样的方式进行构建可能会带
来意想不到的收获。
7.1.5
 构建后检查
部署上线前应该确认我们的产物具备了所有性能特征并实现了需求,这一确认阶段即构建
后检查阶段,如图
7-5
所示。
构建 构建后检查
运行端
到端测试
保存
产物
检查
性能
部署
产物
构建
产物
7-5:构建后检查阶段,在上线前增加多项检查
一个关键步骤是将产物存储在一个产物仓库中,比如
Nexus
Artifactory
。我们也可以考
虑较为简单的存储方案,比如使用
AW
S
S3
云存储。一定要注意,存储时要确保单一数
据源。
ACME
公司决定在此阶段引入额外的检查
:端到端测试和性能检查。这两项检查是否应用
于此阶段取决于自动化策略和系统的能力。在本例中,我们假设公司可以启动一个静态环
境进行端到端测试和性能检查,然后在测试完成后将其销毁。
端到端测试对微前端至关重要。本例采用的是纵向拆分,整体的用户体验是在同一个产物
中,那么测试整个微前端就像平时测试单页应用一样。但是,如果采用横向拆分,同一个
视图中有多个微前端,为了测试整个视图,应该在后置阶段进行端到端测试。 ...
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