Message Queue
Massive buffer holding 200 requests. Place after Firewall to
smooth DDoS spikes, or before Compute to prevent overload. Cheap
insurance against traffic bursts.
流向:防火墙 → 队列 → 负载均衡器,或 负载均衡器 → 队列
→ Compute
Memory Cache
Caching layer with 35-65% hit rate. Cache hits complete
instantly without hitting DB/Storage. Upgrade tiers for higher
hit rates. Great for reducing DB costs.
流向:计算节点 → 缓存 → 数据库/文件存储
API Gateway
Rate limits incoming traffic. When requests exceed the rate limit,
excess requests are throttled with only -0.2 reputation loss (vs -1.0 for failures).
Upgrade tiers to increase rate limit (20/40/80 RPS).
流向:互联网 → API 网关 → 负载均衡或防火墙 → API 网关 → 负载均衡
NoSQL Database
Faster and cheaper than SQL for READ/WRITE traffic (150ms vs 300ms processing).
Cannot handle SEARCH queries — keep SQL DB for those.
Upgrade tiers for higher capacity (15/30/50).
流向:计算节点 → NoSQL,或 计算节点 → 缓存 → NoSQL
搜索引擎
$120
处理 SEARCH 流量的速度是 SQL 数据库的 3 倍(100ms vs 300ms)。只接受 SEARCH 查询,其他流量类型会失败。升级可提高容量(12/25/40)。
流向:计算节点 → 搜索引擎,或 计算节点 → 缓存 → 搜索引擎
读副本
$100
处理 READ 流量比主数据库更快(200ms vs 300ms)。必须连接到 SQL 数据库或 NoSQL 数据库才能工作,只接受 READ 查询。
流向:计算节点 → 读副本 → 数据库,或 计算节点 → 缓存 → 读副本 → 数据库
无服务器函数
$45
随流量自动扩缩容(容量 30)。维护费用很低($2/分钟),但每完成一次请求收取 $0.03。适合突发或低流量场景,高 RPS 长时间运行会变贵。连接拓扑与计算节点相同。
流向:负载均衡 / 队列 → 无服务器函数 → 缓存 / 数据库 / NoSQL / 文件存储