Scaling Flashcards
- What is scalability?
Scalability refers to the ability of a system
- What are the two types of scalability?
Vertical Scalability (Scaling Up) and Horizontal Scalability (Scaling Out).
- What is Vertical Scalability?
Vertical Scalability involves adding more resources (CPU
- What is an example of Vertical Scalability?
Upgrading a database server from 16GB to 64GB of RAM.
- What are the pros of Vertical Scalability?
Simple to implement and no changes to the application code.
- What are the cons of Vertical Scalability?
Limited by the hardware capacity of a single machine and can become expensive.
- What is Horizontal Scalability?
Horizontal Scalability involves adding more machines (or nodes) to distribute the load.
- What is an example of Horizontal Scalability?
Adding multiple servers to handle web traffic.
- What are the pros of Horizontal Scalability?
Practically unlimited scalability and high fault tolerance.
- What are the cons of Horizontal Scalability?
More complex to implement and requires distributed system design.
- What are the three dimensions of scalability?
Performance Scalability
- What is Performance Scalability?
The ability to improve response times under increased load.
- What is Capacity Scalability?
The ability to handle a higher volume of users
- What is Geographic Scalability?
The ability to maintain performance across geographically dispersed locations.
- What is Load Balancing?
Load Balancing distributes incoming requests across multiple servers to balance the load and improve performance.
- What is an example of Load Balancing?
A website uses a load balancer to distribute traffic across 5 backend servers.
- What is Caching?
Caching temporarily stores frequently accessed data in a faster storage layer to reduce the load on backend systems.
- What is an example of Caching?
Using a Redis or Memcached server to store session data.
- What is Database Sharding?
Database Sharding divides a database into smaller
- What is an example of Database Sharding?
A large e-commerce platform shards its database by customer region.