Pro
Databases · MongoDB

MongoDB

The document database that defined NoSQL, Atlas, vector search, and a managed surface across every cloud.

Other · Released 2009 · 28K · Mature
Reviewed today
Stackmaven verdict

MongoDB is the document database to beat for any data model that genuinely doesn't fit a relational shape, nested objects, evolving schemas, or write-heavy event streams. Atlas turned MongoDB into a polished managed offering across AWS, Azure, and GCP, and Atlas Vector Search is a credible RAG backend without bolting on a second store. The trade is that for relational data, Postgres remains the better tool, MongoDB's aggregation framework is powerful but it's not SQL. Pick MongoDB when your documents are genuinely document-shaped.

Strengths
  • Atlas managed across AWS / Azure / GCP, free M0 forever
  • Atlas Vector Search is a credible production RAG backend
  • Flexible schema fits evolving and nested data models
  • MongoDB 8.3 (May 2026) tuned for AI workloads
  • Massive driver and ORM ecosystem across every major language
Trade-offs
  • SSPL license complicates self-hosted commercial use
  • Joins / multi-collection transactions are slower than relational
  • Schema flexibility cuts both ways, easy to ship inconsistent data
  • Atlas dedicated tiers ($56/mo M10 minimum) get expensive fast
  • Aggregation framework has a learning curve; not SQL

MongoDB is the document database that defined the NoSQL category. It stores data as JSON-like BSON documents inside collections, with flexible schemas, a rich aggregation framework, and a managed service (Atlas) that runs across AWS, Azure, and GCP. The bet, a decade and a half ago, was that not all data is relational, and that bet largely held.

Where it fits

MongoDB is the right pick when your data model is genuinely document-shaped: nested objects, polymorphic records, evolving schemas, or write-heavy event streams where the shape changes over time. The aggregation framework handles complex transforms without round-tripping to a separate analytics store, and Atlas Vector Search makes MongoDB a viable single-store choice for AI applications.

For relational data with foreign keys, joins, and transactional guarantees across multiple entities, Postgres remains the better tool, MongoDB’s multi-document transactions exist but they’re not the path of least resistance. Pick MongoDB when “documents” genuinely describes the data, not because the schema flexibility feels easier upfront.

Pricing in practice

Atlas Free (M0) gets 512 MB storage forever, useful for prototypes and dev. Flex (serverless) starts at $8/month and scales to ~$30/month at 500 ops/sec, fits unpredictable traffic and small production apps. Dedicated tiers start at M10 ($56.94/month for 2 GB RAM, 2 vCPU, 10 GB storage) and scale up from there with per-cluster pricing across cloud providers.

Self-hosted is technically free but the SSPL license complicates commercial use, any service that exposes MongoDB as a managed offering triggers the SSPL’s copyleft provisions. Most teams using MongoDB at scale end up on Atlas for the managed surface plus license clarity.

How it compares

  • PostgreSQL, Relational with JSONB for document-like fields when needed. Pick when your data has foreign keys and you want SQL semantics with optional document flexibility.

  • Supabase, Managed Postgres with auth, storage, and realtime in one workspace. Pick when you want a relational backend and a complete platform rather than just a database.

  • Convex, Reactive TS-native backend with documents and end-to-end type safety. Pick when you want documents plus realtime reactivity bundled in.

What changed recently

MongoDB 8.3 shipped May 7 2026 at .local London with AI workload optimizations and enterprise hardening. Nested Embeddings landed in Atlas Vector Search public preview May 14 2026, and Automated Embedding entered public preview May 11 2026, both move RAG infrastructure further into the managed surface. Atlas Stream Processing gained Google Cloud Pub/Sub support in April 2026 and expanded its integration with Google Cloud’s Application Design Center. The strategic line through these releases is the same: position Atlas as the single store for transactional, search, vector, and stream workloads.

Sources

  1. MongoDB Blog, mongodb.com, May 2026
  2. MongoDB Atlas Pricing, mongodb.com
  3. MongoDB 8.3 Release, mongodb.com, May 2026
  4. Atlas Vector Search, mongodb.com
esc