• Register
Welcome to Developerhelpway Q&A, where you can ask questions and receive answers from other members of the community.

What is the meaning of Sharding in MongoDB

0 votes
15 views
What is the meaning of Sharding in MongoDB ?
asked Aug 2 in MongoDB by Swati sood

1 Answer

0 votes
Sharding is a method of keeping the data records in multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations. It is like a horizontal partition and each partition is called Shard.

MongoDB supports horizontal scaling by sharding. Theare are following components of MongoDB sharded cluster:-

    * Shard: Each shard contains a subset of sharded data. Each shard can be deployed as a replica set.
    * Mongos: Mongos acts as a query router. It provides an interface between client applications and the sharded cluster.
    * Config servers: Config servers store metadata and configuration settings for the cluster. MongoDB 3.4, config servers must be deployed as a replica set (CSRS).
answered Aug 2 by Developerhelpway (920 points)
...