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.
Loading...
Related Quiz
- What is the primary difference between OAuth 1.0 and OAuth 2.0?
- In Node.js, what is the purpose of the process.on('uncaughtException', handler) method?
- In Node.js, a buffer can be converted to JSON using the ______ method.
- In Express.js, the all method can be used to handle all HTTP methods, and it is equivalent to the ______ method in terms of functionality.
- You are developing a web application that needs to make API requests to a server on a different domain. How would you handle CORS to ensure that your web application can interact with the server without any issues?