Loading...
Loading...
Design a video-sharing platform similar to YouTube, where users can upload videos and watch content through online streaming. The system must support large video files and provide a reliable viewing experience across different network conditions, including environments with limited bandwidth.
The central challenge is handling large video uploads and delivering video streams efficiently at scale. Individual videos may be tens of gigabytes in size, making upload and streaming performance important considerations. Users should be able to upload large files without requiring a single uninterrupted network connection, and interrupted uploads must be resumable.
Video playback introduces a different performance requirement. Users should be able to start watching videos with minimal delay, even when their network bandwidth is limited. The system must prioritize efficient streaming while remaining highly available, favoring availability over strict consistency.
The platform must scale to approximately 1 million video uploads per day and 100 million video views per day. These workloads require the system to support both large incoming video files and substantially higher volumes of video consumption.
The design focuses on video uploads, resumable transfers, and low-latency video streaming. Video search, recommendations, comments, view counts, channel management, subscriptions, content moderation, bot prevention, and detailed monitoring infrastructure are outside the scope.
Video Uploads: Users can upload videos to the platform, including large video files that may reach tens of gigabytes.
Resumable Uploads: Users can resume interrupted video uploads without restarting the entire transfer from the beginning.
Video Streaming: Users can watch uploaded videos through online streaming. The system must support video playback under varying network conditions, including low-bandwidth environments.
High Availability: Prioritize availability over strict consistency so users can continue uploading and watching videos even when some updates have not fully propagated.
Large File Support: Support uploading and streaming videos that are tens of gigabytes in size.
Low-Latency Streaming: Minimize video playback startup delay and provide efficient streaming, including for users with limited network bandwidth.
Scalability: Support approximately 1 million video uploads per day and 100 million video views per day.
Upload Reliability: Support resumable video uploads to accommodate interrupted transfers and unreliable network connections.