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

微前端设计与实现

by Luca Mezzalira
August 2022
Beginner to intermediate
270 pages
7h 38m
Chinese
Posts & Telecom Press
Content preview from 微前端设计与实现
140
6
环要涵盖上线后的代码,否则,我们将无法对线上关键时期发生的事故做出快速响应。过
去几年,前端生态中出现了许多监控工具,比如
Sentry
New Relic
LogRocket
,这些工
具允许我们在遇到问题时记录用户行为。可观察性是必须具备的功能,它应该成为发布策
略的一部分,特别是在实现分布式架构(如微前端)时,它尤为重要。
每个微前端都应上报错误,无论是自定义错误还是常规错误,以便能够观察到线上发生的
问题。在这方面,
Sentry
LogRocket
提供了所需的可视化界面来帮助开发人员定位问题
这些工具可以记录用户行为、收集异常的
JavaScript
栈信息
,并将错误进行分类。在这些
工具中,可以配置各种错误或警告的警报,甚至可以将这些工具插入
PagerDuty
这样的报
警系统中。
在项目初期就对可观察性进行深入的思考很有必要,因为它对实现反馈闭环起着重要作
用,特别是当我们处理处于同一个页面中的多个微前端时。这些工具将帮助开发人员进行
调试,让他们知道问题发生在代码库的什么地方,并快速推动团队找到解决方案。此外,
这些技术方案还能提供用户在使用过程中的上下文信息,比如使用的浏览器、操作系统、
所在的国家和地区等。所有这些信息与错误栈信息结合在一起,为开发人员提供了一条清
晰的问题排查路径,避免花费大量时间在本地或者测试环境中尝试复现错误。
6.6
 小结
在本章中,我们探讨了很多问题,现在让我们梳理和回顾一下。首先,我们确定了基于技
术和公司的发展状况,实现快速反馈、持续集成的自动化流水线的原则 ...
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