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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
探索微前端架构
93
开发体验(2 分)
任何解决方案的开发体验都是非常重要的。一个解决方案越复杂,开发人员就越不愿意
接受。
ESI
绝对是一个复杂的解决方案
。如果要在本地测试,需要
Varnish
NGINX
放在虚拟机或
Docker
容器中的
Akamai
测试服务器
。如果你使用的是
CDN
,要做好准
备接受一个漫长的反馈回路来确定代码运行正确。虽然还有其他工具可用,但与其他架
构相比,它的开发体验颇为繁冗。
可扩展性(4 分)
如果项目提供的是静态内容,那么
ESI
可能是最好的解决方案之一
,这要归功于在
CDN
层的组合
。如果混合使用静态内容和动态内容,将
ESI
CSI
结合使用,解决方
案的可扩展性将是无懈可击的。
协作(3 分)
边缘侧组合允许利用微前端原则,允许有独立的团队和产出。但是,由于开发体验不佳,
可能需要更多的跨团队协作,特别是当生产环境的变化影响到所有团队的时候。类似于
对服务器端组合提出的建议,你应该精心设计团队结构,并在迭代中验证你的决策。
4-6
汇总了这种微前端架构的特征及其得分。
4-6ESI架构的特征及其得分
架构特征 得分(1分最低,5分最高)
可部署性
3
模块化
4
简单性
2
可测试性
3
性能
3
开发体验
2
可扩展性
4
协作
3
4.5
 小结
在本章中,我们将微前端决策框架应用于多种架构。定义微前端决策框架所提供的四个要
素(定义、组合、路由和通信)有助于选择合适的架构。本章分析了不同的微前端架构,
重点阐述了它们的问题,并对架构的特征进行打分,这样我们就可以根据优化方向轻松选
择合适的架构。最后,因为并没有完美的架构 ...
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