DocumentDB is not based on the MongoDB server. Rather it emulates the MongoDB API, and runs on top of Amazon’s Aurora backend platform.
Comparing Amazon DocumentDB And MongoDB
Amazon DocumentDB is a NoSQL JSON document database service with a limited degree of compatibility with MongoDB.
www.mongodb.com
Spec
Test Version
테스트 조건
- lean 적용
- index 적용
- ({buyer.name: 1, accountId: 1})
- ({createdAt: -1, accountId: 1}) **꼭 걸어야함
- or filter 제거
테스트 대상
- 오더 조회 시 발생하는 read performance 테스트
Summary
- Good
- 매우 쉬운 scale out. readPreference 설정 후 read replica 를 증설 할 경우 알아서 잘 분배
- 소규모 프로젝트와 가벼운 데이터 구조에서는 좋아보임
- Bad
- 증설되는 복제본의 경우 각각 별도의 replica로 동작하는것으로 보이며 각각의 replica의 performace를 넘어가는 경우 폭망
- mongodb 대비 좋지않은 성능
15,000 Order counts
Mongo 처리속도
- docDB: 100ms
- mongoDB: 10m
'software engineering > backend' 카테고리의 다른 글
DynamoDB (0) | 2022.08.29 |
---|---|
Query on S3 ( Athena, Redshift ) (1) | 2022.08.29 |
gRPC Error (0) | 2022.08.26 |
go-pprof (0) | 2022.08.25 |
Topicctl (Kafka management) (0) | 2022.08.25 |