Building an Open Source MongoDB-compatible Database on Top of PostgreSQL
summary
Claims an open source MongoDB-compatible backend that accepts unmodified MongoDB clients and stores data in PostgreSQL, implemented as a Go proxy translating the wire protocol into SQL and using postgres jsonb. Current build is v0.2 and already runs an app called la assistant; the project reports 4.4k GitHub stars and ~30 contributors. Compatibility choices trade performance for correctness: some queries fetch all then sort in Go to match MongoDB semantics, with integration tests that compare responses to MongoDB.
AI-written summary · about
chapters (4)
- 0:00Start
- 7:08We think that there is a need for an open-source alternative to MongoDB, and it needs to be compatible with the existing MongoDB ecosystem.
- 7:34A MongoDB compatible interface • Set out to become the de facto MongoDB Alternative Can be used on-prem or in the cloud Can utilize various RDBMS as backend (PgSQL for now) • Released under a pure Open Source license, Apache 2.0
- 9:06MongoDB compatibility means that all of the existing elements of the MongoDB Ecosystem (tools, frameworks and applications) will be possible to use with FerretDB, without any modification.
related talks
24mBuilding an open-source MongoDB-compatible database on top of PostgreSQL
42mFrom MongoDB to Postgres: Building an Open Source Standard for Document Databases
32mFrom MongoDB to Postgres: Building an Open Standard for Document Databases
15mFrom MongoDB to Postgres: Building an Open Source Standard for Document Databases
43mFerretDB — mongoDB on the outside, PostgreSQL on the inside
32mMoving MongoDB Workloads to Postgres with FerretDB
48mThe NoSQL Way in PostgreSQL
04mDave Stokes Talks Open - Episode 5
