Introduction to Mongo Database: Part 1

MongoDB Database

Introduction

In this article, we will learn about MongoDB (one of the most popular and fastest-growing no SQL databases).

Databases are important for every internet and enterprise application.

Scale, speed, and fast application development have brought on a new breed of databases that broadly turned to no SQL databases.

What is Mongo Database?

MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling.

Features of Mongo Database

  • MongoDB has no schema, no tables, no rows, no columns, and certainly no relationships among tables.
  • In MongoDB, we have single-document write scope; a document lives in a collection, but updating documents occurs one at a time. So if any locking is needed, then it would be much simpler, there is no need to extend locks across collections, and there are no relationships to enforce.
  • Mongo also offers a special collection called a capped collection that has a fixed size and automatically overwrites old documents.

High Performance

MongoDB provides high-performance data persistence. In particular:

  • Support for embedded data models reduces the I/O activity of the database systems.
  • Indexes support faster queries and can include keys from embedded documents and arrays.

High Availability

To provide high availability, MongoDB’s replication facility, called replica sets, provides:

  • automatic failover.
  • data redundancy.

A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and increasing data availability.

Automatic Scaling

MongoDB provides horizontal scalability as part of its core functionality.

  • Automatic sharding distributes data across a cluster of machines.
  • Replica sets can provide eventually consistent reads for low-latency high throughput deployments.

Summary

In this article, we have learned what is MongoDB and the advantages. 


Similar Articles