Getting Started with MongoDB atlas

Deepak Singh Rajput
3 min readJun 28, 2021
MongoDB

MongoDB is an open source cross platform NoSQL database. It is document based database where data is stored in JSON like format.

In MongoDB database consists of documents and collection.

  • Collection — an organized store of documents in MongoDB, usually with common fields between documents. There can be many collections per database and many documents per collection.
  • Document — a way to organize and store data as a set of field-value pairs.
  • Field — a unique identifier for a datapoint.
  • Value — data related to given field.

When it comes to storage, MongoDB uses BSON format to store our data but it is displayed in JSON format.

JSON

JavaScript Object Notation, more commonly known as JSON. JavaScript objects are simple associative containers, wherein a string key is mapped to a value (which can be a number, string, function, or even another object).

JSON Data

BSON

BSON simply stands for “Binary JSON,” and that’s exactly what it was invented to be. BSON’s binary structure encodes type and length information, which allows it to be parsed much more quickly.

BSON document

Features of MongoDB database

  • MongoDB is a scalable, flexible NoSQL document database.
  • It has an automatic load balancing configuration because of data placed in shards.
  • It is a document oriented database and the data is stored in BSON documents.
  • You can store nested data.
  • You can index any field in a document.
  • High performance.
  • Supports map reduce and aggregation tools.

Advantages of MongoDB

  • You need not to design the schema of the database
  • It does not support join operation.
  • It also supports multiple document ACID transition
  • It does not require any SQL injection.
  • It is easily integrated with Big Data Hadoop
  • Heterogeneous data
  • high performance, availability, scalability.

Disadvantages of MongoDB

  • It uses high memory for data storage.
  • You are not allowed to store more than 16MB data in the documents.

MongoDB Atlas

Atlas is a fully managed database build for wide range of application with MongoDB at its core.

MongoDB Atlas allows you to store your database in clusters. Clusters are basically group of servers that store your data. These servers are configured in replica sets.

Replica sets are few connected machines that store the same data to ensure that if something happens to one of the machines the data will remain intact.

--

--

Deepak Singh Rajput

Full Stack Dev @ ImpetusTech (2.3yrs). Build cloud apps with Java, Spring Boot, ReactJS & AWS. Skilled in microservices & Redux. #dev #java #react #springboot