Difference between of Horizontal and Vertical Scrolling
Horizontal Scaling | Vertical Scaling | |
---|---|---|
Description | Scaling out by increasing more machines or nodes in the MongoDB cluster | Scaling up by increasing or decreasing resources to handle traffic |
Usage (example) | Big e-commerce website where you can increase virtual machines or do sharding | Small sized startup website where you can simply upgrade server side |
Complexity | Higher | Lower |
Downtime | Almost none | Yes |
Expense | Highly expensive | Less expensive than horizontal scaling |
Performance | Higher | Lower |
Implementation | Takes times and expertise | Does not take much time and expertise |
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