Use case

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

  • Microsoft logo
  • Henry Schein logo
  • Enbridge logo
  • Gojek logo

Partners

  • Broadcom logo
  • Redis logo
  • VMware Tanzu logo
  • OSSeva logo
160+Enterprise customers
10+Years running these systems
24/7Engineers on call
3Places it runs: our cloud, yours, your data center
Engines we run, on the platforms you already use
  • PostgreSQL
  • MySQL
  • MongoDB
  • Redis
  • Valkey
  • OpenSearch
  • Kafka
  • RabbitMQ
  • AWS
  • Google Cloud
  • Azure
  • Kubernetes
  • OpenShift
  • Prometheus
  • Grafana
  • Datadog
  • Dynatrace
  • Splunk
Compare

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.

AreaOSStendYou
Compatibility inventoryLists operators, stages, indexes and driver options in useProvides code access and query logs
Target designSizes MongoDB, sets topology and backupsApproves and owns the AWS account
ReplicationRuns the copy and the change stream or dual writeShips dual-write code if chosen
CutoverOwns the runbook and the freeze windowSwitches connection strings
Backups and auditSchedules backups and keeps the audit trailDefines retention rules
RunUpgrades, alerting, 24/7 responseOwns 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.

OptionWhen it fitsLicence and source
Our cloudAn insurer that wants no AWS account work for the databaseMongoDB 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 accountData, network and audit must stay in your AWS account and regionSame licence note; infrastructure on your AWS bill
Your data centerCore claims systems already on siteSame licence note

Licence placement comes from the OSStend licensing review, 19 Nov 2026. This table is not legal advice.

How it works

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.

  1. 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.

  2. Target build, 1 week

    Build MongoDB in your AWS account with private networking, encryption and backups.

  3. Copy and follow, 2 to 4 weeks

    Copy collections, then follow changes by change stream or dual write, and verify counts and checksums.

  4. Query comparison, 1 to 2 weeks

    Run production queries on both sides and compare results and plans.

  5. 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 EastStandardI/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.20Included
Elastic cluster, per vCPU-hour$0.132Not 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.
Enterprise only

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.
Talk to an engineer

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.
FAQ

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.

Talk to an engineer →

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.

Talk to an engineer

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
See pricing →

Your request goes to the OSStend team. No newsletter sign-up.

Get a quoteTalk to an engineer
2Engines Optional
3Where should it run?
4What do you need?

Your request goes to the OSStend team. No newsletter sign-up.