Skip to Content
构建可扩展分布式系统:方法与实践
book

构建可扩展分布式系统:方法与实践

by Ian Gorton
May 2024
Intermediate
278 pages
5h 24m
Chinese
China Machine Press
Content preview from 构建可扩展分布式系统:方法与实践
264
|
16
服务,微服务通过良好定义的接口与系统的其余部分进行交互。借助自动化工具链,可
以在微服务中独立部署本地更改和新功能,同时不干扰系统操作。自动化减少了协调
开销,提高了生产力,缩短了发布周期。所有这些都意味着你的工程投资将获得更大的
回报。
16.2
可观测性
俗话说,“你无法管理你无法衡量的东西。”在大型软件系统中,道理亦然。由于有大量
移动部件,所有部件都在可变负载条件下运行,容易出现不可预测的错误,因此你需要
借助测量系统提供的健康状况和行为来观测系统状态。可观测性解决方案涵盖了这方面
的需求,它提供的能力包括:
提供基础设施不断生成的细粒度指标和日志数据来捕获系统当前状态。
分析聚合实时指标并采取行动,对指示实际或未决故障的警报做出反应。
可观测性的第一个基本要素是具有一个仪表化系统,它不断以指标和日志条目的形式发
出系统遥测数据。遥测数据的来源多种多样。它可以来自操作系统、你在应用程序中使
用的基础平台(例如,消息传递、数据库)以及你部署的应用程序代码。指标表示资源
利用率以及系统各部分提供的延迟、响应时间和吞吐量。
代码检测是强制性的,你可以使用开源框架[例如
OpenTelemetry
https://oreil.ly/sPiw9
)]
或专有解决方案(例如
AWS CloudWatch
)来发出特定于应用程序的指标。指标和日志条
目形成了基于时间序列的连续的数据流,表征了你的应用程序随时间的行为。
捕获原始指标数据是可观测性系统推断并感知态势的先决条件。同时,你需要快速处
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

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho

Publisher Resources

ISBN: 9787111750697