A New Database Runs MongoDB Apps on Postgres
TL;DR: A new open-source database called DocumentDB has reached its first stable release. It lets developers run applications designed for MongoDB on top of a standard PostgreSQL database, combining two popular technologies without code changes.
Key facts
- Category
- Database
- Impact
- High
- Published
- Source
- InfoQ
Full summary
A new open-source database lets you run MongoDB applications directly on top of PostgreSQL, with no changes needed for most tools and drivers.
A new open-source database called DocumentDB has launched its version 1.0, marking its first "general availability" release and signaling it is ready for production use. According to a report from InfoQ, the project’s core promise is to provide a document database, similar in function to MongoDB, but built entirely on top of the popular relational database PostgreSQL. This release establishes a significant new player in the database market, offering a unique hybrid approach. Its key feature is direct compatibility with the MongoDB wire protocol, the communication language used by MongoDB applications. This means most existing applications, tools, and drivers built for MongoDB can work with DocumentDB without any changes.
The technical approach of DocumentDB is what makes it so interesting. Instead of creating a new storage system from scratch, it cleverly uses PostgreSQL as its foundational engine. When an application sends a query using a standard MongoDB driver, DocumentDB intercepts it. The database then translates this MongoDB-style query, which is designed for flexible JSON-like documents, into a standard SQL query that PostgreSQL can understand and execute. The data itself is stored within PostgreSQL, likely using its powerful JSONB data type for efficiency. This architecture means developers get the familiar API of a document database on the front end, while benefiting from the proven stability, transactional integrity, and rich ecosystem of PostgreSQL on the back end.
DocumentDB’s arrival fits into two major trends in the data world. The first is the growing movement to use PostgreSQL as a versatile platform, not just a simple relational database. Projects like TimescaleDB for time-series data have already shown that the Postgres engine is robust enough to be extended for specialized use cases. DocumentDB is the latest example, extending it into the NoSQL document world. The second trend is the market's search for viable, truly open-source alternatives to MongoDB. While MongoDB is popular, its shift to the Server Side Public License (SSPL) has caused concern for some companies about licensing complexity. DocumentDB, with its permissive MIT license, offers a completely unrestricted alternative. It also competes with cloud-specific services like Amazon's proprietary DocumentDB, providing an option not tied to a single cloud provider.
For CTOs, developers, and IT teams, DocumentDB presents a compelling new choice for their technology stack. Teams that already use and trust PostgreSQL can now adopt a document data model for new projects without the operational burden of managing an entirely separate database system. This can lead to significant cost savings and operational simplicity by allowing organizations to consolidate their data infrastructure and leverage existing PostgreSQL expertise. The key things to watch for next will be community adoption, performance benchmarks comparing it to native MongoDB, and the roadmap for future feature parity. As a 1.0 release, its long-term success will depend on building a strong community and proving its reliability in real-world production environments.
Why it matters
This gives developers a fully open-source path to run MongoDB-compatible workloads on a standard PostgreSQL database. It simplifies data infrastructure for teams wanting document models without adding another database system or navigating MongoDB's restrictive SSPL license.
Business impact
DocumentDB introduces a new, free alternative in the NoSQL market, challenging established players. Companies can potentially reduce operational overhead and licensing costs by consolidating their database stack on PostgreSQL, leveraging existing talent and tooling.
Tags
Related on Notifire
Related stories
Primary source: InfoQ
