System Design Flashcards

Master System Design Terms

1
Q

CPU Registers Access Time

A

0.5 nanoseconds

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

L1 cache access

A

0.9 nanoseconds

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

L2 cache access

A

2.8 nanoseconds

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

L3 cache access

A

12.9 nano seconds

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

Reading 1 MB from Memory

A

9 micro seconds

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

SSD Write Latency

A

100-1000 microseconds

Round trip in the same data center takes around 500 microseconds

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

Read 1MB sequentially from disk

A

2 ms

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

Disk seek time

A

4 ms

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

Intrazone network latency

A

5 ms

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

Network round trip between two zones (inter-zone) - including reading 1GB of sequential data from memory on the same server

A

1ms - 100ms

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

Password Hashing Algo

A

100ms - 1000ms

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

Response Time Equation

A

Time (latency) + Time (processing)

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

Effective API Average Response Time

A

0.1 - 1 second

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

Seconds to MicroSeconds

A

1 / 1000000 (µs)

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

Seconds to Milliseconds

A

1 / 1000 (ms)

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

Seconds to NanoSeconds

A

1 / 1000000000 (ns)

17
Q

DNS Lookup

A

time to resolve the IP address against a domain name through a DNS server

18
Q

TCP Handshake

A

time to establish an initial connection between the client and the server

19
Q

SSL/TLS handshake

A

time to create a secure communication channel for data exchange

20
Q

Transfer start

A

time to acquire the first byte of the requested data in the response message. Includes both RTT get/post (round trip time of get/post) messages and processing time at the server end

21
Q

Transfer start formula

A

RTT get/post + Time (processing)

22
Q

Download

A

Time taken by a client to fetch the complete data

23
Q

Base Time

A

Generally includes DNS lookup, TCP handshake and SSL/TLS handshake

24
Q

Latency

A

Base Time + RTT get/post + download time

25
Q

CPU Bound RPS formula

A

NumCPU / Task Time

26
Q

Memory Bound RPS formula

A

(RAM / Worker Memory) / Task Time

27
Q

GET / POST Base Time

A

Min - 120.5
Max - 201.5

28
Q

RTT GET

A

70ms

29
Q

RTT POST

A

260ms + (1.15 * size of request)

30
Q

Download Time GET

A

0.4 * size of response (ms)

31
Q

Download Time POST

A

1.7ms

32
Q

GET / POST Processing Time

A

Min - 4 ms
Max - variable

33
Q

Average size of an image

A

200KB

34
Q
A