Sharding
Sharding helps in spreading out the data in different machines in case the data volume to too high. Sharding has its own disadvantages like increase maintenance, query result aggregation, increased infrastructure cost.
Before considering sharding we should consider if vertical scaling will solve the issue. If yes then should go for vertical scaling rather than Sharding.
Advantages of Sharding
- Increase read/write throughput
- Increased storage capacity
- Data Locality
Sharding Types
- Range/Dynamic Sharding
- Algorithmic / Hash Sharding
- Entity/Relationship Sharding
- Geography Based Sharding
References
https://www.mongodb.com/features/database-sharding-explained
No comments:
Post a Comment