MongoDB Atlas cost vs self-hosted FerretDB: where the savings and the costs actually sit
Self-hosting FerretDB removes the managed-service fee, but it adds infrastructure, operations, migration and testing work that you must price yourself. That trade decides whether the move saves money, and it usually surfaces when a renewal arrives, a cluster bill keeps growing, or a residency rule forces the data into your own environment. FerretDB is licensed under Apache-2.0 and stores data in PostgreSQL with the DocumentDB extension, so the database engine is one your team may already run. The cost gap depends on three things: workload size, how much availability you need, and how many MongoDB commands your application uses.
The recurring costs sit in servers, storage, backup retention and staff time. You pay for compute and disks for the PostgreSQL primary, at least one standby if you need availability, and backup storage with enough retention to meet your recovery targets. PostgreSQL does not detect a failed primary or promote a standby on its own, so an automatic failover tool and the engineer hours to run it belong in the estimate. Ask your team to size a primary and standby against your current Atlas tier, measure your actual storage growth, and write down who gets paged when a node fails.
The one-time costs are often larger than the first-year infrastructure bill. Before cutover, someone must confirm that every application command is supported, since FerretDB's compatibility documentation lists transactions, bulkWrite and role management as gaps, and then rewrite or redesign those paths. Testing against the DocumentDB version matched to your FerretDB release, the dump and restore rehearsal, and the loss of MongoDB's vendor support all need a budget line. Get written quotes that separate infrastructure, migration scope, testing and ongoing support, so you can compare them with the Atlas invoice line by line.
Which cost components change when you move from Atlas to FerretDB
This table lists each cost component on the Atlas side and the self-hosted FerretDB side, marks whether it is one-time or recurring, and names who is paid for it. Atlas bundles several items into one subscription, while self-hosting splits them into separate lines you must staff, buy or contract. Read the right-hand column to see where your own budget lines appear after the move.
| Cost component | On Atlas (who is paid, one-time or recurring) | On self-hosted FerretDB (who is paid, one-time or recurring) |
|---|---|---|
| Subscription or cluster fee | MongoDB bills the cluster fee, recurring and metered by the tier you choose | No license fee for FerretDB or PostgreSQL, but the infrastructure hosting them is paid to your cloud or data center provider, recurring |
| Database servers and storage | Included in the cluster price, recurring, sized by the tier you pick | Cloud or hardware instances and disks paid to your provider, recurring; sizing is your team's job |
| High availability replicas | Replica members are part of the cluster price, recurring | Standby PostgreSQL servers you buy and run, recurring; PostgreSQL does not detect failure, so an external failover tool is an extra component |
| Backups and restore testing | Managed backup is bundled, recurring; restore capability depends on the plan | Backup storage and tooling paid to your provider or vendor, recurring; restore tests are staff time you must schedule |
| Monitoring and alerting | Bundled dashboards in Atlas, recurring | Self-run monitoring stack and its hosting, recurring; alert rules and on-call coverage are your staff's responsibility |
| Application testing and compatibility work | Usually none beyond normal release testing, one-time for any new feature work | One-time engineering to test your commands against FerretDB's compatibility list, including transactions and bulkWrite, which FerretDB does not yet implement |
| Migration | Not applicable on the Atlas side for the initial setup | One-time work: mongodump, mongorestore, connection string changes and cutover, paid to your staff or an implementation partner |
| Support | Paid to MongoDB under the contract you hold, recurring | Paid to the PostgreSQL and FerretDB communities for free, or to a commercial provider or partner under a contract, recurring; confirm response expectations in writing |
| Upgrades and internal skills | Major and minor upgrades run by MongoDB, recurring in the subscription | Staff time for PostgreSQL minor and major upgrades and FerretDB and DocumentDB version matching, recurring; hiring or training is a separate line |
What moves the cost comparison most
The totals on each side depend on a small set of inputs. Data volume, cluster count, availability targets, backup practice, command coverage and team skills push the comparison in different directions, so the same two options can produce very different results. Check each factor against your own estimate before comparing totals.
Data volume and growth
Atlas bills for the cluster tier, storage and backup storage, so larger datasets raise the managed side directly. On the self-hosted side, storage, memory for the working set and disk I/O on the PostgreSQL servers grow with the data, and you pay for capacity headroom ahead of demand. Ask for the current size, the monthly growth rate and the index size, since indexes often take more space than teams expect. Model storage at the size you will reach in the planning period, not only at today's size.
Cluster count and environments
Each Atlas environment is a separate billed cluster, so development, staging and test copies add to the monthly total. Self-hosted FerretDB can share PostgreSQL infrastructure across environments, but isolation, patching and backup schedules still need separate design. Count every environment that holds production-shaped data, including performance and disaster recovery copies, before comparing. Consolidating environments lowers the self-hosted cost, but it can raise the risk of a test workload affecting production.
Availability and replica count
Atlas replica sets are part of the tier you buy, so higher availability targets mean more nodes billed. A self-hosted high availability design needs at least one standby, synchronous or asynchronous replication, and an external tool to detect primary failure and promote a standby, because PostgreSQL does not provide that detection itself. Each added node adds hardware, licensing if you buy support, and operating time. Confirm the recovery time and data loss targets in writing before pricing the standby design.
PostgreSQL high availability docsBackup retention and restore testing
Atlas backup retention is a billed setting, so keeping longer history or more point-in-time copies raises the managed bill. Self-hosted backups cost storage in another location, tooling such as pgBackRest or Barman, and staff time to run them. The cost that teams most often omit is restore testing: a backup that has never been restored is not yet proof of recovery. Budget for a scheduled restore test, and ask for the restore time you need to meet.
Continuous archiving docsShare of commands FerretDB does not implement
FerretDB does not yet implement several commands, including abortTransaction, commitTransaction, bulkWrite, killOp, shutdown, profile and role management commands such as createRole and rolesInfo. If your application relies on them, the cost moves into code changes, workarounds or staying on MongoDB for those workloads. Count the affected services and endpoints, not only the total number of applications. Test your command list against the compatibility documentation early, because this factor can change the whole decision.
FerretDB compatibility docsSkills already on the team
Teams that already run PostgreSQL in production carry much of the operating load at low extra cost, while teams with only Atlas experience will need training or outside help for backups, failover, upgrades and monitoring. Upgrades and failover tests are recurring work, so skills gaps show up each year, not only during setup. Ask whether your team can cover on-call for the database, and whether the cost of hiring or training is included in your comparison. Count training and support as cost lines, not as free effort.
What a dedicated Atlas cluster bundles that you must rebuild
A managed Atlas cluster bundles operations that a self-hosted FerretDB deployment does not include: provisioning, patching, backups, failover and the on-call work behind them. Before you compare totals, list each of these functions and assign an owner. The layer you would run is FerretDB as a stateless protocol translator in front of PostgreSQL with the DocumentDB extension, so the database work sits in PostgreSQL operations, and that work is the cost you are actually replacing. Confirm with your own platform team which of these tasks they already perform for other PostgreSQL systems, since that shared capacity changes the incremental cost.
The rebuild has five concrete parts. First, PostgreSQL servers sized for your workload, with the DocumentDB extension installed at the version that matches your FerretDB release, since each FerretDB 2.x release requires a matching DocumentDB version. Second, replication: PostgreSQL supports hot standbys and both synchronous and asynchronous replication, but it does not detect a failed primary or promote a standby on its own, so you need an external failover tool and a tested runbook. Third, backups with continuous archiving and point-in-time recovery, plus scheduled restore tests into a separate environment, because an untested backup is not a recovery plan. Fourth, connection pooling with a tool such as PgBouncer. Fifth, monitoring and alerting on both the PostgreSQL and FerretDB layers. Each item needs a named owner and a written test.
The MongoDB support relationship also ends at migration. Atlas support, cluster-level troubleshooting and the vendor's operational guidance do not carry over to FerretDB, which is an Apache-2.0 project with community support. Decide before cutover whether you will rely on in-house PostgreSQL expertise or buy a support contract from a provider of your choice, and ask any provider to confirm in writing which FerretDB and DocumentDB versions they cover, how they handle upgrades that move both together, and what response they commit to. That contract, or the staff who replace it, is a recurring cost to model alongside server and storage expenses.
How to build the comparison with your own numbers
This sequence turns the Atlas bill and a self-hosted FerretDB estimate into a like-for-like comparison, so you can see which costs are one-time, which recur, and where the gaps are before you decide anything.
Inventory collections, data size and write rate
Ask the database owner to list every database and collection in scope, with its logical data size, index size, growth per month and peak and average write rate. Pull these from Atlas metrics or from
db.stats()on the existing deployment. Record which environments are in scope: production, staging, analytics replicas and development clusters, since each one is a separate line in both columns. This step is done when you have one table that lists each environment, its data and index size, and its peak write rate, all from the same date range.Check the commands your application uses
Have the application team list the MongoDB commands and driver features the application calls, including aggregation stages, transactions, bulk writes and any role or user management run from the application. Compare that list against FerretDB's compatibility documentation, which lists supported commands and the ones not implemented yet, such as abortTransaction, commitTransaction and bulkWrite. Mark each item as supported, unsupported, or needing a code change. This step is done when every command has a status, and any unsupported item has an owner and a decision: rewrite, or keep that workload on MongoDB.
Price servers and storage for the chosen topology
Choose the self-hosted topology first, for example a single PostgreSQL primary with FerretDB in front of it, or a primary with standbys, and document its CPU, memory, disk and network needs sized from the inventory. Get quotes or list prices from your cloud provider, colocation provider or hardware vendor for those servers and for the storage tier you need, including IOPS requirements. Separate purchase and setup costs (one-time) from monthly compute, storage and bandwidth (recurring). This step is done when you have a costed bill of materials that matches the topology, with each line labeled one-time or recurring.
Cost replicas, failover and backup storage
Atlas prices high availability and backups as part of the cluster, so the self-hosted side needs the same items priced explicitly. Add the standby servers that match your availability target, the storage for continuous WAL archiving and base backups, and the retention period your policy requires. PostgreSQL provides hot standbys and synchronous or asynchronous replication, but it does not detect a failed primary by itself, so include the tooling and time for automatic failover. Ask your backup vendor or cloud provider for the storage cost per terabyte per month for the retention you chose. This step is done when every standby, backup copy and failover component has a recurring line, and the availability target is written next to it.
Add testing and migration effort
Estimate the work to test the application against FerretDB, run the dump and restore, verify document counts and indexes, and repoint connection strings. Treat this as one-time cost, and record it by role: developers, QA, database engineers and the change owner. Include a dry run against a copy of production data, since FerretDB's own migration guidance starts with a pre-migration testing step. If the inventory shows unsupported commands, add the rewrite cost here. This step is done when each activity has a role, an hour estimate from the people who will do it, and a clear list of what is still open.
Add staff time for operations and upgrades
Recurring operations cost is often the largest line in a self-hosted estimate and the easiest to leave out. List the tasks your team will own every month: patching PostgreSQL minor releases, planning major upgrades on the supported schedule, matching each FerretDB 2.x release to its DocumentDB version, monitoring, backup restore tests, on-call coverage, and access reviews. Convert the expected hours into a monthly figure using your internal loaded rate. Ask whether the team already runs PostgreSQL, since that changes how much new skill is needed. This step is done when each recurring task has a monthly hour estimate and an owner, and the total is in the recurring column.
Request the Atlas invoice for the same workload
Ask your finance or procurement team for the Atlas invoices covering the same environments and the same period you used for the inventory. Break each invoice into cluster compute, storage, backup, data transfer and any support or add-on charges, so the lines match the self-hosted side. If you are pricing a new cluster instead of an existing one, ask MongoDB or your reseller for a quote for the same tier and region, and keep the quote reference. Note any discounts or commitments that apply. This step is done when the Atlas figures sit in the same table as the self-hosted figures, line by line, with the source of each number recorded.
Compare over one period and keep costs separate
Put both sides on the same monthly basis over the same period, and keep one-time costs (migration, testing, hardware purchase, rewrites) in a separate section from recurring costs (compute, storage, replicas, backups, staff time, support). Show the one-time costs as a total and as an amortized figure over the period you choose, but never mix them into the monthly line without saying so. Add a gaps section that lists what Atlas provides that your self-hosted design does not, such as managed upgrades, managed failover, and support from MongoDB. This step is done when a reviewer can trace every number to its source and the comparison states which costs were excluded.
High availability and backups: the cost PostgreSQL does not hide
The cost of running FerretDB on PostgreSQL is less about the database software and more about the high availability and backup machinery you assemble around it. PostgreSQL supports hot standby servers that serve read-only queries, and it offers both synchronous replication, where a commit waits for standbys, and asynchronous replication. What it does not do is detect a failed primary and promote a standby on its own. The PostgreSQL failover documentation is explicit that the server does not provide the software to notice the primary has failed and notify the standby, so automatic failover requires external tooling. Someone must choose that tool, deploy it, configure fencing and split-brain protection, test promotion, and keep it patched. In a managed Atlas cluster, replica set failover is part of the service you already pay for. Self-hosted, it is a recurring operations line item, usually staffed by platform or database engineers, and it should appear in your quote as an explicit deliverable.
Backups are the second recurring driver. PostgreSQL's continuous archiving and point-in-time recovery model combines a base backup with archived write-ahead log, which lets you restore to a chosen moment. That capability costs storage for base backups and WAL retention, object storage or a backup server, monitoring for archive failures, and regular restore drills. Costs rise with write volume, retention period and the number of environments you keep. Because FerretDB stores documents through PostgreSQL, your existing PostgreSQL backup tooling applies, but you must confirm that it captures the DocumentDB schema objects that FerretDB depends on. Ask for a quote that prices the topology (standby count, synchronous or asynchronous mode, failover tool), the archive target, retention, and a documented restore test. Confirm recovery time and recovery point objectives in your own environment, because they depend on your hardware, network and data volume.
How the comparison shifts by workload situation
For a proof of concept, a development environment or a test suite, the largest cost is usually people's time rather than infrastructure. A FerretDB instance on a single PostgreSQL server is cheap to run, but the work of confirming that your application's commands behave the same way is not. Atlas charges for a cluster that sits idle between test runs, while a self-hosted setup can be stopped or sized down when nobody is using it. The question is how much engineering time the compatibility check takes compared with the hosting bill you are trying to avoid.
- Engineering time for compatibility: Map every MongoDB command your application uses against the FerretDB compatibility list. Unsupported commands, such as multi-document transactions, bulkWrite or role management, decide whether this tab even applies.
- Idle capacity: A dedicated Atlas cluster bills while idle. A self-hosted container can be stopped, though you should confirm how your team will rebuild it.
- Eval image limits: The all-in-one
ferretdb-evalimage loses data on shutdown and is not for production. Use it for experiments only, not as a shared test environment. - Data refresh: Copying anonymized data from production into test takes effort each time. Budget that as recurring labor.
- Version pinning: Each FerretDB 2.x release needs a matching DocumentDB version. Pin both in your test environment so results stay repeatable.
Before you commit, confirm the compatibility gaps against your own queries and check whether the team has someone who can operate PostgreSQL.
A single production cluster with a steady workload is the most common case for a direct comparison. Here the recurring costs dominate: the database servers, the storage that grows with retained data, and the second and third copies needed for high availability. Atlas bundles much of this into one monthly line, so the self-hosted total depends on how fully you count the infrastructure and operations work. Your own cost components, not a generic estimate, will decide the outcome.
- Server and storage capacity: Size the primary, the standby replicas and backup storage separately. Storage cost tends to grow with retained history, so ask how long Atlas retains your data and how long you plan to keep yours.
- High availability: PostgreSQL offers hot standby servers and synchronous or asynchronous replication, but it does not detect a primary failure on its own. Automatic failover needs an external tool, and that tool is an extra component to license, run and test.
- Backups and restore tests: Continuous archiving and point-in-time recovery are built into PostgreSQL, but you must configure, monitor and test them. Restore drills take staff time every quarter.
- Connection management: Application connection pools and PgBouncer add a component that needs patching and monitoring.
- Upgrade effort: PostgreSQL releases a major version about once a year. Logical replication can cut major upgrade downtime to several seconds, but the planning still recurs.
Ask your Atlas representative for the exact tier and region you run, and cost the self-hosted side with the same servers, storage and staffing assumptions.
When an organization runs several clusters across environments, business units or regions, or operates under a regulatory framework, the cost picture changes again. Fixed platform work, such as access control, audit logging, evidence collection and documented procedures, is shared across the estate, so it spreads over more workloads. Support is a line item that can grow in importance. Atlas gives you the vendor's operational scope and support, while a self-hosted estate places more of that responsibility with your own teams or a service partner.
- Platform work spread over clusters: SSO, access control, audit logging and backup policy are built once and applied to every cluster. Count that shared effort, not only per-cluster hosting.
- Support and accountability: Ask what support, response commitments and security documentation MongoDB provides for your plan, and compare them with what your internal team or partner will provide in writing.
- Compliance evidence: Your auditors will ask for access reviews, change records and restore test results. Plan who produces that evidence each cycle. An independent auditor or certification body issues any attestation, not the platform.
- Licensing review: Self-managed MongoDB is under the SSPL for releases after October 16, 2018, so legal review may be needed for a self-hosted MongoDB option. FerretDB is Apache-2.0, which simplifies that review.
- Data residency: Where your data and administrators sit can drive hosting choices and the cost of each region.
Confirm with legal and your compliance lead which evidence and support terms the estate requires before you compare totals.
How the self-hosted FerretDB stack fits together
The diagram starts with the application, which keeps its MongoDB driver and points at a connection pooler inside the client's own network. The pooler forwards sessions to FerretDB, which translates MongoDB wire protocol commands into SQL for PostgreSQL with the DocumentDB extension. PostgreSQL writes to a standby through replication, and backups go to a separate target. Failover detection sits outside PostgreSQL, so confirm which external tool your team will run and who operates it.
Application, FerretDB, PostgreSQL replication, backups and the external failover tool inside the client boundary.
Questions buyers ask before they compare costs
How much effort does moving from MongoDB Atlas to FerretDB take?
The effort depends mostly on how much of your application relies on commands FerretDB does not yet implement, not on the data volume alone. FerretDB documents a migration that runs mongodump against the source, restores with mongorestore into the FerretDB URI, and is preceded by a testing step. The main effort drivers are the number of collections, how many application code paths use multi-document transactions, bulkWrite or role management, and how many services hold connection strings that must change. Ask for a written inventory of the MongoDB commands your application uses before you accept any effort estimate, including one from us.
Can our team migrate from Atlas to FerretDB without outside help?
A team with PostgreSQL operations experience and someone who knows the application's MongoDB usage can often run a small, low-risk migration in-house, because FerretDB's documented path uses standard MongoDB tools. The harder parts are validating compatibility, setting up high availability and backups for PostgreSQL, and proving the controls to an auditor. If you lack those skills, an outside team can plan, implement, test and document the work under a fixed scope. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope with deliverables agreed in writing before work starts.
How long does a MongoDB to FerretDB migration project run?
Project length is set by the number of applications to test, the number of unsupported commands you must redesign, the data volume to dump and restore, and how many environments need validation before cutover. Your change window and approval process also add time. No duration is fixed by the researched sources, so treat any number you hear, including ours, as a claim to check against your written scope. Ask the provider for a phased timeline with testing, cutover and rollback milestones, and confirm which of your applications are in the first phase.
What does a migration need from our internal staff?
Staff time goes to four groups: application owners who can list the MongoDB commands and drivers in use, a DBA or platform engineer who will run PostgreSQL with the DocumentDB extension, a security or compliance contact who reviews access control, audit logging and data handling, and someone who controls DNS, secrets and deployment pipelines so connection strings can be switched. Each group is needed for testing and cutover, and most of the time for the operations group continues after go-live. Confirm named owners and their availability in the written scope before work begins.
Does FerretDB support every command our application uses?
No, not necessarily. FerretDB lists aggregate, count, distinct, find, insert, update, delete, findAndModify and getMore as supported commands, but its compatibility documentation lists abortTransaction and commitTransaction, bulkWrite, killOp, shutdown, profile, and role management commands such as createRole and rolesInfo as not implemented yet. FerretDB also states that error names and codes match MongoDB while exact messages may differ, so error handling that parses messages can break. Run your application's full test suite against FerretDB and compare results with the compatibility list before you commit to a cost model.
Which FerretDB and PostgreSQL versions must we match?
Each FerretDB 2.x release requires a matching DocumentDB extension version. The FerretDB GitHub releases page lists v2.7.0 as the latest release, published November 10, 2025, which works with DocumentDB extension v0.107.0-ferretdb-2.7.0. Check that pairing against the release page before installing, since it changes with each release. On the PostgreSQL side, supported major versions are 18, 17, 16, 15 and 14 according to the versioning policy, with 13 and earlier unsupported. Confirm that the PostgreSQL major version you choose is compatible with the DocumentDB build you select.
What does a fixed-scope DeployOpen engagement cover?
A fixed-scope engagement covers the work agreed in writing before it starts, which is typically the scope, deliverables and timeline for the migration. For this kind of project that can include planning, deploying FerretDB and PostgreSQL in your infrastructure, integrating SSO and access control, setting up audit logging and backups, testing application compatibility, supporting cutover and preparing documentation for your compliance team. It does not include audit reports or certifications, which independent auditors and certification bodies issue. Ongoing upgrades and continuous testing are available as retainers, and a quote follows from the written scope.
Confirm these points before you request a quote
Before you ask anyone for a self-hosted quote, pull the Atlas invoice for the same workload and split it into cluster tier, storage, backup and data transfer lines. Compare those lines with the server, storage, replica and backup resources you would run yourself, not with a headline monthly figure. Also confirm the cluster topology you actually use today, including the number of replica set members and whether you rely on any Atlas-only feature. Those details decide which cost components apply to your case, and they are easy to lose once the invoice is summarized.
Next, test your application against FerretDB's compatibility list. Run the commands your code issues, including aggregate, findAndModify and getMore, and check any use of multi-document transactions, bulkWrite, killOp or role management, because FerretDB lists several of these as not implemented yet. Then pick a FerretDB release and confirm the matching DocumentDB extension version, since each 2.x release requires one. Record the PostgreSQL major version you will run, using the supported list in the PostgreSQL versioning policy, so the platform choice is written down rather than assumed.
Finally, state the recovery time and recovery point you need, and who is responsible for failover. PostgreSQL does not detect a primary failure on its own, so automatic failover needs an external tool, and that tool, its testing and its on-call runbook are cost lines to price. Ask every provider for a fixed-scope written statement of work that lists deliverables, responsibilities, acceptance tests and timelines. A written scope lets you compare Atlas, managed FerretDB hosting and an implementation partner on the same terms.
How DeployOpen scopes a fixed-price FerretDB implementation
DeployOpen plans, implements, hardens, backs up and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For MongoDB Atlas cost vs self-hosted FerretDB, the work starts with a written scope that separates the platform cost from the application testing and migration effort, so your team can compare it with its Atlas bill on the same terms.
How we scope
- Inventory the Atlas cluster tiers, replica sets, backup policy and regions you run today before any quote is written.
- List the MongoDB commands and drivers your applications use and check them against FerretDB's compatibility list.
- Agree deliverables, timelines and exclusions in writing before work starts, since most engagements are fixed-scope.
How we build
- Deploy FerretDB 2.x with the matching DocumentDB extension version on PostgreSQL in your infrastructure, with versions pinned.
- Configure replicas, backups and access controls to match the availability and recovery targets your team sets.
- Test application workloads against FerretDB in a non-production environment, recording every command that fails or behaves differently.
How we hand over
- Document the architecture, connection string changes, version pairings and the dump and restore procedure used for migration.
- Run the migration rehearsal with mongodump and mongorestore, and record timings and any data differences observed.
- Deliver runbooks for upgrades, failover and restore tests so your own operations team can run the platform after handover.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, covering FerretDB and PostgreSQL patch releases.
- Ask any provider to state in the quote who maintains the PostgreSQL failover tooling after go-live, since PostgreSQL does not provide it.
- DeployOpen prepares systems and evidence for compliance assessments, but independent auditors issue any audit report or certification.

