MongoDB logo
Data

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
Works well with

Often used together

Questions

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 »