What does Microsoft's DocumentDB bring to PostgreSQL and NoSQL developers?

Microsoft has released DocumentDB as an open-source document database platform. The system runs on PostgreSQL and powers the vCore-based version of Azure Cosmos DB.

A Postgres extension that speaks BSON

The core of DocumentDB sits inside PostgreSQL as a custom extension named pg_documentdb_core. This layer parses and manipulates BSON documents at every nesting level without leaving the Postgres engine. It also builds indexes on fields inside those documents — single-field, multi-key, compound, text, and geospatial indexes that lean on the PostGIS extension. Vector search arrives through the pg_vector extension. The announcement lists generative AI applications, chatbots, AI agents, fraud detection in financial services, similarity search for retail recommendations, natural language processing, content filtering, and retrieval-augmented generation patterns. A full SCRAM authentication mechanism rounds out the foundation.

The API layer

Above the core sits pg_documentdb_api, the data plane that implements CRUD operations, query functionality, and index management. Together the two components let developers interact with DocumentDB through standard Postgres tooling. The announcement shows a short session: create a collection with documentdb_api.create_collection, insert JSON documents with documentdb_api.insert_one, and run selects against the same API. No separate protocol is required at this level; the engine accepts SQL calls that return document-oriented results.

MIT license and a standard ambition

The project uses the MIT license. No strings attached. The text states there are no commercial licensing fees. There are no usage or distribution restrictions. There are no requirements to contribute customizations back. Microsoft frames DocumentDB as the first implementation of a broader mission: an open standard for document databases analogous to the ANSI SQL standard for relational systems. The goal is to minimize differences in public APIs and engine fundamentals across NoSQL implementations so that switching between them becomes easier. The announcement does not say whether any other vendor has signed on to the proposed standard.

FerretDB integration

Users who want a ready-made document database protocol can run FerretDB 2.0, which uses DocumentDB as its backing engine. FerretDB carries an Apache license and has a presence in both the Postgres and NoSQL communities. The announcement does not detail performance benchmarks comparing FerretDB on DocumentDB against other document stores.

Getting started locally

The repository lives at github.com/microsoft/documentdb. The documented path clones the repo, builds a Docker image from the provided devcontainer Dockerfile, runs the container with the source mounted, executes make && sudo make install, starts the server with ./scripts/start_oss_server.sh -t documentdb, and connects via psql -p 9712 -h localhost -d postgres. The steps assume Docker is already installed. No alternative installation methods are described in the announcement.

Community channels

Microsoft points to the GitHub repository for the current roadmap and vision. A Discord channel is open for design discussions and feedback. The author, Abinav Rameesh, is a Principal PM Manager on Azure Cosmos DB with a background in distributed systems and database services. The post does not mention a release cadence, long-term support policy, or governance model beyond the MIT license.

The sources this article was written from

  • "Microsoft Open Source Blog
    https://opensource.microsoft.com/blog/2025/01/23/documentdb-open-source-announcement/"

Read next