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

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

by Ian Gorton
May 2024
Intermediate
278 pages
5h 24m
Chinese
China Machine Press
Content preview from 构建可扩展分布式系统:方法与实践
分布式系统架构简介
|
31
移动端 /Web 端用户
互联网
负载均衡器
负载均衡器
应用服务 1 应用服务 2
应用服务器
分布式数据库
数据中心
分布式缓存分布式缓存
分布式缓存
2-6:具有多种服务的可扩展架构
2.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

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