System Design Flashcards
1
Q
Delivery Framework
A
- Requirements (5 min)
- Core Entities (2 min)
- API (5 min)
- (Optional) Data Flow (5 min)
- High Level Design (10 - 15 min)
- Deep Dives (10 min)
2
Q
Delivery Framework: Requirements
A
- Functional requirements (prioritize ~3)
- Non-functional
- (Optional) capacity estimation
3
Q
Non-functional requirements
A
- CAP Theorem (consistancy or performance)
- Environmental constraints
- Scalability (reads vs writes, hot spots)
- Latency
- Durability
- Security
- Fault Tolerance
4
Q
Metrics units
A
- Thousand = kilo
- Million = mega
- Billion = giga
- Trillion = tera
- Quadrillion = peta
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
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
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