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

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

by Ian Gorton
May 2024
Intermediate
278 pages
5h 24m
Chinese
China Machine Press
Content preview from 构建可扩展分布式系统:方法与实践
可扩展系统简介
|
11
尽管如此,在系统的发展过程中,提高系统性能和可扩展性成为当务之急甚至影响系统
存亡的现象比比皆是。有吸引力的功能和实用性高的特性带来了成功,但也带来了更多
需要处理的请求和更多需要管理的数据。这往往存在一个临界点,在轻负载下有意义的
设计和决策突然变成了技术债务
1
1
。以下来自系统外部的事件通常会引爆临界点:
2020
3
月或
4
月的媒体上有许多关于政府失业和冠状病毒大流行导致超市在线订购网站无
法承受激增的需求而崩溃的报道。
通过增加资源来增加系统在某个维度上的容量称为
纵向扩展
scaling up
)或
横向扩展
scaling out
稍后我将探讨它们之间的区别。此外,与物理系统不同,能够
按比例
缩小
scale down
)系统容量以降低成本同样重要。
一个非常典型的例子是
Netflix
,它需要处理来自不同区域的可预测的昼夜请求。概括地
说,在任何地理区域,晚上
9
点观看
Netflix
的人比早上
5
点要多。这使得
Netflix
可以
在访问量较低时减少资源,从而节省了在亚马逊云中运行节点的成本,同时也带来了社
会价值,如降低数据中心能源功耗等。比较一下
Netflix
和高速公路:高速公路晚上很少
有车,但我们不会撤回车道(修理除外)。为数不多的司机可以在全部道路上随心所欲
地行驶。在软件系统中,我们可以在几秒钟内扩展和收缩系统的处理能力,以满足瞬时
访问量。与物理系统相比,我们部署的策略大有不同。
关于软件系统的可扩展性还有很多需要考虑的地方,让我们先探讨
2021
年左右的一些
当代软件系统的规模,然后再回到这些问题。 ...
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