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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
134
6
具也可以对其做出改进,系统也会随着时间的推移而不断完善,所以,一定要定期审视自
己的工具并做竞品分析,以确保工具与时俱进,适应项目的演进。
6.4.2
 适应度函数
在由多个模块组成完整平台的分布式系统中,无论团队是集中办公还是分布式办公,系统
架构团队都应该有一种方法来衡量其系统架构决策的影响,并确保所有团队都遵循这些决
策。在《演进式架构》
1
一书中,
Neal Ford
Rebecca Parsons
Patrick Kua
讨论了如何用适
应度函数测试持续集成中的架构特征。他们指出,适应度函数为某些架构特征提供了客观
的完整性评估。
自动化流程中的许多步骤用于评估架构特征,比如循环复杂度的静态分析或微前端用例中
的包体积。如果用户下载的数据大小是一个关键的架构特征,那就很适合用一个指标来度
量微前端的包体积。架构团队可能决定在自动化策略中引入适应度函数,以保障微前端应
用的效果一致和方案折中。在设计微前端项目的自动化流程时,需要注意以下关键的系统
架构特征。
包体积
预估每个微前端的包体积,并分析何时超出预估及其原因。还应该检查共享库的体积大
小,而不仅仅是检查每个微前端构建产物的大小。
性能指标
使用
Lighthouse
W
ebPageTest
等工具可以验证新版本应用的性能是否与当前版本相
同,或者优于当前版本。
静态分析
JavaScript
生态里有很多工具可以用来做静态分析
,其中
SonarQube
可能最为著名。
SonarQube
可以让我们深入了解自动化流程
,比如项目的循环复杂度(这里指的是微前 ...
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