How to setup a Sharded Cluster in MongoDB using an Ubuntu Server 18.04
Introduction MongoDB is a No-SQL, document based database system that scales well horizontally and implements data storage through a key-value system. A popular choice for web applications and websites, MongoDB is easy to implement and access pro-grammatically. MongoDB achieves scaling through a technique known as "sharding". Sharding is the process of writing data across different servers to distribute the read and write load and data storage requirements. MongoDB Sharding Topology Sharding is implemented through three separate components. Each part performs a specific function: Config Server : Each production sharding implementation must contain at least three configuration servers. This is to ensure redundancy and high availability. Config servers are used to store the metadata that links requested data with the shard that contains it. It organizes the data so that information can be retrieved reliably and consistently. Config servers are the brains of your cl...