Skip to Content
监控运维实践:原则与策略
book

监控运维实践:原则与策略

by Mike Julian
November 2020
Intermediate to advanced
142 pages
3h 12m
Chinese
Posts & Telecom Press
Content preview from 监控运维实践:原则与策略
前端监控
|
57
即使有了这些实实在在的数据,令人惊讶的是,仍然有很多团队没有优先考虑前端的性能
改进。最近我和一位专攻这一领域的同事交谈,他帮助其他公司获得了同样的结果。他注
意到,尽管他可以将实际的净利润金额与所付出的性能改进努力联系起来,但是很多团队
仍然犹豫不决,有时甚至不愿意为这项工作投入任何时间。不要成为这样的团队,因为出
色的网站性能是在线销售业务盈利的必要条件。
6.2
 前端监控的两种方法
前端监控主要有两种方法:
真实用户监控
(
RUM
)
和
合成监控
。它们之间的区别与你用于
监控的流量类型有关。
从技术上讲,这两种方法适用于所有监控,而不仅仅是前端监控。你也可以
称它们为
白盒监控
和
黑盒监控
。
如果你见过
Google Analytics
,它就是一种真实用户监控。从本质上讲,真实用户监控使用
实际的用户流量作为监控数据。它通过在你的每个页面上放一小段
JavaScript
来做到这一
点。当有人加载该页面时,脚本会把一些指标发送给监控服务。
而像
WebpageTest
这样的工具是合成监控,它们在各种测试条件下创建假请求来生成数据。
许多软件供应商试图吹捧他们的真实用户监控和合成监控工具是独一无二的,但是它们唯
一特别的地方是实现方式。
真实用户监控将是前端监控工作的核心,因为它监控的是真实用户在真实条件下所体验到
的性能。在本章的大部分内容中,我们将重点讨论真实用户监控的方法和基础,并总结一
些关于合成监控的想法。
6.3
 文档对象模型
在深入研究前端监控之前,首先需要讨论一个核心概念:
文档对象模型
,通常称为
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

Java数据科学实战

Java数据科学实战

Michael R. Brzustowicz, PhD
可编程网络自动化

可编程网络自动化

Jason Edelman, Scott S. Lowe, Matt Oswalt
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115550750