When a self-hosted MongoDB Atlas alternative makes sense
MongoDB Atlas is MongoDB's managed database service, and FerretDB is an Apache-2.0 project that speaks the MongoDB 5.0+ wire protocol and stores data in PostgreSQL with the DocumentDB extension. You are probably reading this because an Atlas renewal or pricing change has forced a review, a data residency rule requires operational data to stay in a facility you control, or your security team wants the database running inside your own cloud account or data center. A self-hosted FerretDB setup fits when your application already uses MongoDB drivers, your queries rely on the basic document operations FerretDB supports, and your organization can run PostgreSQL with its existing backup, patching and monitoring practices. Atlas remains the better fit when you want MongoDB to operate the service, when you depend on MongoDB-specific features outside FerretDB's current coverage, or when no one on your team wants to own a database platform.
The decision turns on three checks. First, inventory the MongoDB commands your application and its drivers actually send, including those issued by ORMs, background jobs and admin scripts, and compare them against FerretDB's compatibility list. Second, determine whether you need multi-document transactions or bulkWrite, because FerretDB's compatibility documentation lists commitTransaction and abortTransaction as not implemented yet, along with bulkWrite. Third, confirm that your team is comfortable operating PostgreSQL, including replication, point-in-time recovery and major version upgrades, since that work moves from MongoDB's managed service to your staff. Treat the answers to these checks as the input to a written test plan rather than a verdict, and confirm current command coverage against the FerretDB release you intend to deploy.
Which option fits each scenario
This table maps common application and team situations to the better fit between MongoDB Atlas and self-hosted FerretDB on PostgreSQL. Read each row against your own workload, and treat the condition in the middle column as the test that decides the choice.
| Scenario | Better fit | Why |
|---|---|---|
| CRUD-heavy application using only find, insert, update, delete, aggregate, count, distinct or findAndModify | FerretDB on PostgreSQL | The application stays within FerretDB's documented supported command list, so a driver-level test run can confirm compatibility before any data moves. |
| Application depends on multi-document transactions (abortTransaction, commitTransaction) or bulkWrite | MongoDB Atlas | FerretDB's compatibility documentation lists these commands as not implemented yet, so the workload would need redesign before it could run on FerretDB. |
| Team already runs PostgreSQL well and wants one database engine to back, monitor and restore | FerretDB on PostgreSQL | Backups, replication, upgrades and access control follow PostgreSQL practice your team already operates, though FerretDB adds its own layer to test. |
| Application uses role management (createRole, rolesInfo) or needs MongoDB-specific features and vendor support | MongoDB Atlas | Role management commands are not implemented in FerretDB, and the vendor support path exists only with MongoDB. Confirm each feature your application uses against the compatibility list first. |
| Data residency requirement where administrators and operational data must remain under the organization's control | FerretDB on PostgreSQL | Self-hosting places the servers, database administrators and backup copies inside infrastructure the organization runs, which is the core of the requirement. Confirm the target region and the operating model with your legal team. |
| Team wants a managed MongoDB service and is comfortable with vendor-operated upgrades | MongoDB Atlas | Atlas removes the operational work of patching, failover and backups. Ask your own team how much of that work it can absorb before choosing self-hosting. |
| Application requires exact MongoDB error messages in its logic | MongoDB Atlas | FerretDB matches MongoDB error names and codes, but exact messages may differ, so code that parses message text needs testing or should stay on MongoDB. |
Which applications should stay on MongoDB
Applications that only issue aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore are the strongest candidates for FerretDB. FerretDB's compatibility documentation lists these commands as supported, and it states that drivers and applications compatible with MongoDB 5.0+ should work. Even so, the team should not assume a clean run means production readiness, because the application's exact query shapes, indexes and error handling are what matter.
- Command inventory: Log every command your driver sends for a representative week of traffic, then match each one against the compatibility list.
- Aggregation pipelines: Run each pipeline stage your application uses against a FerretDB copy with production-like data volumes.
- Error handling: Confirm that code branching on error names or codes still works, since FerretDB matches MongoDB's names and codes but its message text may differ.
- Collection naming: Check that all collection names are valid UTF-8.
- Driver version: Test with the exact driver version in production, not only the latest one.
Before deciding, ask your application team to confirm that no code parses error message text and that every pipeline has passed in a staging environment.
Applications that open multi-document transactions need closer scrutiny. FerretDB's compatibility documentation lists abortTransaction and commitTransaction as not implemented yet, so any code path that depends on atomic writes across several documents cannot run unchanged. Teams in this category should either redesign those paths, keep them on MongoDB, or confirm current support in FerretDB's release notes before committing to a migration.
- Transaction inventory: Find every session and transaction call in the codebase, including those inside libraries and frameworks.
- Retry logic: Check how the application handles transient transaction errors, since a retry loop written for MongoDB may never succeed against an unsupported command.
- Business invariants: Identify which data consistency rules rely on transactions, such as debits and credits or inventory counts.
- Redesign options: Consider whether single-document atomic updates or PostgreSQL transactions behind a service boundary can replace the MongoDB transaction.
- Version check: Re-test against each FerretDB and DocumentDB release, because support status can change between versions.
Before deciding, ask the application owner to list every workflow that writes to more than one document in a single unit of work.
Two groups of commands are explicitly marked as not implemented: bulkWrite, and role management commands such as createRole and rolesInfo. Applications that issue bulk operations through bulkWrite will need code changes, typically moving to the supported insert, update and delete commands. Applications or operations tooling that create and inspect database roles through MongoDB commands will need access control to be handled another way, such as PostgreSQL roles and the access controls described in FerretDB's documentation.
- Bulk write usage: Search the codebase and job schedulers for bulkWrite calls, including ORM or ODM layers that generate them internally.
- Rewrite cost: Estimate how many call sites change if bulk operations are split into supported commands, and test throughput after the change.
- Role scripts: Review provisioning scripts, infrastructure code and runbooks for createRole, rolesInfo and related commands.
- Access model: Map existing MongoDB roles to the access model you will use on PostgreSQL, and confirm it with your security team.
- Audit trail: Confirm that privileged changes are still logged in a form your auditors accept.
Before deciding, ask your security and platform teams to confirm who creates and reviews database roles today and how that work moves.
Some MongoDB features fall outside the commands FerretDB's compatibility documentation describes, including administrative commands such as killOp, shutdown and profile, along with any feature not named in that documentation. Applications that rely on these features, or on server behavior that the documentation does not cover, should be treated as unproven until tested. A short list of supported commands does not show that every operator, option or edge case behaves the same way.
- Unlisted commands: Compare the command names in your traces against the compatibility list, and flag anything absent or marked as not implemented.
- Operators and options: Test query operators, index types and write concerns that your application uses, not just the command names.
- Operational tooling: Check whether monitoring, backup or maintenance scripts call commands such as profile or killOp.
- Client libraries: Confirm that the driver and any ODM you use work with FerretDB, not only with MongoDB.
- Vendor confirmation: Where something matters but is not documented, ask the FerretDB project or test it in a staging environment rather than assuming support.
Before deciding, ask for a written list of every command and option your application and tooling depend on, and mark each as tested, unsupported or unknown.
How MongoDB Atlas and FerretDB compare on capabilities
This table compares MongoDB Atlas with self-hosted FerretDB on wire compatibility, command coverage, underlying engine, licensing and managed options. Read the rows marked as unimplemented commands first, since they decide whether your application can move without code changes. Where a capability is not covered by the researched facts, the cell tells you what to confirm with the vendor.
| Capability | MongoDB Atlas | FerretDB on PostgreSQL |
|---|---|---|
| Wire protocol compatibility | MongoDB server API, the native driver target for Atlas clusters | Speaks the MongoDB 5.0+ wire protocol, so drivers for that range should connect |
| Supported commands | Full MongoDB command set, as documented by MongoDB | aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore |
| Commands not yet implemented | Available, subject to your Atlas tier and cluster type | abortTransaction, commitTransaction, bulkWrite, killOp, shutdown, profile, createRole and rolesInfo |
| Transactions | Supported on Atlas, confirm the exact behavior for your cluster version | Commit and abort transaction commands are not implemented yet, so transactional code paths need redesign or testing |
| Underlying engine | MongoDB-operated storage engine on infrastructure run by MongoDB | PostgreSQL with the DocumentDB extension, operated by your team |
| Server license | Atlas is a hosted service; self-managed MongoDB server releases after October 16, 2018 use SSPL v1.0 | FerretDB is licensed under Apache-2.0 |
| Latest release | Confirm the current Atlas version and its support window in the Atlas console | v2.7.0, published November 10, 2025, paired with DocumentDB v0.107.0-ferretdb-2.7.0 |
| Managed options | MongoDB operates Atlas across hyperscaler regions | FerretDB Cloud, plus providers Civo, Tembo, Elestio and Cozystack named in the FerretDB README |
Where FerretDB's command coverage stops today
FerretDB's compatibility claim covers drivers and applications that work with MongoDB 5.0 and later, but the implemented command list is much narrower than the MongoDB surface. The supported commands are aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore. Two gaps matter most for write-heavy code. abortTransaction, commitTransaction and bulkWrite are not implemented yet, so any unit of work that wraps several documents in a transaction, or that sends batched writes through bulkWrite, will fail at that point. Plan to rewrite those paths to use single-document operations, or move the multi-document logic into PostgreSQL functions that your team designs and tests. Check the FerretDB compatibility documentation for the current list before you scope the work.
Role management is the second gap. createRole and rolesInfo are not implemented, and the same applies to other administrative commands on the not-implemented list, including killOp, profile and shutdown. In practice, your application cannot create or inspect MongoDB roles through the driver, so the process that creates database users must change. Many Atlas teams create users and custom roles in the Atlas interface or through its API. On FerretDB, access is governed by PostgreSQL, so your database administrators should decide which application identity connects, with what privileges, and how credentials are rotated. Confirm whether user creation commands are available in your target version before you write the provisioning runbook, because they do not appear on the supported list.
Two checks apply to every application. First, collection names must be valid UTF-8, so audit any names generated from user input or imported from legacy systems before migration. Second, FerretDB matches MongoDB's error names and codes, but exact error messages may differ. Any code that parses message text to decide retries, duplicate key handling or validation feedback needs a test against FerretDB. The decision step is straightforward: run your application's own test suite against a FerretDB instance, including transaction paths, batched writes, administrative scripts and error handling, and record each failure. Treat an empty failure list as the entry condition for a pilot, which still needs load and failover testing.
Who controls the data, the hosts and the access
Moving from MongoDB Atlas to FerretDB changes who runs the database, where the data sits and who can reach it. Each card below covers one decision that your security, compliance and legal teams will need to answer before cutover, and each one has a check you can run in your own environment.
Where the data sits
Atlas clusters run in cloud regions that MongoDB operates, so your data location is set by the region you select within its service. With FerretDB, the data lives in PostgreSQL on servers or cloud accounts you choose, including an EU data center or an air-gapped network. Confirm which regions and facilities your residency rules allow, where backups are copied, and whether any log or telemetry stream leaves your boundary.
Hosting models
You can run FerretDB yourself, use FerretDB Cloud, which is FerretDB's own managed service, or choose a third-party managed provider. The README names Civo, Tembo, Elestio and Cozystack as managed FerretDB hosts. Each option moves a different share of patching, backup and access control to someone else, so ask each provider which party holds the database administrator role and where its operators are located.
FerretDB repositoryIdentity and database access
Atlas administration runs through MongoDB's own console, with its SSO and organization settings. FerretDB inherits its authentication from PostgreSQL, which supports SCRAM, certificate, LDAP, GSSAPI, SSPI, RADIUS, PAM and OAuth methods. Map each application user and administrator to a named role, disable MD5 password authentication, and confirm that role management commands such as createRole are not part of your application path, since FerretDB does not implement them yet.
PostgreSQL authentication docsAudit and compliance evidence
Your assessor will ask for evidence of who accessed the database, what changed and how backups are tested. With Atlas, much of the infrastructure evidence comes from MongoDB's own reports. With self-hosted FerretDB, you must build and retain PostgreSQL logging, access reviews, change records and restore tests yourself. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the audit reports and attestations.
Licensing of the server software
MongoDB's server and tools released after October 16, 2018 are licensed under the Server Side Public License (SSPL) v1.0, so self-managing MongoDB brings SSPL obligations that your legal team should review before you rely on it as a service. FerretDB is Apache-2.0 and PostgreSQL uses the PostgreSQL License, both permissive. Confirm the license for each component you run, including the DocumentDB extension, before you document the stack for procurement.
MongoDB licensing pageWhat a self-hosted FerretDB bill contains
The Atlas bill bundles several charges: the managed service fee for the cluster tier you select, storage and backup charges that MongoDB sets on its own pricing page, and a support tier that is bought separately. Confirm each of these against current MongoDB pricing and your selected cluster shape before comparing, because storage and backup charges scale with data volume and retention rather than with compute alone. Ask your account team which of these items change when you add replicas, extend backup retention or move to a different region.
The self-hosted FerretDB bill has no single line item, so split it into components you can price. Database servers and storage come first, sized for the PostgreSQL primary, its hot standby servers and their replication traffic. Your choice between synchronous and asynchronous replication changes both the write latency your application sees and the number of standbys you need. PostgreSQL does not supply automatic failover, so budget for an external failover tool and the on-call time to operate it. Add PgBouncer for connection pooling, backup storage with point-in-time recovery through continuous archiving, and monitoring. Each of these recurs every month.
Some costs are one-time engineering work: testing your application's commands against FerretDB's compatibility list, the mongodump and mongorestore migration, cutover, and hardening. Recurring costs include infrastructure, patching and minor PostgreSQL updates, major version upgrades, and on-call coverage. When you request a quote, ask for each component as a separate line with its one-time or recurring status, the assumed data volume and replica count, the failover tool and who operates it, the backup retention and restore test schedule, and the support model after cutover. Ask which items are priced per year and which are priced per engagement.
What moving off MongoDB Atlas involves
The sequence takes a workload from Atlas to a self-hosted FerretDB service on PostgreSQL in a staged way, so each step has a checkable output and the Atlas cluster stays available until the new stack has been proven against your data.
Inventory every command the application issues
Your developers or platform team list the MongoDB operations the application uses, including aggregation stages, updates, index operations, transactions and any administrative calls made from code or scripts. Compare that list with FerretDB's compatibility documentation, which lists supported commands such as find, insert, update, aggregate and findAndModify, and flags unimplemented ones such as bulkWrite, abortTransaction and commitTransaction, and role management commands. Done when every command is marked supported, rewritten or blocking, with an owner for each blocking item.
Test the application against FerretDB
Run the application's integration tests and representative queries against a FerretDB instance you control, not the ferretdb-eval image, which bundles PostgreSQL with DocumentDB and mongosh but loses data on shutdown and is not for production. Check error handling as well, since FerretDB matches MongoDB error names and codes but exact error messages may differ, and confirm that collection names are valid UTF-8. Done when the test suite passes or each failure has a documented workaround agreed with the application owner.
Pin matching FerretDB and DocumentDB versions
Select a FerretDB 2.x release and the DocumentDB extension version that the FerretDB releases page pairs with it. As supplied, FerretDB v2.7.0, published November 10, 2025, works with DocumentDB v0.107.0-ferretdb-2.7.0, and each 2.x release requires its matching DocumentDB version. Record both versions in your deployment configuration and change-control record. Done when the staging and production hosts report the same pair and the versions are written into the runbook.
Build the PostgreSQL target with backups and replication
Your infrastructure or database team provisions the PostgreSQL server that hosts the DocumentDB engine, with continuous archiving and point-in-time recovery configured, a standby for read-only or failover needs, and an external tool for automatic failover, since PostgreSQL does not detect primary failure on its own. Confirm the PostgreSQL major version is still supported on the vendor's versioning schedule. Done when a test restore from backup has been completed and the failover procedure has been rehearsed.
Export from Atlas and restore into FerretDB
Run mongodump against the Atlas source to produce BSON files per collection, then run mongorestore against the FerretDB connection URI. If a collection needs a different path, FerretDB also documents mongoexport and mongoimport collection by collection. Keep the dump files in encrypted storage under your own control and record the Atlas snapshot time. Done when each database restores without errors and the restore log is archived with the change record.
Validate counts, indexes and sample documents
Compare document counts per collection between Atlas and FerretDB, confirm that every index your queries depend on exists and is used, and check a sample of documents field by field, including dates, binary data and nested arrays. Run the most important application queries against both systems and compare the results. Done when the counts and sample checks match, and any index or type difference has an agreed fix.
Run a staged cutover and switch connection strings
Route a limited set of application instances or a non-critical service to FerretDB first, while Atlas stays live for the rest. Keep writes flowing to one system at a time, and plan how changes made after the restore point will be reconciled before the full switch. Once monitoring shows stable error rates and latency, change the connection strings for the remaining services and record the change window. Done when all services use the FerretDB URI and the cutover log shows no open data gaps.
Retire the Atlas cluster after the retention period
Keep the Atlas cluster and the export files for a retention period that your compliance and data governance owners set in writing, then delete the cluster and confirm the deletion in the Atlas console. Revoke Atlas API keys and database users, and remove stored Atlas connection strings from secrets stores. Done when the retention period has ended, the deletion is recorded and the access removal is verified.
How the application, FerretDB and PostgreSQL fit together
The request starts in your application, which keeps its existing MongoDB driver and connects to FerretDB over the MongoDB wire protocol. FerretDB translates each supported command into SQL and runs it against PostgreSQL with the DocumentDB extension, and a standby replica, backups and monitoring sit around that database. The trust boundary marks the parts your team owns inside your network: admin accounts, TLS settings and backup encryption. Check each hand-off, especially the TLS and credential settings on the driver-to-FerretDB and FerretDB-to-PostgreSQL links.
Self-hosted request path, with the trust boundary around the components your team operates.
What buyers ask before choosing FerretDB over Atlas
How much effort does moving from Atlas to FerretDB take?
The effort depends mostly on how much of the MongoDB command surface your applications use, how much data you move, how many applications connect, and whether they rely on multi-document transactions. FerretDB implements the commands used for common reads and writes, including find, insert, update, delete, aggregate and findAndModify, but abortTransaction, commitTransaction, bulkWrite and role management commands such as createRole and rolesInfo are not implemented yet. Applications that use those features need code changes or a different design before the move. Ask DeployOpen or your own engineers to inventory every driver call per application first, because that inventory sets most of the scope.
How long does a FerretDB migration take?
No duration can be stated in general, because it follows from the scope agreed in writing before work starts. The schedule is shaped by the number of applications, the volume of data, the amount of testing needed against FerretDB's compatibility list, and how many cutover windows your change process allows. DeployOpen delivers most engagements as fixed-scope work, so the timeline is written into the scope document with its deliverables. Ask for the milestones, the test cases covered, and the rollback plan as part of that document.
What does the client team need to provide for the move?
The work needs named owners on the client side for four areas: the database platform, network and firewall changes, identity and access, and the application code that holds the MongoDB driver connection strings. Each owner approves changes in their area. The team also needs access to a test environment where application test suites can run against FerretDB before any production data moves. Without that environment, compatibility problems surface during cutover instead of during testing, so confirm early that it exists and who can change it.
Can an internal team migrate to FerretDB without a partner?
An internal team can do it if it has people who operate PostgreSQL, who can test and restore backups, and who know the MongoDB driver used by each application. The work includes running mongodump against the source, restoring with mongorestore against the FerretDB URI, checking results, and matching the FerretDB release to its DocumentDB extension version. Skills in PostgreSQL operations, backup restore testing and driver behavior are the ones most often missing. Be honest with yourself about those gaps, and ask a partner to fill only the parts your team cannot cover.
Do PostgreSQL upgrade paths reduce long-term operating effort?
Yes, because the database under FerretDB is PostgreSQL, so the upgrade tools are the ones PostgreSQL documents. Minor releases replace executables and restart the server, since they never change the storage format. For major upgrades, teams can use pg_dumpall and restore, pg_upgrade, or logical replication, and logical replication works between different major versions with only several seconds of downtime. PostgreSQL 18 pg_upgrade keeps planner statistics across the upgrade. Confirm the FerretDB and DocumentDB versions you run support the PostgreSQL major version you plan to use, because each FerretDB 2.x release requires a matching DocumentDB version.
What does a FerretDB support retainer cover?
A support retainer covers ongoing work after the migration, such as upgrades, continuous testing and operational support for the self-hosted platform. DeployOpen offers ongoing support, upgrades and continuous testing as retainers, and the exact coverage is set in a written agreement. Ask for the response expectations, the upgrade cadence for FerretDB and DocumentDB, how new application releases are tested against the compatibility list, and who handles backup restore tests. Compare that scope with what your own team already runs.
Which applications should stay on MongoDB instead of moving?
Applications that depend on multi-document transactions, bulkWrite, killOp, profile or role management are the first candidates to keep on MongoDB or to redesign before moving. Applications that rely on exact error messages may also need review, since FerretDB matches error names and codes but exact messages may differ. Check that collection names are valid UTF-8. Keeping one or two applications on MongoDB while others move to FerretDB is a valid outcome, and the scope document should name each application and its decision.
How DeployOpen helps evaluate, implement and migrate
DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up and documents self-hosted open-source platforms inside your own infrastructure. For MongoDB Atlas vs FerretDB, the work starts with testing your application's commands against FerretDB's compatibility list, then builds and hands over a PostgreSQL-backed FerretDB setup your team can operate.
How we scope
- Inventory the MongoDB commands, drivers and transaction patterns your applications actually use before deciding on FerretDB.
- Agree in writing which workloads move, which stay on MongoDB, and what counts as a successful cutover.
- Confirm the target cloud accounts, data center or air-gapped network where PostgreSQL and FerretDB will run.
How we build
- Deploy FerretDB with a matching DocumentDB extension version on PostgreSQL, with SSO, access control and audit logging configured.
- Test application workflows against FerretDB, including unsupported commands such as multi-document transactions and bulkWrite.
- Rehearse the dump and restore path with mongodump and mongorestore, and check collection-level results before any production move.
How we hand over
- Deliver architecture notes, runbooks for PostgreSQL backups and point-in-time recovery, and a record of tested commands.
- Document the version pairing rules so future FerretDB 2.x upgrades keep the DocumentDB extension matched.
- Walk your database, security and compliance teams through the controls and evidence they will review.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Quotes follow from the written scope, so ask for line items covering build, testing, migration and retainer effort.

