Horizontal and Vertical Scaling Flashcards

1
Q

Define vertical scaling

A

Vertical scaling is to increase the capacity of the server when the load increases - but this will require a reboot.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Mention some disadvantages and limitations of vertical scaling:

A
  • Often times vertical scaling can only occur during planned outages - limits how quickly you can react/response to changes by scaling up or down.
  • Larger instances also carry a $ premium compared to smaller instances - bigger instance, more expensive
  • Instance size is an upper cap on performance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Mention some advantages and limitations of vertical scaling:

A
  • No application modification is needed - Works for all applications, even monoliths (all code in one app)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Define horizontal scaling

A

Horizontal scaling is to add additional capacity when the load increases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the main difference between vertical and horizontal scaling?

A

With horizontal scaling, instead of one running copy of an application, you can have multiple versions running on each server (normally with smaller compute)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the function of the load balancer in horizontal scaling? Is it required?

A

This requires a load balancer. When customers try to access an application, the load balancer ensures the servers get equal parts of the load.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are sessions and why are they important in horizontal scaling?

A

Sessions define the state of your interaction.
With horizontal scaling you might be jumping from instances and therefore is important to track the state of your interaction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is required for horizontal scaling to work correctly?

A

It requires the application to support it or to have off-host sessions, meaning that the sessions are not saved or stored in the instance itself (stateless servers) - session data is saved somewhere else.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is there any disruption when scaling up/down with horizontal scaling?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Is there a limitation on how much you can scale with horizontal scaling?

A

No.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Mention some of the benefits of using horizontal scaling:

A
  • No disruption when scaling up/down.
  • No real limits when scaling.
  • More granular.
  • Pay less as you can use smaller instances to scale.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly