MongoDB
Document database for flexible JSON-like data. MongoDB is a document database that stores records as JSON-like documents, so each record can have its own structure. It supports indexing, aggregation, replication and sharding, and MongoDB Atlas is the company's managed cloud service with features such as vector search. The Community Server is released under the Server Side Public License.
When it is the right choice
- Your data is naturally document-shaped and varies between records
- You need to evolve the data model quickly without migrations for every change
- You need horizontal scaling through sharding
- Not ideal for data with many relationships and joins, where a relational database fits better
How we use it
- Choose between Atlas and self-hosted replica sets on Kubernetes or VMs
- Design indexes from real query patterns and monitor slow operations
- Set up backups with tested restores
- Track performance and capacity and plan scaling before it becomes urgent
Related articles
Database Deployment Automation: Shipping Schema Changes Without the Quiet-Hours RitualDatabase deployment automation in practice: versioned migrations, expand and contract, lock-safe changes, a migration job in the pipeline, and a review step that reads every schema change before it runs.
Database Backup and Restore Testing: The Backup You Have Never RestoredDatabase backup best practices start with the restore. How we test PostgreSQL and MySQL restores on a schedule, measure recovery time, and know the backups work before we need them.MongoDB: frequently asked
Atlas or self-hosted MongoDB?
Atlas removes operational work and runs on AWS, Google Cloud and Azure. Self-hosting gives control but needs care with replication, backups and upgrades.
Does MongoDB support transactions?
Yes, it supports multi-document transactions. Still, models that need many cross-document transactions may suit a relational database better.
Running MongoDB, or deciding whether to? Tell us what you have; the first consultation is free.
Let's talk »