You need to design a media storage system that can handle millions of users uploading images and videos daily. Which architectural component is most critical to ensure scalability and fast access?
Think about separating file storage from metadata and how to handle large scale.
Distributed object storage allows scalable, durable storage of large media files. Metadata is stored separately for efficient querying. This separation supports scalability and performance.
Your CDN is delivering media content globally. Suddenly, a viral video causes a huge spike in traffic. What is the best way to handle this spike without degrading user experience?
Consider how CDNs reduce load on origin servers during high traffic.
CDN edge caching serves content close to users, reducing origin load. Automatic scaling of edge nodes helps handle spikes smoothly.
When designing a CDN for media delivery, you must choose between push and pull models. Which tradeoff is true?
Think about when content is sent to edge servers in each model.
Push CDN sends content to edges ahead of time, increasing storage but reducing latency on first request. Pull CDN fetches content on demand, saving storage but adding latency initially.
Which component is essential in a CDN architecture to ensure media content is delivered efficiently and securely?
Consider which component reduces latency and bandwidth usage.
Edge servers cache content near users, reducing latency and origin load. They are critical for efficient CDN delivery.
Your service expects 10 million daily active users uploading 5 MB average media files each, and 100 million daily views with average 3 MB per view. Estimate the daily storage and bandwidth requirements for the CDN.
Calculate storage from uploads and bandwidth from views multiplied by average sizes.
Storage = 10M users * 5 MB = 50 TB daily. Bandwidth = 100M views * 3 MB = 300 TB daily.
