Title: MongoDB
Author: Kriko
Published: Jun 1, 2023
Last modified: Jul 7, 2026

---

 1.  [Home](https://kriko.io/) /
 2.  [Glossary](https://kriko.io/glossary) /
 3.  M Letter

# MongoDB

**MongoDB** is a document-oriented NoSQL database management system. First released
in 2009, it was developed to store, query and manage large and evolving datasets.
Instead of the tables and rows used in traditional relational databases, MongoDB
organises data into collections and documents. Current versions of MongoDB Community
Server are source-available and licensed under the Server Side Public License.

MongoDB stores data as **BSON** documents, which use a structure similar to JSON.
Documents consist of field-value pairs, and documents within the same collection
do not have to contain identical fields. This flexible schema model can simplify
development when an application’s data structure changes over time. However, appropriate
data modelling and validation rules are still required to maintain data quality 
and application consistency.

MongoDB supports equality, range and field-based queries, as well as indexes designed
for text, geospatial and other data types. Frequently queried fields can be indexed
to improve data retrieval performance. Its aggregation pipeline can also be used
to filter, group, transform and prepare data for analytical processes. However, 
unsuitable data models and unnecessary indexes may increase storage consumption 
and negatively affect query performance.

MongoDB provides high availability through its **replica set** architecture. Multiple
servers within a replica set maintain copies of the same dataset, providing redundancy
and supporting automatic failover. This structure can reduce the risk of service
disruption and data loss following a server or hardware failure. However, replication
is not a substitute for a separate backup strategy, and regular database backups
should still be maintained.

MongoDB can use **sharding** to distribute large datasets and intensive workloads
across multiple servers. Data is divided between shards according to a selected 
shard key, enabling horizontal scalability. Selecting an appropriate shard key is
essential for distributing workloads evenly and maintaining efficient query performance.
A poorly selected shard key may result in uneven data distribution, overloaded servers
and slower queries.

MongoDB can be used for web and mobile applications, content management systems,
product catalogues, user profiles, IoT applications and real-time data processing
solutions. Its flexible document model can create a more natural relationship between
objects in application code and documents stored in the database. MongoDB can be
deployed and managed within an organisation’s own infrastructure or through the 
fully managed **MongoDB Atlas** service. The appropriate deployment model should
be selected by considering data relationships, transaction requirements, security,
cost and scalability.

In summary, MongoDB is built around a document data model, replication and distributed
scaling capabilities. Its flexible structure can support rapid application development,
while replica sets improve availability and sharding supports horizontal scalability.
However, MongoDB should not automatically be considered the appropriate solution
whenever a relational database appears restrictive. The database should be selected
according to the application’s data structure, query patterns, consistency requirements
and operational needs.

## Discover it in the dictionary

###  Data Architecture

Data architecture is the structure that defines how an organisation collects, stores,
manages, integrates and uses data. It brings data systems, technologies, rules, 
standards…

###  Customer Experience

Customer Experience, commonly abbreviated as CX, refers to the overall perception
created by all interactions a customer has with a brand. Many touchpoints are…

###  Extensible Markup Language (XML)

Extensible Markup Language, commonly abbreviated as XML, is a text-based markup 
language used to structure, define, store and transfer data between different systems.
XML…

###  Largest Contentful Paint (LCP)

Largest Contentful Paint, commonly abbreviated as LCP, is a Core Web Vitals metric
that measures how long it takes for the largest visible content…

###  Alt Text

Alt text, also known as alternative text or the alt attribute, is the descriptive
text written inside the alt attribute of an image in…

###  Data Gravity

Data gravity refers to the effect created when large volumes of data become concentrated
within a particular system, platform or location. As data grows…

###  Word of Mouth Marketing (WOMM)

Word of Mouth Marketing, commonly abbreviated as WOMM, is the marketing effect created
when consumers share their opinions about a product, service, brand or…

###  Attribution Models

Attribution models are measurement approaches that determine how conversion credit
is distributed across the marketing channels, ads or interactions a user touches
before completing…

###  Hreflang Tag

The hreflang tag is an HTML annotation used on multilingual or multi-regional websites
to tell search engines about different language and country versions of…

## Track the digital heartbeat  with Kriko

Subscribe to receive curated insights, news, and ideas shaping the digital landscape.

  By checking this box, you acknowledge and accept our [privacy policy](https://kriko.io/privacy-policy).