Files
nexus/wiki/sources/ctp-topic-66-exposing-the-differences-between-postgresql-rds-and-aurora.md

70 lines
4.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "CTP Topic 66 Exposing the differences between PostgreSQL RDS and Aurora"
type: source
tags:
- AWS
- RDS
- Aurora
- PostgreSQL
- CTP
date: 2026-04-14
---
## Source File
- [[raw/Cloud & DevOps/Public-Cloud-Learning-Sessions/01_AWS-Landing-Zone/ctp-topic-66-exposing-the-differences-between-postgresql-rds-and-aurora.md]]
## Summary用中文描述
- 核心主题PostgreSQL 在 Amazon RDS 与 Aurora 两种托管方案之间的核心差异对比
- 问题域AWS 云数据库选型——何时选 RDS何时选 Aurora成本与性能的权衡
- 方法/机制从架构设计、最小实例规格、最大扩展能力、自动扩缩容、故障恢复时间、存储灵活性、端点设计、Blue-Green 部署、监控方案及高可用性能调优等多维度进行系统对比
- 结论/价值:数据库规模 < 10-20TB 优先选 RDS成本更低、存储选项更灵活超过该规模或有严格 RTO 要求30 秒)则选 Aurora跨 AZ 六副本架构、自动故障恢复)
## Key Claims用中文描述
- RDS 因架构简单、提供更小规格实例,初始成本低于 AuroraAurora 最小规格较高
- Aurora 单集群最大容量和 IO 性能优于 RDS适合超过 10-20 TB 的数据库
- Aurora Serverless v2 支持自动扩缩容,但对实例类型、版本和区域有限制
- Aurora 的 RTO恢复时间目标为 30 秒RDS 为 2 分钟AZ 故障场景)
- RDS 提供多种存储类型GP2、GP3、预置 IOPS、磁性Aurora 按 IO 计数收费
- Aurora 采用跨 3 个 AZ 的 6 块 EBS 卷组成的共享集群卷,读副本无需重新复制数据
- Aurora MySQL 支持 Blue-Green 部署PostgreSQL 不支持
- Aurora 使用临时 SSD短暂存储用于临时工作RDS 使用 EBS
## Key Quotes
> "Aurora IO is generally unbounded because they're motivated to give you as much IO as you can consume because they're charging you per IO." — Aurora 按 IO 收费机制使其有动力提供尽可能高的 IO
> "With Aurora, you get six EBS volumes. They're spread across three availability zones." — Aurora 跨 3 AZ 的六副本架构是高性能和高可用的基础
> "With RDS, you get to choose multiple different storage mechanisms." — RDS 存储灵活性优势
## Key Concepts
- [[RTORecovery Time Objective]]从故障中恢复的时间目标Aurora 为 30 秒RDS 为 2 分钟
- [[Shared Cluster Volume]]Aurora 的跨 AZ 共享存储卷6 块 EBS 卷组成,读副本共享同一数据副本无需重新复制
- [[Blue-Green Deployment]]Aurora MySQL 支持主备环境切换式部署用于大版本升级PostgreSQL 不支持
- [[Endpoint Architecture]]Aurora 提供独立的 Writer Endpoint 和 Reader EndpointRDS 仅有一个集群端点
- [[Aurora Global]]Aurora 跨区域复制方案,支持干净的托管式切换和故障转移
- [[Temporary Storage]]Aurora 使用临时 SSD短暂存储处理临时工作固定大小取决于实例类型
## Key Entities
- [[AWS]]Amazon Web Services提供 RDS 和 Aurora 两款托管数据库服务
- [[Amazon RDS]]关系型数据库服务计算与存储分离EBS支持 Multi-AZ 部署
- [[Amazon Aurora]]云原生关系型数据库6 副本跨 3 AZ 共享集群卷架构
- [[Greg Klau]]CTP Topic 66 讲师,主讲 PostgreSQL RDS vs Aurora 差异对比
- [[EBS]]Elastic Block StoreRDS 的存储后端Aurora 的底层存储6 块卷跨 3 AZ
- [[CloudWatch]]AWS 监控服务RDS 和 Aurora 均支持
- [[Performance Insights]]AWS 数据库性能监控工具Aurora 和 RDS 均支持
- [[JDBC]]Java Database Connectivity连接串可配置 reader/writer 端点以提升韧性
## Connections
- [[Amazon Aurora]] ← extends ← [[Amazon RDS]]
- [[RTORecovery Time Objective]] ← depends_on ← [[Shared Cluster Volume]]
- [[Blue-Green Deployment]] ← supports ← [[Aurora Global]]
- [[Aurora Global]] ← enables ← [[Multi-Region Failover]]
- [[ctp-topic-51-architecting-with-aws-purpose-built-databases]] ← related_to ← 本页AWS 数据库选型)
- [[ctp-topic-72-implementing-an-enterprise-dr-strategy-using-aws-backup]] ← related_to ← 本页(灾备策略)
## Contradictions
- 与 [[learning-sessions-cloud-transformation-programme-deploying-rds-via-terraform]] 冲突:
- 冲突点Terraform 部署 RDS 时对存储类型的选择
- 当前观点Aurora 按 IO 收费适合高 IO 场景RDS 提供多种存储类型GP2/GP3/预置 IOPS适合成本敏感型场景
- 对方观点Terraform IaC 部署关注点是资源标准化和可重复性,存储选型属于运维决策