FerretDB 2.0: Open Source MongoDB With PostgreSQL Power

A new project from the founders of Percona, FerretDB has set out to offer an open source alternative to the MongoDB NoSQL documented-oriented database system.
FerretDB is not a fork, nor a rewrite of MongoDB. Rather, it is a proxy that converts MongoDB 5.0+ wire protocol queries to SQL. It runs on a stock version of PostGreSQL.
The FerretDB system also can serve as an on-premises alternative for MongoDB-compatible cloud services, notably Microsoft CosmosDB and DynamoDB from Amazon Web Services (Google Cloud itself offers MongoDB Atlas, the commercial cloud version of MongoDB).
On Tuesday, the company released version 2.0 of the open source software, which comes with a considerable performance boost thanks to the inclusion of the DocumentDB extension for PostgreSQL — courtesy of Microsoft — as a database engine.
Also, the DocumentDB extension, which provides support for the BSON (Binary JSON) data type, provides the ability to query document data through SQL.
In effect, FerretDB can turn any Postgres database system into a MongoDB service provider.
Open Source Is Important
FerretDB isn’t designed to serve as a drop-in replacement for all MongoDB instances — especially not for those that utilize the advanced proprietary features — but should work for about 80% of workloads, estimated FerretDB co-founder and CEO Peter Farkas, in an interview with TNS.
It also works with most third-party MongoDB tools and drivers.
Farkas founded FerretDB with Peter Zaitsev and Alexey Palazhchenko. Zaitsev was one of the confounders of Percona, a company that specializes in offer high performance support for databases such as MySQL, MongoDB and ValKey. Palazhchenko and Farkas were also early employees of Percona.
Originally, MongoDB found a home with Web developers as an easy, very scalable, way to store data. Mongo used the more dev-friendly JSON format to store data in a document-oriented model, which is easier to work with than SQL schema-defined columns and rows, especially with complex nested data.
In 2018, MongoDB changed the license of its namesake document store to a more restrictive SSPL license (from GPLv3) largely as an effort to thwart cloud providers from offering MongoDB capabilities without giving back to the projector paying Mongo (a similar situation Reddis found itself in several years later).
Kicking off this project in 2021, the three Percona expats had suspected that many MongoDB users required an open source licensed edition. They may work for an organization that is building its software stack on purely open source software. Or they may want an open source on-premises backup for cloud providers, Farkas explained.
The OpenDocDB Standard
Many users may not want to run critical systems on a open source project that is controlled by a single company. Recognizing this, the company has stood up the OpenDocDB initiative, with the hopes of attracting a development community around FerretDB.
The idea is that just as SQL has become a vendor-neutral standard for querying structured data, so too could OpenDocDB, building from the MongoDB API, become a standard for querying document-oriented databases.
Following the Percona playbook, FerretDB itself plans to make money from offering tools and advanced enterprise features, a cloud service, and premium support for highly-availability mission-critical deployments.