Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

documentdb-playground

A collection of small, self-contained playgrounds that show how to use DocumentDB — the MongoDB-compatible, open-source database engine built on PostgreSQL — from popular MongoDB drivers and ODMs.

Each playground is a quick, hands-on test guide. Most run DocumentDB locally in Docker — everything on your machine, no cloud required — so you can validate that your driver of choice behaves the way you expect. Others may target different environments (for example Kubernetes or a cloud deployment); each playground's README states what it needs.

Compatibility status

PyMongo compatibility

Run details and accessible results show tested versions, actual execution timestamps, and the latest attempt separately from the last conclusive compatibility evidence.

Playgrounds

Playground Language / Stack What it shows
mongoose Node.js — Mongoose ODM Express REST API + a CRUD/compatibility test suite using the Mongoose ODM.
mongodb-node Node.js — MongoDB driver Express REST API + a CRUD/compatibility suite using the native Node.js driver.
beanie Python — Beanie ODM FastAPI REST API + a CRUD/compatibility test suite using the Beanie ODM.
pymongo Python — PyMongo driver Flask REST API + a CRUD/compatibility test suite using the raw PyMongo driver.
benchmarks Shared + adapters Repeatable performance experiments, including local latency analysis.
spring-data-mongodb Java — Spring Data MongoDB Spring Boot REST API + a CRUD/compatibility test suite using Spring Data MongoDB.

More MongoDB driver playgrounds are planned. Contributions are welcome.

Getting Started

Pick a playground from the table above and follow its README. As a rule, each one only needs:

  • Docker (Docker Desktop or a Docker daemon) — to run DocumentDB locally
  • The language runtime for that playground (for example Node.js for mongoose)

For example, to try the Mongoose playground:

cd playgrounds/mongoose
./scripts/run-test.sh   # start DocumentDB locally and run the compatibility suite
./scripts/run-app.sh    # or run the demo REST API

To try the MongoDB Node.js native driver playground:

cd playgrounds/mongodb-node
./scripts/run-test.sh   # start DocumentDB locally and run the compatibility suite
./scripts/run-app.sh    # or run the demo REST API

To try the Beanie playground:

cd playgrounds/beanie
./scripts/run-test.sh   # start DocumentDB locally and run the compatibility suite
./scripts/run-app.sh    # or run the demo REST API

To try the PyMongo playground:

cd playgrounds/pymongo
./scripts/run-test.sh   # start DocumentDB locally and run the compatibility suite
./scripts/run-app.sh    # or run the demo REST API

To try the Spring Data MongoDB playground:

cd playgrounds/spring-data-mongodb
./scripts/run-test.sh   # start DocumentDB locally and run the compatibility suite
./scripts/run-app.sh    # or run the demo REST API

Shared telemetry demo

shared/telemetry/ provides a reusable local stack with a tracing-enabled DocumentDB image, an OpenTelemetry Collector, and Jaeger. Start it once, then use any playground against the shared documentdb-local container.

The Mongoose playground also includes optional application instrumentation and client-to-gateway trace-context propagation:

cd playgrounds/mongoose
./scripts/run-telemetry-demo.sh

See the shared telemetry guide for image, configuration, and verification details.

For configurable baseline and traced load experiments, use the local latency benchmark. It currently includes a Mongoose adapter and a common contract for additional drivers.

Repository Layout

documentdb-playground/
├── README.md
├── LICENSE
├── shared/
│   └── telemetry/    # Collector + Jaeger + tracing-enabled DocumentDB stack
└── playgrounds/
    ├── benchmarks/          # Performance experiments + driver adapters
    ├── mongoose/            # Node.js + Mongoose ODM
    ├── mongodb-node/        # Node.js + MongoDB native driver
    ├── beanie/              # Python + Beanie ODM
    ├── pymongo/             # Python + PyMongo driver
    └── spring-data-mongodb/ # Java + Spring Data MongoDB

License

See LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages