Module 7: Horizontal Scaling
Horizontal Scaling
When a single server can no longer handle the data volume or throughput requirements of an application, horizontal scaling via sharding becomes necessary. This module covers the architecture of sharded clusters and the critical task of shard key selection.
Learning Objectives
- Design and deploy a Sharded Cluster architecture.
- Understand the roles of Mongos, Config Servers, and Shards.
- Select optimal Shard Keys based on cardinality, frequency, and growth patterns.
- Manage data distribution through Chunks and the Balancer.
Module Sections
- Sharding Architecture: The components and mechanics of a sharded cluster.
- Shard Keys & Balancing: Strategies for data partitioning and cluster maintenance.