Scalability Flashcards

1
Q

What are the pros and cons of the single-server design?

A

Pros: Cheap, easy to maintain
Cons: Single point of failure, cannot scale to support more users

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

In a single-server design, what is the main benefit of separating the database from the main server into a separate resource?

A

You can now scale the server and database independently

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

What is vertical scaling?

A

Replace your current webserver with a larger, more expensive webserver with increased cpu and memory

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

What are the pros and cons of vertical scaling?

A

Pros: easier to maintain
Cons: Expensive, single point of failure, limited scalability as you get larger

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

What is the purpose of a load balancer in horizontal scaling?

A
  1. It distributes work evenly across multiple machines
  2. It can reroute traffic to different servers if one or more goes down
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is horizontal scaling?

A

When you scale your application with a cluster of machines which are given a distributed amount of work by a load balancer

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

What are the pros and cons of horizontal scaling?

A

Pros: Resilient, infinitely scalable
Cons: More instances to manage, individual web servers must be stateless

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

In the horizontal scaling technique, what does it mean that the individual web servers must be stateless?

A

The web servers have to be stateless because any request from the client must be able to be sent to any web server in the cluster. Can’t assume that one web server knows the state of a previous request and can act on it.

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

T/F: Choose the simplest architecture that meets your projected traffic requirements, but no simpler

A

True

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