Components of MongoDB

In previous section, we have discussed about the definition of MongoDB and some sample example of MongoDB. Now in this section we will discuss several components of MongoDB.

Mongo DB could be used in Big Data application and traditional application, but not suitable for Application involving complex transaction like multiple insertion , multiple deletion, conditional role back etc. etc. . Common application where Mongo DB is used are:

  • User Account
  • Forms data
  • Geographical Data
  • Contact Management System
  • Application Configurations
  • Log Data

Mongo DB System Component:

Generally, there are two Components of MongoDB system in terms of bin command.

  • Mongod
  • Mongo

Mongod is the server in which databases in running and Mongo is the shell to interact the server.

Components of MongoDB

Mongod is generally known as ““Mongo Daemon”. By mongod command MongoDB process the background execution. Mongod command generally manages all task related to Server such as client server communication, replying response to client etc.

Generally MongoDB connects to the client withe the port number 27017. and it stores the data in the directory location /data/db. In Windows, /data/db path is availbe in the Root folder of MongoDB. For Example: if you have MongoDB Server in C:/ then the folder path for data is C:\data\db.

mongod command is is used for stating the MongoDB Server. There are a lots of commands available in MongoDB.We will disucss all of those command in upcoming section.

mongo is nothing but the interactive shell which generally used for client side. It is also known as JavaScript interface. This interface is generally used for admin purpose like executing query, edit and update the data etc. We need to run this command in our localhost shell for connecting to out local database which is available in the port 27017.

Summary:

  • Common application where Mongo DB is used are User Account, Forms data, Geographical Data, Contact Management System, Application Configurations, Log Data etc.
  • There are two Components of MongoDB system in terms of bin command. i.e. Mongo, Mongod.
  • mongo is nothing but the interactive shell which generally used for client side. It is also known as JavaScript interface.We need to run this command in our localhost shell for connecting to out local database which is available in the port 27017.
  • mongod command is is used for stating the MongoDB Server. There are a lots of commands available in MongoDB.We will disucss all of those command in upcoming section.

Leave a Reply

Your email address will not be published. Required fields are marked *