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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
社区对微前端的看法
229
我们什么时候应该使用微前端
什么时候应该避免使用
使用微前端的情况有:
当你想从旧框架或者单体应用进行迁移时;
当你想在不同的开发团队之间实现独立部署时;
当你想为不同的开发团队做出独立、不同的技术决策时(比如,针对需要安装哪个日期
格式化库、哪个
React CSS
库,甚至是哪个用户界面框架做出决策)
当你想把用户界面划分成高内聚、低耦合的各个部分时(这一想法来自《微服务设计》
这本书)。
避免使用微前端的情况有:
你不想做微前端;
单体应用已经能够很好地满足需求了;
项目开发人员只有一个;
由于存在部署依赖项,因此独立部署会带来更多的问题,尤其是当开发人员很少的时候;
如果你的微前端项目需要大量、频繁的相互沟通,也许你不应该使用微前端;
开发团队没有管理复杂系统的技术能力、时间或意愿。
在最近一个微前端项目结束时
哪些工作取得了成效
哪些
工作没有奏效
成效包括以下几点。
我们通过项目本身的
package.js
on
、构建以及持续集成流水线实现了项目的独立部署。
通过这种方式,我们可以实现在
PHP/Laravel
单体应用上使用旧版本的
Node
Gulp
React
我们不再像过去一样,要做许多的技术决策。
我们可以创建一个风格指南或者组件库,使我们更容易和用户体验团队进行协作。
没有奏效的方面包括以下几点。
DevOps
推进的阻力很大
,需要时间说服他人,建立信任。构建新的持续集成流水线和
基础设施花了很长时间。
一些开发人员将微前端和 ...
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