43 lines
1.6 KiB
Markdown
43 lines
1.6 KiB
Markdown
---
|
||
title: "Amazon DocumentDB"
|
||
type: entity
|
||
tags:
|
||
- AWS
|
||
- Database
|
||
- Document
|
||
- MongoDB
|
||
sources:
|
||
- ctp-topic-51-architecting-with-aws-purpose-built-databases
|
||
last_updated: 2026-04-23
|
||
---
|
||
|
||
## Overview
|
||
Amazon DocumentDB 是 AWS 全托管的 MongoDB 兼容文档数据库(Document Database),支持灵活 schema(Flexible Schema),适合存储 JSON 类半结构化数据。
|
||
|
||
## Key Characteristics
|
||
- **兼容性**:MongoDB 3.6、4.0、5.0 API 兼容
|
||
- **数据模型**:文档(Document),存储为 BSON 格式
|
||
- **Schema 灵活性**:无需预定义 schema,可随时添加/修改字段
|
||
- **查询能力**:支持深度嵌套查询、数组查询、聚合管道
|
||
- **规模**:存储和计算分离,支持横向扩展至数 TB
|
||
|
||
## Key Use Cases
|
||
- **内容管理**:CMS、博客、产品目录
|
||
- **用户档案**:灵活属性的用户配置文件
|
||
- **物联网数据**:设备配置和状态文档
|
||
- **实时分析**:日志和事件数据的快速写入
|
||
|
||
## Aliases
|
||
- DocumentDB
|
||
- Amazon DocumentDB
|
||
- AWS DocumentDB
|
||
- Amazon DocumentDB (with MongoDB compatibility)
|
||
|
||
## Related Entities
|
||
- [[Amazon-DynamoDB]]:均为 NoSQL,DocumentDB 支持更深的查询能力,DynamoDB 提供更简单的 API 和更高的一致性保证
|
||
- [[Amazon-RDS]]:关系型数据库,DocumentDB 提供 schema 灵活性,RDS 提供强 schema 和事务支持
|
||
|
||
## Related Concepts
|
||
- [[Purpose-Built-Databases]]:DocumentDB 是 AWS 专用数据库家族中的文档数据库成员
|
||
- [[Document-Database]]:文档数据库核心概念——无 schema JSON/BSON 存储、嵌套文档、聚合管道
|