System Design Flashcards

1
Q

Single Server Design

A

HTTP Server, database, single point of failure

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

Single server design with separated db

A

Two servers, Better resilency, single point of failure

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

Resilience

A

The capacity to withstand or recover from difficulties

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

Vertical Scaling

A

Make web server bigger, or db bigger, pros: not a lot of things to maintain

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

Horizontal Scaling

A

Load Balancer, More servers if traffic grows, web servers are stateless

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

Where do servers come from?

A

Own Data centers, Cloud Services, Serverless

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

Failover Servers: Cold Standby

A

Do a periodic backup of DB, have a semi-ready instance of the db, redirect traffic to that db in case of failure. CONS: take long, data after backup lost. PROS: Cheap and simple

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

Failover Servers: Warm Standby

A

DB is getting replicated live, switch to that db in case of failure

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

Failover Servers: Hot Standby

A

Server writes to both dbs, read from second if main is down

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

Failover DB: Horizontal Scaling

A

Sharding, a shard is an horizontal partition of your db, every shard has a backup.

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

What is a hotspot shard?

A

The shard that is receiving most traffic

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

Normalized DB

A

Data distributed across tables, relational Db. Less storage space, more lookups, updates in one place.

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

Denormalized DB

A

Have everything in one query, data in one table, more storage, updates are hard.

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