Use Cases
Horizontal Scaling:
- Large scale applications: Social media platforms, e-commerce websites, and applications with rapidly growing user bases.
- Geographically distributed systems: Application or services are spread across different geographical locations at low latency.
- High availability systems: Applications requiring high availability and disaster recovery setups.
- Man power: You have the people and resources to buy, install, and maintain additional hardware and software
Vertical Scaling:
- Moderate scale applications: Small to medium size applications with predictable growth.
- Quicker upgrades: Situations where immediate resource upgrades are necessary without the complexity of sharding.
- High interval upgrades: Gap between the two upgrades is high, so you do not have to worry about downtime.
- Simple architectures: Applications with simpler architecture requirements and limited data distribution needs.
Horizontal Vs Vertical Scaling in MongoDB
Horizontal and vertical scaling are two common strategies used to handle increasing loads or data volumes in databases like MongoDB. MongoDB is a popular open-source, NoSQL database management system that uses a document-oriented data model. It has multiple features like high performance, flexibility, and scalability. In this article, we will talk about its scalability aspect.
Table of Content
- What is scalability?
- Horizontal Scaling
- Vertical Scaling
- Use Cases
- Which one to choose?
- How to do scaling in MongoDB?
- Difference between of Horizontal and Vertical Scrolling