System Design Flashcards

1
Q

Delivery Framework

A
  1. Requirements (5 min)
  2. Core Entities (2 min)
  3. API (5 min)
  4. (Optional) Data Flow (5 min)
  5. High Level Design (10 - 15 min)
  6. Deep Dives (10 min)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Delivery Framework: Requirements

A
  1. Functional requirements (prioritize ~3)
  2. Non-functional
  3. (Optional) capacity estimation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Non-functional requirements

A
  • CAP Theorem (consistancy or performance)
  • Environmental constraints
  • Scalability (reads vs writes, hot spots)
  • Latency
  • Durability
  • Security
  • Fault Tolerance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Metrics units

A
  • Thousand = kilo
  • Million = mega
  • Billion = giga
  • Trillion = tera
  • Quadrillion = peta
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Common latencies

A
  • Reading 1 mb sequentially from memory = 0.25 ms
  • Reading 1 mb sequentially from SSD = 1 ms
  • Reading 1 mb sequentially from spinning disk = 20 ms
  • Round trip network latency CA to Netherlands = 150 ms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Common storage

A
  • 2-hour movie = 1 gb
  • Small book of plain text = 1 mb
  • High-resolution photo = 1 mb
  • Medium-resolution image or web graphic = 100 kb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Common domain estimtations

A
  • DAUs on a social media network = 1b
  • Hours of video streamed on netflix/day = 100 m
  • Google searches/second = 100k
  • Size of Wikipedia = 100 gb
How well did you know this?
1
Not at all
2
3
4
5
Perfectly