You are developing a media hosting platform where users can upload images and videos. How would you design the file storage and retrieval system to ensure high availability and low latency for users across the globe?

  • Use a content delivery network (CDN) to cache and distribute media files to edge servers around the world.
  • Store all media files on a single, centralized server to simplify management.
  • Use a local file storage system for each region separately.
  • Implement a peer-to-peer (P2P) system for users to share media directly.
To ensure high availability and low latency, using a CDN is the recommended approach. CDNs cache content on edge servers located across the globe, reducing the distance between users and the data they request. The other options may lead to latency issues and lower availability.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *