# Choose your MongoDB-compatible database

> Compare DocumentDB and FerretDB for MongoDB-compatible workloads. See current Layerbase availability, choose an engine, and check application compatibility.

Canonical: https://layerbase.com/db/mongodb
Last updated: 2026-10-22

Compare DocumentDB and FerretDB, two distinct open-source alternatives. Choose explicitly before creating a database.

## Key facts

| Fact | Value |
| --- | --- |
| Engine | MongoDB-compatible databases |
| Category | Document |
| Upstream project | [MongoDB](https://www.mongodb.com/) |
| Layerbase Cloud | Yes |
| Layerbase Desktop | Yes |
| SpinDB (local CLI) | Yes |
| Best for | Developers choosing a MongoDB-compatible hosted database. |

## MongoDB-compatible options

| Engine | Default version | Minimum plan | Branching | License | About |
| --- | --- | --- | --- | --- | --- |
| DocumentDB | 1.0.0 | Free ($0/mo) | Yes | MIT | Originally created by Microsoft and now a Linux Foundation project. Its own MongoDB-compatible gateway runs on PostgreSQL-based document storage. |
| FerretDB | 2.7 | Solo ($5/mo) | Yes | Apache 2.0 | An independent open-source MongoDB alternative. FerretDB 2 uses PostgreSQL with the DocumentDB extension and its own MongoDB-compatible interface. |

## Use cases

- Evaluate MongoDB-compatible engines
- Choose a document database for an application

## Common MongoDB-compatible databases questions

### Does Layerbase host the MongoDB server?

Layerbase Cloud hosts compatible alternatives. The chooser names the actual engine before you create it. Upstream MongoDB runs locally through Desktop and the Layerbase CLI.

### Does choosing DocumentDB convert my FerretDB database?

No. These are separate engines. Existing FerretDB databases remain unchanged; moving data is a separate operation.

### Where does the Atlas importer send my data?

Into a new DocumentDB database by default, or a new FerretDB database if you pick FerretDB as the target before the copy starts. The importer reads Atlas once and never writes to it, and it never converts a database you already have.

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

## Links

- [MongoDB-compatible databases on Layerbase](https://layerbase.com/db/mongodb)
- [Pricing](https://layerbase.com/pricing) (markdown: https://layerbase.com/pricing.md)
