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
From Idea to AI Feature in Six WeeksHow an AI project runs end to end in six weeks: discovery, design, prototype, infrastructure, rollout, then measuring and improving.
CI/CD for Models and PromptsEvaluation gates, model registries, canary releases and rollback: applying CI/CD discipline to prompts and models in LLM applications.
Fine-Tuning or Prompting? A Decision Guide for Small TeamsWhen prompting, RAG or fine-tuning is the right way to adapt a language model, and what each one costs a small engineering team.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 »

