Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (47.6k points)

I am someone new to mongoDB and have absolutely no knowledge regarding databases so I would like to know what is a cluster in MongoDB and what is the point of connecting to one in MongoDB? Is it a must to connect to one or can we just connect to the localhost?

1 Answer

0 votes
by (106k points)

A mongodb cluster is a word usually used for a sharded cluster in mongodb. The main purposes of a sharded mongodb are:

  • The scale reads and writes along with several nodes

  • Each node does not handle the whole data so you can separate data along with all the nodes of the shard. Each node is a member of a shard (which is a replica set, see below for the explanation) and the data are separated on all shards.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Feb 19, 2020 in Web Technology by ashely (50.2k points)
0 votes
1 answer
asked Jan 30, 2020 in Web Technology by anmolj (9k points)
0 votes
1 answer

Browse Categories

...