Database Migration Guide
MongoDB Atlas to Amazon DocumentDB: Migration Guide and Comparison
An honest guide to MongoDB Atlas vs Amazon DocumentDB — covering compatibility gaps, migration steps with AWS DMS, cost comparison, and when each service is the right choice.
Last updated:
Quick Answer: Migrate when the AWS-native feature depth, governance controls, and long-term cost profile justify the transition effort.
MongoDB Atlas to Amazon DocumentDB is one of the most nuanced database migrations you can undertake. On the surface it looks straightforward — DocumentDB speaks the MongoDB wire protocol, so your drivers connect. The complexity lives in the gaps between what DocumentDB advertises and what MongoDB actually delivers.
This guide does not sugarcoat the compatibility story. We will cover what works, what does not, when DocumentDB is a reasonable choice, and when you should stay on Atlas or consider a different AWS-native option.
This page is based on AWS documentation and the public price list, both read on 30 November 2026. It is not a client case study.
The Compatibility Gap: What DocumentDB Does Not Support
This is the section most vendor comparisons skip. Read it before you start planning a migration.
| Feature | MongoDB Atlas | Amazon DocumentDB | Notes |
|---|---|---|---|
| Full-text search | Atlas Search (Lucene) | Native text indexes; 8.0 adds text index V2 | Use OpenSearch Service for Lucene-style search |
| Change streams | Collection, database, deployment | Enabled per collection, database, or cluster | Kept 3 hours by default, extendable to 7 days |
| $lookup (join) | Full support | Uncorrelated subqueries; correlated from 8.0.2 | Check your engine version |
| $unionWith | Supported | From 8.0.3 | Not supported on 5.0 or elastic clusters |
| $accumulator | Supported | Not supported | Move custom logic to the application |
| Vector search | $vectorSearch stage | $vectorSearch from 8.0; $search on 5.0 | Not supported on elastic clusters; rewrite on 5.0 |
| MongoDB API versions | Tracks upstream releases | 3.6, 4.0, 5.0, 8.0 | Emulated APIs, so explain() output differs |
| Atlas App Services | MongoDB product | No equivalent | Replace with your own services |
Sources: supported APIs, functional differences, change streams, text search, $vectorSearch.
The bottom line on compatibility: For CRUD-heavy applications, DocumentDB compatibility is usually adequate. Each unsupported operator or Atlas-only product you rely on becomes application work, so count them before you set a date.
When DocumentDB Makes Sense
DocumentDB is a reasonable choice in specific situations:
- AWS-only vendor requirement. Some regulated environments or enterprise procurement policies require all data services to be native AWS services. Atlas runs on AWS infrastructure but is managed by MongoDB Inc., not AWS. DocumentDB satisfies this constraint.
- Operational simplicity over feature completeness. If your team finds Atlas’s operational model complex (cross-cloud replication, Atlas alerts, Atlas Data Federation), DocumentDB integrates more naturally into your existing AWS tooling — CloudWatch, VPC security groups, IAM authentication.
- Your workloads fit the compatibility matrix. If your application is a document store for structured JSON with standard CRUD operations and simple queries, DocumentDB’s supported feature set may be entirely sufficient.
- Cost modeling favors DocumentDB. For low-I/O workloads, DocumentDB’s unbundled pricing can be cheaper than Atlas.
When Atlas Is the Better Choice
Atlas is the stronger option when:
- You depend on Atlas Search features beyond DocumentDB text indexes. The nearest AWS option is OpenSearch Service, which is a separate migration.
- You use operators the DocumentDB 8.0 table marks as unsupported.
- You use Atlas App Services, Atlas Data Federation, or Atlas Charts.
- You need multi-cloud replication (Atlas runs on AWS, GCP, and Azure; DocumentDB is AWS-only).
Cost Comparison
DocumentDB uses an unbundled pricing model. The instance price is only part of the cost.
AWS list prices, US East (N. Virginia), On-Demand, read from the AWS Price List on 30 November 2026. Monthly figures use 730 hours and one instance. Storage, backup and standard I/O are extra.
| Instance | Standard per hour | Standard per month | I/O-Optimized per hour | I/O-Optimized per month |
|---|---|---|---|---|
| db.t4g.medium | $0.07566 | $55.23 | $0.0832 | $60.74 |
| db.t3.medium | $0.078 | $56.94 | $0.0858 | $62.63 |
| db.r6g.large | $0.26315 | $192.10 | $0.2895 | $211.34 |
| db.r6g.xlarge | $0.5263 | $384.20 | $0.5789 | $422.60 |
| db.r6g.2xlarge | $1.0526 | $768.40 | $1.1579 | $845.27 |
A production cluster normally runs more than one instance. Compare with a current quote from MongoDB Atlas pricing, because Atlas tiers and rates change.
I/O decides the bill: at $0.20 per million requests, standard I/O on db.r6g.large equals the I/O-Optimized premium at about 96 million requests a month ($19.24 ÷ $0.20 per million). Above that, I/O-Optimized instance pricing is cheaper before storage. Measure I/O first.
Migration sequence with AWS DMS
This follows the AWS migration runbook.
- Assess operators. Run the AWS compatibility tool against your workload. List every unsupported operator with the code that uses it.
- Assess indexes. Run the AWS index tool. Plan replacements for unsupported index types.
- Create the target. Match the engine version to the operators you need, then create indexes.
- Load data. Use DMS for a full load, then change data capture to keep the target current.
- Validate. Compare counts and sample documents, then run your slowest queries on the target. Query plans differ from MongoDB.
- Cut over. Stop writes, wait for change capture to drain, validate again, and switch the connection string.
- Keep a way back. Decide before cutover how writes made on DocumentDB would return to Atlas.
Use the DocumentDB pricing calculator to price the target.
Related Comparisons
Explore other technical comparisons:
Why Choose FactualMinds for Your AWS Migration
FactualMinds is an AWS Select Tier Services Partner specializing in cloud platform migrations. We start with a compatibility assessment, so you know the application work before you commit.
- Migration architects — assessment-first methodology mapping your current state before execution
- Planned cutover — change data capture, validation and a rollback step agreed before the switch
- AWS Select Tier Partner — verified on AWS Partner Network
- AWS Marketplace Seller
Related Comparisons
Other side-by-side breakdowns engineering teams read alongside this one.
Migrating from Heroku to AWS: Postgres and Beyond
Practical guide to migrating from Heroku to AWS. Postgres to RDS migration, managed database features, and cost optimization.
DynamoDB vs RDS: NoSQL vs SQL on AWS
Technical comparison of Amazon DynamoDB vs RDS. Schema flexibility, query patterns, scaling, and when to choose each.
Frequently Asked Questions
Is Amazon DocumentDB the same as MongoDB?
Can I migrate from MongoDB Atlas to DocumentDB?
Does DocumentDB support text search and vector search?
Is DocumentDB cheaper than MongoDB Atlas?
Which MongoDB versions does DocumentDB support?
Ready to Migrate to AWS?
FactualMinds is an AWS Select Tier Services Partner. We run assessment-first migrations — mapping your current architecture, estimating risk, and executing with zero-downtime cutover strategies.
