Why is MongoDB associated with Node.js?

0 votes
Why do we use MongoDB along with Node.js?
Jul 18 in Others by code_ninja
• 6,220 points
32 views

1 answer to this question.

0 votes

Node.js is an open source server environment which uses JavaScript on the server to develop backend applications

Let us have a look at client server architecture :

  • Frontend section handles user interaction, Any  customer can visualise only frontend part of application via web browsers
  •  Database plays role of storage unit (of the application). All the  application data is collected in this database
  • Accepting the request from frontend server, searching the data from database and sending back the response to client’s browser is done by backend application.

 database management systems (DBMS) are of two types: Relational and NoSQL DBMS

Relational DBMS handles the databases that store data in a structured format with the help of (tables) rows and columns

NoSQL DBMS handles the database that stores unstructured data in forms of collections and documents

The most commonly used SQL DBMS is MySQL and NoSQL DBMS is MongoDB

As your concern is MongoDB so let me focus only on MongoDB

 Usually people prefer mongoDB for following reasons:

  • NoSQL Database Management Systems are more flexible than RDBMS
  • The expense of maintaining and even setting up a RDBMS is relatively high
  • MongoDB is an open source database management system (DBMS) that uses a document-oriented database model which supports various forms of data
  • It holds a set of collections and stores data as document
  • Can handle variety of data and huge amount of data
  • It offers a MongoDB Node.js Driver which provides a JavaScript API and implements the network protocol required to read and write from a local or remote MongoDB database
  • All you have to do is install NPM -mongodb package in your Application Code

Major Customers using MongoDB are:

I hope this helps you, Happy Learning:)

answered Jul 18 by ArchanaNagur
• 2,270 points

Related Questions In Others

0 votes
1 answer

Why do we use Body-parser in Node.js?

For understanding this first you need to ...READ MORE

answered May 20 in Others by sunshine
• 1,240 points
112 views
0 votes
1 answer

Why and when to use Node.js?

The major reason why they are going ...READ MORE

answered Jun 14 in Others by sunshine
• 1,240 points

edited Jun 14 by sunshine 59 views
0 votes
0 answers

why linux is more secure than windows?

which features make linux more secure than ...READ MORE

Jul 11, 2018 in Others by kristena1234
• 160 points
36 views
0 votes
0 answers

How to communicate gRPC example working with Node.js?

Hi Guys, I am working as a Node.js ...READ MORE

Dec 5, 2018 in Others by camillelola
• 140 points
325 views
+1 vote
1 answer

what is the difference between error and stderr in Node.js?

Error is an object created by Node.js to handle ...READ MORE

answered Jul 4 in Others by sunshine
• 1,240 points
60 views
0 votes
1 answer

How to include/ install any library in node.js application program?

Node.js is server side runtime environment that ...READ MORE

answered Jul 26 in Others by ArchanaNagur
• 2,270 points
37 views
0 votes
1 answer

In order to learn Node.js, I should be familiar with which other technologies ?

I appreciate your decision, its the perfect ...READ MORE

answered Jul 31 in Others by ArchanaNagur
• 2,270 points
21 views
+1 vote
1 answer

What is Node.js? I want a clear understanding about it.

Node.js is a runtime environment which allows ...READ MORE

answered Jun 17 in Others by ArchanaNagur
• 2,270 points
39 views
0 votes
1 answer

What is use of Babel in Node.js ?

Node.js is a runtime environment  which let us ...READ MORE

answered Jul 2 in Others by ArchanaNagur
• 2,270 points
92 views