Move from Amazon DocumentDB to MongoDB when compatibility limits start to bite
Amazon DocumentDB is compatible with the MongoDB 3.6, 4.0, 5.0 and 8.0 APIs, but compatibility is not the same as being MongoDB, and AWS lists what it leaves out (AWS docs, checked 23 Nov 2026). Capped collections, hashed indexes, the $where operator and the $unionWith stage are each marked unsupported, mapReduce and $facet appear only in the 8.0 column, and change streams are not available on elastic clusters. An insurer with claims documents, rating rules and reporting pipelines tends to find these limits one query at a time. The way out is to inventory every operator and index the application uses, run the same inventory against a real MongoDB, and move with both sides live. OSStend does that inventory, builds MongoDB in your AWS account and runs the cutover and the cluster afterwards. The first job is not the copy. It is finding the queries that behave differently.
45 minutes with an engineer: we review your workload and sketch the design.
- ✓DocumentDB
- ✓MongoDB
- ✓Insurance
- Source
- Amazon DocumentDB cluster
- Target
- MongoDB replica set in the same AWS account
- Method
- Operator inventory, then change stream or dual write
- Downtime
- A short write pause at cutover
- Runs where
- Your AWS account, same region
Typical situation
Trigger. New reporting queries use stages and indexes DocumentDB does not list as supported, and workarounds are piling up in the code.
Versions. DocumentDB on the 5.0 or 8.0 API; MongoDB on a current major version in the same AWS region.
- Audit trail on claims data
- AWS account and region must not change
- Moves in a quarter-end freeze window
A typical situation, not a named customer.
To leave DocumentDB for MongoDB, inventory the operators, indexes and drivers in use, test them against MongoDB, replicate with a change stream or dual write, then cut over. OSStend runs the inventory, builds MongoDB in your AWS account, owns the cutover and runs it 24/7. AWS lists the unsupported features, so the inventory is a document check first.
Customers
Partners
- PostgreSQL
- MySQL
- MongoDB
- Redis
Valkey
- OpenSearch
- Kafka
- RabbitMQ
- AWS
- Google Cloud
- Azure
- Kubernetes
- OpenShift
- Prometheus
- Grafana
- Datadog
- Dynatrace
- Splunk
What OSStend runs and what you keep
OSStend engineers design, move and run the cluster; you keep the application, the data and the decisions about it. The split below is what is set in the design you sign off, and it is written into the contract.
| Area | OSStend | You |
|---|---|---|
| Compatibility inventory | Lists operators, stages, indexes and driver options in use | Provides code access and query logs |
| Target design | Sizes MongoDB, sets topology and backups | Approves and owns the AWS account |
| Replication | Runs the copy and the change stream or dual write | Ships dual-write code if chosen |
| Cutover | Owns the runbook and the freeze window | Switches connection strings |
| Backups and audit | Schedules backups and keeps the audit trail | Defines retention rules |
| Run | Upgrades, alerting, 24/7 response | Owns schema and queries |
Where it can run
Because DocumentDB is an AWS service, a move often stays in AWS. MongoDB runs in your AWS account, or in OSStend's cloud or your data center if other rules apply.
| Option | When it fits | Licence and source |
|---|---|---|
| Our cloud | An insurer that wants no AWS account work for the database | MongoDB Community Server is published under the Server Side Public License (MongoDB, checked 31 Oct 2026). OSStend runs MongoDB in its own cloud, in your cloud account or in your data center. |
| Your cloud account | Data, network and audit must stay in your AWS account and region | Same licence note; infrastructure on your AWS bill |
| Your data center | Core claims systems already on site | Same licence note |
Licence placement comes from the OSStend licensing review, 19 Nov 2026. This table is not legal advice.
How the move works
The inventory comes first because it decides whether the move is small or large. Times are typical and agreed up front.
Compatibility inventory, 1 to 2 weeks
Compare every operator, stage and index in your code and logs with the AWS list, and mark each as same or different.
Target build, 1 week
Build MongoDB in your AWS account with private networking, encryption and backups.
Copy and follow, 2 to 4 weeks
Copy collections, then follow changes by change stream or dual write, and verify counts and checksums.
Query comparison, 1 to 2 weeks
Run production queries on both sides and compare results and plans.
Cutover, 1 day
Pause writes, confirm lag is zero, switch the connection string and keep DocumentDB read-only as a fallback.
Cost basis
DocumentDB publishes instance, storage and I/O rates. The example shows the listed lines for the one instance type the page prices, so you can compare the shape of the bill, not a full total.
| DocumentDB line, US East | Standard | I/O-Optimized |
|---|---|---|
| db.r5.large instance, per hour | $0.277 | $0.3047 |
| Database storage, per GB-month | $0.10 | $0.30 |
| Database I/O, per million | $0.20 | Included |
| Elastic cluster, per vCPU-hour | $0.132 | Not listed |
Source: AWS DocumentDB pricing, US East (N. Virginia), checked 23 Nov 2026. The page prices only db.r5.large among instances; larger classes are on the AWS calculator.
OSStend's own price is quoted per design after a 45-minute workload review. It depends on the node design, the service level tier and where the cluster runs; see pricing.
What we watch on call
Mixed periods, when both databases run, create their own failure patterns. These are the ones we watch.
- Dual-write drift.
- A write that lands on one side only; a reconciliation job counts and checksums continuously.
- Change stream resume gaps.
- If the stream falls behind the oplog window it cannot resume, so we alert on lag against the window.
- Different default behaviour.
- Index builds or sort memory limits that differ between engines show up as new slow queries.
- Driver options.
- Retry and write concern settings that behave differently on the target.
- Audit trail breaks.
- Audit events must continue across the cutover without a gap.
- Cost of running both.
- Duplicate infrastructure is time-boxed and tracked.
When OSStend is not the right fit
The move fits when compatibility gaps cost engineering time. It does not when the application sits well inside DocumentDB's supported list.
Contact us if
- ✓Queries need stages or indexes DocumentDB lists as unsupported.
- ✓You want MongoDB in the same AWS account and region.
- ✓You accept a month or two of two databases running.
Not a fit if
- ✕The app runs fine on DocumentDB and the bill is acceptable.
- ✕You want a no-operations service from AWS only.
- ✕You cannot run two systems in parallel.
Questions buyers ask
Short answers to the questions that come up most on this kind of move. Each can be checked against the sources linked above.
Which DocumentDB limits matter most?
That depends on your queries. AWS lists unsupported items such as capped collections, hashed indexes and $where in its API support tables.
Is it a one-to-one copy?
Data copies cleanly. Behaviour is what needs testing, which is why the inventory comes first.
Can we keep AWS and still leave DocumentDB?
Yes. MongoDB runs in your AWS account; see BYOC multi-cloud.
Does this need an Atlas step?
No. Atlas is a separate service; see Atlas alternatives if you also run it.
Related pages
- PricingDatabase as a service pricing: dedicated, tailoredDatabase as a service pricing from OSStend: dedicated, tailored clusters priced by engine, size, SLA tier and location. Enterprise only, with no free tier.
- Deployment · Your cloud accountBring your own cloud (BYOC) managed databasesBring your own cloud with OSStend: engineers run PostgreSQL, Kafka and more inside your AWS, Azure or Google Cloud account, so data and billing stay yours.
- AlternativeMongoDB Atlas pricing and alternatives in 2027MongoDB Atlas pricing and alternatives: Atlas list prices, and managed MongoDB in OSStend's cloud, your cloud or your data center, with the migration run for you.
Run your DocumentDB inventory with an engineer
Bring the API version and a sample of queries. An engineer will tell you in 45 minutes how large the gap is.
- ✓A design sketch for your workload, not a plan menu
- ✓A zero-downtime cutover path for what you run today
- ✓A price for that design, after the review





