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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
18
3
微前端的架构和挑战
微前端应用代表一个自治、可独立交付、由某一团队单独负责的业务领域,这其中的关键
点与微前端背后的原则密切相关,后文将详细讨论。应用微前端需要考虑的因素有以下
几点
业务领域描述
自治代码库
独立部署
单一团队负责制
微前端提供了许多架构选择,合适的架构取决于项目需求、组织结构和开发人员的经验。
想要成功运用这些架构,我们面临许多挑战,比如如何在微前端之间进行通信,或者如何
将用户从一个视图导向另一个视图,其中最重要的是如何确定微前端的规模。
本章将涵盖初始化一个微前端项目时需要做的关键性决策,并介绍一些在生产环境中使用
微前端的公司,分析他们采用的方案。
3.1
 微前端决策框架
构建一个微前端应用有很多方法。要为项目选择最好的方法,就需要了解应用将在什么环
境下运行。一些架构决策要在早期确定,因为它们将指导未来的决策,比如如何定义一个
微前端、如何编排不同的视图、如何为用户组成最终的视图以及微前端之间如何通信和共
享数据。这些决策总称为
微前端决策框架
,它由四个关键性决策组成。
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