# DocumentDB, a distinct MongoDB-compatible engine

> Explore standalone DocumentDB V1 on Layerbase: Microsoft-origin open-source document storage, its own MongoDB-compatible gateway, and current hosting availability.

Canonical: https://layerbase.com/db/documentdb
Last updated: 2026-11-03

Originally created by Microsoft, now a Linux Foundation project. Its own MongoDB-compatible gateway runs on PostgreSQL-based document storage.

## Key facts

| Fact | Value |
| --- | --- |
| Engine | DocumentDB |
| Category | Document |
| Upstream project | [DocumentDB](https://documentdb.io/) |
| Layerbase Cloud | Yes |
| Free tier | Yes |
| Pricing | Free plan ($0/mo, no credit card), then $5 or $15/mo flat, no meters |
| Default version | 1.0.0 |
| Versions for new databases | 1.0.0 |
| Layerbase Desktop | No |
| SpinDB (local CLI) | No |
| Best for | MongoDB-compatible applications evaluating an open-source document database. |

## Use cases

- Document-shaped application data
- Evaluate MongoDB driver compatibility

## Always on

DocumentDB that never sleeps, from $5/month.

- **Free ($0)**: Sleeps after 15 minutes without a connection and wakes on the next one. It must be asleep at least 25% of every rolling 7-day window, so a deployed app or an uptime monitor cannot keep it awake.
- **Solo ($5/mo)**: Pin DocumentDB to the always-on pool and it never sleeps, so there is no cold start on the first query. A second, unpinned database sleeps after 6 hours idle. Paid databases are never archived.

[Compare plans](https://layerbase.com/pricing)

## Cloud features

| Feature | Available |
| --- | --- |
| Always-on option | Yes |
| TLS encryption | Yes |
| HTTP access | No |
| IP allowlisting | Yes |
| Web query console | Yes |
| Sleeps when idle, wakes on connect | Yes |
| Automatic backups | Yes |
| Pooled connections | No |
| Direct connections | Yes |
| Serverless HTTP driver | No |

## Common DocumentDB questions

### Is hosted DocumentDB available on the Free plan?

Yes. DocumentDB joined the Free plan in November 2026, so you can create one with no card. A free database sleeps when idle and wakes on the next connection. Solo and Pro add an always-on pool and backups every 12 hours.

### Is this Amazon DocumentDB?

No. This is the open-source DocumentDB project originally created by Microsoft. Amazon DocumentDB is a separate AWS service.

### How is this different from FerretDB?

Standalone DocumentDB uses its own gateway. FerretDB is an independent project whose 2.x versions use the DocumentDB PostgreSQL extension with their own protocol interface. Neither product is the MongoDB server itself.

### How does DocumentDB perform compared with FerretDB?

In our October 23, 2026 YCSB run, on matched 4 vCPU / 8 GB instances with a 10 million record dataset, standalone DocumentDB delivered more throughput than FerretDB in all nine workload rows, with the widest lead on read-heavy mixes. FerretDB had the lower update p99 latency in every 50/50 read/update row, most visibly at 256 client threads. It was one run per stack on different PostgreSQL minor versions, so treat it as a starting point and test your own workload. The run page has the methodology, image digests, caveats and every result row, rendered from the downloadable CSV.

[The October 2026 benchmark run](https://layerbase.com/benchmarks/2026-10-23-ferretdb-documentdb)

### Does compatibility mean every MongoDB feature works?

No. Test your queries, indexes, transactions and application against the specific engine and version before moving production data.

### Is there a guided migration from MongoDB Atlas?

Yes, and DocumentDB is its default target. Paste your mongodb+srv:// string and Layerbase copies the collections, documents, and indexes into a new DocumentDB database, reading Atlas once and never writing to it. An index DocumentDB cannot create, such as one with a collation, is skipped and named in the migration report so you can recreate it by hand.

[Migrating from MongoDB Atlas](https://layerbase.com/migrate/mongodb-atlas)

## Links

- [DocumentDB on Layerbase](https://layerbase.com/db/documentdb)
- [Create a DocumentDB database](https://layerbase.com/create/documentdb)
- [Connecting to DocumentDB](https://layerbase.com/docs/cloud/connecting/documentdb)
- [Pricing](https://layerbase.com/pricing) (markdown: https://layerbase.com/pricing.md)
