Loading...


Updated 1 Oct 2026 • 5 mins read

Amazon DocumentDB emulates the MongoDB API on AWS-native infrastructure, while MongoDB Atlas is the full database from its creators on any cloud. This guide compares them on compatibility, features, architecture, and cost in US dollars, works through a production example, and gives a decision framework for choosing between them.
AWS describes Amazon DocumentDB as MongoDB-compatible, and the phrasing does a lot of work. It is true in the sense that a MongoDB driver can connect and most common operations behave as expected. It is misleading in the sense that leads teams to treat the two as interchangeable, because DocumentDB is not MongoDB: it is a different database, built by AWS, that speaks MongoDB's wire protocol over its own storage engine. That distinction shapes everything else in the comparison, from which features work to how the bill is calculated.
This guide compares Amazon DocumentDB with MongoDB, delivered in practice through MongoDB Atlas, on the four things that decide the choice: compatibility, features, architecture, and cost. It works through a realistic production example in US dollars, gives a decision framework, and is honest about where each one wins, which is more often than the marketing on either side suggests.
The short answer: Amazon DocumentDB is an AWS-built database that emulates the MongoDB API over its own storage engine, runs only on AWS, and supports a subset of MongoDB features with compatibility modes up to the MongoDB 8.0 driver. MongoDB Atlas is the full MongoDB database from its creators, on AWS, Azure, and Google Cloud, with the complete feature set including Atlas Search and Vector Search. On cost, DocumentDB bills per instance plus storage and I/O, so high availability means paying for two or three instances, while an Atlas cluster price includes a three-node replica set; for a production HA workload Atlas is often cheaper, though DocumentDB can win for single-instance or AWS-credit-funded deployments. Choose DocumentDB for straightforward document storage inside an AWS-native stack; choose Atlas for full compatibility, advanced features, or multi-cloud.
Launched in 2019, DocumentDB is a fully managed document database built on the same distributed, replicated storage architecture as Amazon Aurora, with compute and storage separated so each scales independently. It implements the MongoDB wire protocol and a growing subset of the MongoDB API, with compatibility modes for MongoDB 3.6, 4.0, 5.0, and, in DocumentDB 8.0, the MongoDB 8.0 drivers. It supports up to 15 read replicas, transactions, change streams, Elastic Clusters for sharded scale-out, Global Clusters for cross-region replication, and a Serverless option that scales capacity automatically. It runs only on AWS and integrates natively with IAM, CloudWatch, VPC, KMS, and AWS billing. The official pricing page lists instance classes and rates.
MongoDB is the open-source document database, and Atlas is the managed service run by MongoDB Inc. on AWS, Azure, and Google Cloud. Because it is the actual database, it supports every MongoDB feature as soon as it ships, including Atlas Search for full-text search, Vector Search for AI workloads, time-series collections, triggers, data federation, and multi-region and multi-cloud clusters. Atlas clusters are priced as complete deployments, including a three-node replica set for high availability, with dedicated tiers from M10 upward and a Flex tier for small workloads. The Atlas pricing page lists cluster tiers.
This is the question that matters most and is answered least honestly by vendor pages. AWS's position is that DocumentDB supports the MongoDB APIs that customers most commonly use, and that migrating can be as simple as changing the connection string. MongoDB's position, backed by a compatibility test suite it publishes, is that DocumentDB fails a substantial share of MongoDB's feature tests and lacks most of the differentiating capabilities of recent versions.
Both are partially right. For applications that use core CRUD operations, common aggregation stages, indexes, and transactions, DocumentDB works well and the migration is straightforward. For applications that rely on newer aggregation operators, Atlas Search, Vector Search, time-series collections, or the specific behaviors of recent MongoDB releases, DocumentDB either lacks the feature or requires a workaround through other AWS services, which adds cost and complexity. The practical rule: supporting a driver version is not the same as supporting that version's features, and the only reliable test is running your application's actual operations against DocumentDB's published compatibility list before committing.
Prices are approximate US East (N. Virginia) rates as of September 2026 and vary by region and configuration.
| Dimension | Amazon DocumentDB | MongoDB Atlas |
|---|---|---|
| What it is | AWS database emulating the MongoDB API | MongoDB itself, managed by MongoDB Inc. |
| Clouds | AWS only | AWS, Azure, Google Cloud; multi-cloud clusters |
| MongoDB compatibility | Subset; driver modes up to 8.0 | Full, always current |
| Search and AI | No native full-text or vector search | Atlas Search, Vector Search built in |
| Scale-out | Elastic Clusters (sharding); up to 15 read replicas | Native sharding; global clusters |
| High availability | Pay per instance; replicas billed separately | Three-node replica set included in tier price |
| Compute pricing | Per instance-hour, e.g. db.t4g.medium ~$0.08, db.r6g.large ~$0.28 | Per cluster-hour, e.g. M10 ~$0.08, M30 ~$0.54 (three nodes) |
| Storage | ~$0.10 per GB-month, pay for what you use | Included per tier; extended storage ~$0.25 per GB-month |
| I/O | ~$0.20 per million requests (Standard); I/O-Optimized removes it | No separate I/O charge |
| Serverless | DocumentDB Serverless (capacity-based) | Flex tier and serverless options |
| Native integration | IAM, CloudWatch, VPC, KMS, AWS billing | Atlas tooling; AWS/Azure/GCP integrations |
| Lock-in | AWS-only; proprietary engine | Portable across clouds; open-source core |
Both charge for compute while a cluster runs, but the models differ in a way that decides most comparisons. DocumentDB prices the primary instance and every replica separately, plus storage per gigabyte and, on the Standard configuration, I/O per million requests. A production cluster that must survive an Availability Zone failure needs at least one replica in another zone, and often two, so the compute line doubles or triples. Write-heavy workloads can also accumulate surprising I/O charges, which is why AWS offers an I/O-Optimized configuration at higher instance and storage rates that removes them; AWS suggests it pays off when I/O exceeds a quarter of cluster spend.
Atlas prices a cluster tier as a complete deployment, and every dedicated tier includes a three-node replica set, so high availability is part of the sticker price rather than a multiplier on it. There is no separate I/O charge; storage above the tier's included allowance is billed per gigabyte. The result is that Atlas is usually more predictable, and for HA production workloads frequently cheaper: Vantage's own comparison of equivalent production configurations found DocumentDB about 27 percent more expensive once the second instance was added.
DocumentDB regains ground in three situations. Single-instance development and test clusters, where no replica is needed, are cheap on burstable db.t4g instances. Organizations with AWS credits, Enterprise Discount Program commitments, or a Marketplace private offer can consume them against DocumentDB but not Atlas. And DocumentDB Serverless can undercut a provisioned Atlas tier for spiky, mostly idle workloads.
Consider a production document store needing a primary and one replica in a second Availability Zone, 100 GB of data, and moderate traffic of about 50 million I/O requests a month.
On DocumentDB with two db.r6g.large instances at about $0.28 an hour each, compute is roughly $400 a month. Storage adds about $10, I/O about $10, and backup storage beyond the included cluster volume a few dollars more, for a total near $425 a month. A third instance for three-AZ resilience would push it past $625.
On Atlas, an M30 cluster at about $0.54 an hour, which already includes three nodes across three Availability Zones, is roughly $395 a month with 40 GB of storage included; extending to 100 GB adds around $15, for a total near $410. For the same or better resilience, the Atlas configuration comes in slightly under the two-instance DocumentDB cluster and well under the three-instance one, which is the pattern the published comparisons describe. Reverse the assumptions, a single dev instance with no replica, and DocumentDB on a db.t4g.medium at about $60 a month is the cheaper option by a clear margin. Model your own topology in both pricing calculators before deciding; the crossover depends on how much availability you need.
Whichever you pick, the database will be one of the larger lines on the bill, and instance right-sizing, storage growth, and I/O patterns need the same continuous attention as any other AWS service. Our guides to AWS pricing across EC2, S3, EBS, and RDS and database monitoring metrics and costs cover that discipline, and attributing database spend to the teams and products that drive it is what Opslyft's cost visibility is built for.
DocumentDB and MongoDB Atlas are not two versions of the same thing; they are two different databases that share a query language. DocumentDB is the AWS-native choice, well integrated, adequate for core MongoDB workloads, and priced per instance so that availability costs extra. Atlas is the real MongoDB, complete, portable, and priced with availability built in. For a straightforward document store inside an AWS stack, especially one funded by AWS credits, DocumentDB is a reasonable and sometimes cheaper choice. For anything that leans on MongoDB's feature set, needs search or vector capabilities, or may ever leave AWS, Atlas is the safer and often less expensive path. Decide on compatibility first, then cost, and test the compatibility rather than trusting the label. For a similar storage decision on the infrastructure side, see our comparison of Amazon EFS and EBS.
MongoDB is the open-source document database, delivered as a managed service through MongoDB Atlas on AWS, Azure, and Google Cloud. Amazon DocumentDB is a separate AWS-built database that emulates the MongoDB API over its own storage engine. It is compatible with a subset of MongoDB features, runs only on AWS, and integrates natively with AWS services, while Atlas offers the full MongoDB feature set including Atlas Search and Vector Search.
No. DocumentDB is a proprietary AWS service that implements the MongoDB wire protocol and a subset of its API, with compatibility modes for MongoDB 3.6, 4.0, 5.0, and 8.0 drivers. MongoDB's own compatibility testing shows DocumentDB does not support many features, particularly newer ones, so applications written for MongoDB may need changes to run on it. Applications written for DocumentDB generally migrate to MongoDB easily.
Not necessarily. DocumentDB bills per instance plus storage and I/O, so a highly available production cluster needs two or three paid instances, while an Atlas cluster price includes a three-node replica set. Vantage's comparison found DocumentDB about 27 percent more expensive for a production HA workload. DocumentDB can be cheaper for single-instance or dev workloads, and its I/O-Optimized and Serverless options help for specific patterns.
DocumentDB 8.0 supports MongoDB 8.0 API drivers, so applications using those drivers can connect. Support for the API version does not mean support for all MongoDB 8.0 features; MongoDB states that DocumentDB lacks most of the version's differentiating capabilities. Check AWS's compatibility documentation for the specific operators and features your application uses.
Choose DocumentDB when your workload uses the core MongoDB API without advanced features, you want everything inside AWS with IAM, CloudWatch, VPC, and consolidated billing, you have AWS credits or commitments to consume, and you are not planning to leave AWS. It is a good fit for straightforward document storage behind AWS-native applications.
Choose Atlas when you need full MongoDB compatibility, the latest MongoDB features, Atlas Search or Vector Search, time-series collections, multi-cloud or multi-region deployment, or predictable pricing that includes high availability. It is the right choice for applications built on MongoDB's feature set rather than only its query API.
Both directions are possible, but not equally easy. Because DocumentDB emulates a subset of MongoDB, applications built on it generally move to Atlas with little change. Moving from MongoDB to DocumentDB requires testing every feature and operator the application uses against DocumentDB's compatibility list, and applications using unsupported features need rework. AWS Database Migration Service supports DocumentDB as a target.