--- title: "Amazon DocumentDB" type: entity tags: - AWS - Database - Document - MongoDB sources: - ctp-topic-51-architecting-with-aws-purpose-built-databases last_updated: 2026-04-28 --- ## Overview Amazon DocumentDB 是 AWS 的 MongoDB 兼容文档数据库服务,支持灵活 schema,提供与 MongoDB 应用程序的广泛兼容性。 ## Aliases - DocumentDB - Amazon DocumentDB - Amazon DocumentDB (with MongoDB compatibility) ## Description - **类型**:文档数据库(MongoDB 兼容) - **核心价值**:MongoDB 驱动/工具直接使用 · 灵活 schema 适应快速迭代 · 自动扩展存储 · 存储计算分离 - **适用场景**:内容管理 · 用户档案 · 目录 · 移动应用后端 ## Key Properties | 属性 | 说明 | |------|------| | 兼容性 | MongoDB 4.0/5.0/7.0 驱动兼容 | | 数据模型 | 文档(BSON/JSON)| | 自动扩展 | 存储自动扩展(最高 64TB)| | 集群架构 | 多 AZ 6 副本分布式存储 | | 索引 | 支持二级索引 | | 聚合管道 | MongoDB 聚合管道兼容 | ## Connections - [[Amazon-DynamoDB]]:DocumentDB(文档数据库)vs DynamoDB(键值文档)— 文档查询深度 vs 极简键值性能 - [[Amazon-RDS]]:DocumentDB(灵活 schema 文档)vs RDS(固定 schema 关系型)— schema 灵活性决定选型 - [[Purpose-Built-Databases]]:DocumentDB 是 AWS 专用数据库品类中的文档数据库成员 ## Referenced In - [[ctp-topic-51-architecting-with-aws-purpose-built-databases]]