System Design Flashcards

1
Q

What is latency?

A

How LONG it takes a packet to travel from one computer on the internet to another.

Average ‘ping’ speed

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

What units is latency measured in?

A

Milliseconds (ms)

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

At what latency might you start to notice a lag? (What’s good latency?)

A

Anything under 100ms should be good but it depends on the application.

For gaming, it’s suggested less than 50ms and ideally less than 30ms.

Average speeds faster than 50ms are best for most purposes.

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

What is network throughput?

A

How MUCH data can be transferred from source to destination in a given time.

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

What is database throughput?

A

How MANY reads/writes can be handled in a given time frame (often seconds).

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

How many reads and writes / second can a typical RDBMS handle?

A

Reads/second: 10K

Writes/second: 5K

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

How many reads and writes / second can a typical Distributed Cache handle?

A

Reads/second: 100K

Writes/second: 100K

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

How many reads and writes / second can a typical Message Queue handle?

A

Reads/second: 100K

Writes/second: 100K

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

How many reads and writes / second can a typical NoSQL database handle?

A

Reads/second: 20K - 50K

Writes/second: 10K - 25K

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

What is the average max effective capacity of a RDBMS instance?

A

3TB

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

What is the average max effective capacity of a Distributed Cache?

A

16GB - 128GB

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

How many bits does the extended-ASCII character set use and how is it different from the basic ASCII set?

A

The extended-ASCII character set uses 8 bits (256 possible characters).
The basic ASCII character set uses 7 bits (128 possible characters).

The extended-ASCII character adds foreign language characters.

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

How many bytes to store one extended-ASCII character in a text file (e.g. ‘A’)?

A

8 bits = 1 byte

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

How many bytes to store ‘Monday’?

A

6 bytes

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

How many bytes to store a plain text email?
Assumptions:
- the average length of a word is 5 characters
- the average number of words in an email is 400

A

Character = 1 byte

Total Characters = 1 * 5 * 400 = 2000 bytes = 2KB

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

How many bytes to store a 64 * 64 pixel GIF?
Assumptions:
- colours can be represented with 3 bytes (one byte each for its red, green and blue values)

A

Around 12KB

64 * 64 * 3 = 12,288 bytes

17
Q
Estimating Data
-----------------------
How many bytes to store a 3 minute MP3 audio file?
Notes:
- 1 kbit = 125 bytes
- common MP3 quality is 256 kbit/s
A

Around 6 MB

256 * (60 * 3) * 125 = 5,760,000 bytes = 5.76 MB

18
Q

How many bytes to store a one hour film compressed as MPEG4?

A

4 GB

19
Q

What are UUIDs?

A

Universally Unique IDentifiers, that can be generated without the use of a centralized authority.

UUID collisions are extremely unlikely to happen, especially not in a single application space.

All UUIDs are 128 bits in length, but are commonly represented as 32 hexadecimal characters separated by four hyphens:

123e4567-e89b-12d3-a456-426614174000