Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
akashsonowal authored Dec 31, 2023
1 parent dda886b commit 8d5ea7f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions interview_prep/system_design/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Gather System Requirements
- FR
- NFR (Scale)
- NFR (Latency and Availability)

## Planning
- Data Model -> Core functionality
- User Flow

## Estimation
- 1 Estimation Cheat Sheet.
Units Cheat Sheet
These values are defined by the International System of Units.
* 1kB = 1000 bytes
* 1MB = 1000kB
* 1GB=1000MB
* 1TB =1000GB
* 1PB=1000TB
Storage Scale Cheat Sheet
* Acharacter
=>1 byte
* Typical metadata for a "thing," excluding images (name, description, other attributes, etc.)
=>~1-10KB
* A high-quality 1920x1080p image
=> ~2M8 (realistically can be lossy-compressed by ~10-20x)
* 20 minutes of HD video
=>~1GB
Storage Capacity Cheat Sheet
How much storage can a single industry-grade machine have?
« ~1078 disk space
« ~256GB-1TB of RAM (178 for really large/optimized machines)
Latency Cheat Sheet
How long does it take for a regular HTTP request to make a round trip, not bound by bandwidth?
« Intra-continental
=>~50-150ms
« Cross-continental
=>~200-500ms
Bandwidth Cheat Sheet
« Mobile phone (4G)
=> ~13MB/s
« Public internet (home WiFi)
=> ~50-100MB/s
« Within a data center
=> ~5GB/s

0 comments on commit 8d5ea7f

Please sign in to comment.