Skip to Content
流畅的Python(第2版)
book

流畅的Python(第2版)

by Luciano Ramalho
April 2023
Intermediate to advanced
769 pages
25h 16m
Chinese
Posts & Telecom Press
Content preview from 流畅的Python(第2版)
562
19
关系数据库:
PostgreSQL
MySQL
文档数据库:
Apache CouchDB
MongoDB
全文索引:
Elasticsearch
Apache Solr
消息队列:
RabbitMQ
Redis
客户端
请求
缓存未命中,
写数据
捕获
数据
变化
异步任务
例如发送
邮件
搜索
请求
更新
搜索
索引
读请求
首先检查数据
是否缓存
作废或
更新缓存
内存缓存
主数据库
API
全文索引
应用程序代码
消息
队列
应用程序代码应用程序代码
“外部世界”
19-3:由多个组件构成的系统可能采用的一种架构
20
在这些类别中,还有其他工业级开源产品。主流云供应商也有自己的专属替代方案。
Kleppmann
给出的图是通用的
,与具体语言无关——那本书的内容也是如此。
Python
服务
器端应用程序通常部署如下两个特定的组件。
一个应用程序服务器,在
Python
应用程序的多个实例之间分配负载
。应用程序服务器
应放在图
19-3
靠近顶部的位置,先于应用程序代码处理客户端请求。
一个任务队列,包装图
19-3
侧的消息队列,提供更易于使用的高级
API
,为设备中
运行的进程分配任务。
这两个组件是
Python
服务器端部署推荐的最佳实践
,接下来的
19.7.4
节和
19.7.5
节将深入
探讨。
20
这幅架构图改编自《数据密集型应用系统设计》(
Martin Kleppmann
著)一书中的图
1-1
Python
并发模型
563
19.7.4
 
WSGI
应用程序服务器
WSGI
Web Server Gateway Interface ...
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

Python高级编程(第2版)

Python高级编程(第2版)

Posts & Telecom Press, Michał Jaworski, Tarek Ziadé
Python贝叶斯分析(第2版)

Python贝叶斯分析(第2版)

Posts & Telecom Press, Osvaldo Martin
高效能PYTHON程式設計

高效能PYTHON程式設計

Micha Gorelick, Ian Ozsvald

Publisher Resources

ISBN: 9787115612366