Sharding Concept in MongoDB
How MongoDB sharding works: shards, config servers and mongos, choosing a shard key, query routing, the balancer, and how to tell whether you need it.
Tanishk · 7 min

Document database
A document database built around flexible JSON-like documents.
Stores data as BSON documents with a flexible schema, secondary indexes, an aggregation pipeline, multi-document transactions, replica sets and horizontal sharding.
How MongoDB sharding works: shards, config servers and mongos, choosing a shard key, query routing, the balancer, and how to tell whether you need it.