Skip to Content
Google系统架构解密: 构建安全可靠的系统
book

Google系统架构解密: 构建安全可靠的系统

by Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield
September 2021
Beginner to intermediate
392 pages
12h 13m
Chinese
Posts & Telecom Press
Content preview from Google系统架构解密: 构建安全可靠的系统
面向易理解性的设计
65
得对这些断言的相当强的信心。在
Google
,我们发现这种方法对于大型软件开发项目是实
用的,并且对减少常见类型的漏洞非常有效。有关测试和验证的更多讨论,参见第
13
章。
6.1.3
 心智模型
高度复杂的系统让人类难以全盘推理。在实践中,工程师和各个领域的专家经常构造心智
模型,用以解释系统的相关行为,而忽略掉不相关的细节。对于一个复杂的系统,你可以
构建多个互为基础的心智模型。通过这种方式,考虑给定系统或者子系统的行为或不变量
时,可以抽象出其周围组件和底层组件的细节,并将其替换为心智模型。
心智模型很有用,因为它简化了复杂系统的推理。出于同样的原因,心智模型也是有局限
性的。如果你根据系统在通常的运营条件下运行的经验构造出一个心智模型,那么这个模
型可能无法预测系统在异常情况下的行为。在很大程度上,安全性和可靠性工程关注的是
在那些异常的情况下分析系统,比如系统受到攻击、过载或者组件故障的场景下。
考虑这样一个系统,它的吞吐量会随着传入请求的速率而可预测地逐渐增加。然而,超过
某个负载的阈值之后,系统可能会以截然不同的方式响应。例如,内存压力可能会导致虚
拟内存、堆或者垃圾回收器级别的崩溃
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

管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
Python机器学习基础教程

Python机器学习基础教程

Andreas C. Müller, Sarah Guido
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115569257