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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
探索微前端架构
47
为了确保我们在开发速度和团队独立性以及用户界面一致性之间找到合适的平衡点,可以
考虑在整个项目生命周期中每月或每两个月验证一次微服务的依赖关系。我曾在一些公司
工作过,在那里,开发人员每两周在
Sprint
6
结束时都会进行一次这种验证,它帮助团队暂
缓了可能在
Sprint
期间由于外
部依赖关系的阻碍而无法实现的任务。通过这种方式,你可
以减少团队的挫折感,改善他们的表现。
为了创建一个设计系统,技术方面的最佳投入方式就是创建
We
b
组件。因为你可以在任何
UI
框架中使用
We
b
组件,所以以后如果想改变
UI
框架,可以保持设计系统不变,从而节省时
间和精力。在某些情况下,不可以使用
We
b
组件,比如当你的项目必须兼容旧的浏览器时。
不过你大概不会碰到这种要求,你只适配现代浏览器,实现在微前端架构中采用
We
b
组件。
尽管准备好实现设计系统已经成功了一半,但在微前端架构中完成设计系统的交付,你需
要一个可靠的管理方法来维护初始投入。记住,处理一个分布式架构并不像你想象的那样
简单。通常情况下,第一次部署构建会很顺利,因为你有足够的时间来验证和改进。问题
出现在后续的更新中,特别是当你处于分布式团队时,最好的方法是在持续集成阶段将版
本验证自动化。每次构建微前端时,都应该使用
package.json
件来检查设计系统库是否
为最新版本。
持续集成流水线允许你根据需要进行严格的检查。你可以在日志中提供一个警告,要求使
用者尽快更新版本,或者在微前端落后于一个或多个主要版本时阻止构建。一些公司有定
制的系统来处理这个问题,不仅是设计系统,还有其他库 ...
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