0% completed
Capacity and data size estimations
adam.vaz
Jul 23, 2023
I've been reading through the different design problems and there's no explanation as to where the data size estimates are coming from (maybe I missed something). For example, with the instragram problem. Why is 500m users chosen? Why is 200Kb for the file size chosen? Then, why is 20 bytes chosen for name field and 32 bytes chosen for the email field? Is there a reference somewhere as to why these values are chosen? How do I make these estimations?
2
0
Comments
shekhart91 2 years ago
I would suggest take them as variables instead like x for name field and y for email etc. then at interview you can make an assumption about each and compute the size. This also gives flexibility to change the equation at interview time.
On this page
- What is Instagram?
Try it yourself
Designing Instagram (video)
- Requirements and Goals of the System
- Some Design Considerations
- Capacity Estimation and Constraints
- High Level System Design
- Database Schema
- Data Size Estimation
- Component Design
- Reliability and Redundancy
- Data Sharding
- Ranking and News Feed Generation
- News Feed Creation with Sharded Data
- Cache and Load balancing