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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
社区对微前端的看法
239
为开发人员提供支持。
在你最近的一个项目中
开发体验如何
如果想在我们的平台上新建一个微前端,你必须使用命令行工具。我们的用户和内部团队
都通过它来扩展平台的各种不同类型的微前端。这一命令行工具自动处理项目初始化、流
水线构建、持续集成和持续交付。这种开发方式能够加快功能上线的速度,从想法到产品
只需要数小时的时间。
当创建一个新项目时,它会自动为仓库提供所有需要的依赖项、目录结构、配置、版本控
制以及与内部工具的集成。默认情况下,有许多已有的
npm
脚本来处理不同的开发场景
比如本地开发、
lint
、代码格式化
、打包、测试和其他自动化任务,确保项目可以在平台上
正常运行。当我们发起
Pull Request
,它会自动生成
URL
来检测平台的变化,这使得代
码检查更加顺畅。最后,当一个
Pull Request
被合并时
,它会自动发布一个版本,这样可
以很容易地将一个特定的版本部署到任何环境,或进行回滚等操作。
许多开发人员担心微前端的性能和设计一致性的问题
你对
应对这些挑战有什么建议
如前所述,我们没有一个完美的解决方案,但在
New Relic
实现微前端的过程中,我们可
以尽量避免问题。我的建议是仔细评估引入微前端所带来的问题,在此基础上,你可以对
开发微前端的团队的自主权进行适当的限制。你设置的约束越多,就越能减少异常的发
生。最终,你可能会得到一个最适合你的项目和组织的解决方案。
使用微前端的第一步需要做些什么
很难就如何开始使用微前端给出具体建议,因为这在很大程度上取决于项目的类型和公司 ...
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