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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
探索微前端架构
81
协作(3 分)
使用
We
b
组件的主要挑战是确保合适的微前端颗粒度,因为这将影响应用的交付速度,
并避免可能导致开发人员感到挫败的外部依赖。在确定一个组件或一个微前端所包含的
功能时,要有明确的规范。
4-4
汇总了
We
b
组件微前端架构的特征及其得分。
4-4Web组件微前端架构的特征及其得分
架构特征 得分(1分最低,5分最高)
可部署性
4
模块化
3
简单性
4
可测试性
4
性能
4
开发体验
4
可扩展性
5
协作
3
4.4.9
 服务器端组合
服务器端组合的横向拆分架构是微前端生态系统中最灵活、最强大的解决方案,这要归功
于云服务。对于专注于业务价值而非维护基础设施的开发人员来说,云服务是一种完美的
运行环境。在云上,服务有可收缩性,可以在请求增加时相应地增加基础设施以保障服务
正常运转,并在流量恢复正常时缩容。我们也可以轻松地设置基线,专注于真正重要的事
情:为用户创造价值。
当应用对
SEO
有强烈要求时
,通常会选择服务器端渲染,因为这种技术可以加快页面的
加载速度,且页面是完全渲染好的,不需要任何
JavaScript
逻辑
。鉴于每个搜索引擎进行
排名时都会考虑页面的加载速度,服务器端渲染有助于应用在搜索引擎结果页面上的位置
提升。
在服务器端组合中,最终的视图是在服务器端创建完成的。在服务器端可以使用一些技术
来加快最终输出的速度,比如在不同的层(服务器、内存或
CDN
)中进行缓存
,以减少获
取所有微前端应用时服务之间的跳转所占用的时间和组合微前端的逻辑计算时间。如今,
我们拥有了很多必要的工具和资源来加快视图的合成速度,为用户提供服务。 ...
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