Video Platform Capacity Planning
Design an internal forecasting system that identifies the demand, resource, and price information needed to estimate a video platform's next-year infrastructure costs. Include expiring short videos through versioned media-lifecycle inputs and storage occupancy over time. The same planner supports configured forecast horizons and measured URL-parsing or optional opaque-inference resource profiles without borrowing video inputs.
Problem statement
For this exercise, assume an internal capacity-planning service must estimate infrastructure costs over a configured forecast interval; the existing next-year video-sharing workload is the default profile.
It should combine measured demand, stored media inventory, processing work, regional delivery traffic, reliability headroom, and versioned unit prices; produce baseline, low-growth, and high-growth forecasts; and explain which inputs drive each estimate.
A forecast must be reproducible from one immutable input snapshot, retries must not double-count telemetry, and actual-versus-forecast comparisons must use the same resource definitions. Advertising, creator payouts, staffing, and financial accounting beyond infrastructure consumption are out of scope.
The planning model must support a short-video workload with upload duration at most one minute and a chosen media TTL between 5 and 24 hours. For this exercise, the TTL starts at accepted upload time and applies to source media and its serving renditions; later rendition creation does not restart that expiry.
Model the bytes physically present as arrival cohorts age out, including explicitly measured deletion delay and any separately declared retained copies. Do not confuse this media lifecycle with the longer retention of planning telemetry and forecast outputs.
Ask for the short-workload arrival rates, source/rendition byte distribution, TTL mix and lifecycle timing; duration alone does not determine bytes. The existing generic baseline figures are practice inputs, not measurements reported for this short-video workload.
For this exercise, also support a URL-processing planning profile with an immutable scenario version and explicit start-inclusive, end-exclusive UTC forecast boundaries; a planner may select a six-calendar-month future interval. Keep the historical measurement window separate from the forecast interval.
Ask the client for request volume and arrival shape, input/output byte distributions, fetch and parsing work, measured active-job memory and duration, retries or reuse, retained data and regional transfer, and effective-dated resource prices.
An explicitly enabled opaque inference stage adds measured CPU or accelerator work, model/runtime version and resource occupancy; a profile may instead disable inference. Estimate infrastructure consumption and capacity, not model training or the factual quality of a bias result.
The video figures, rendition factors, TTLs and growth range are defaults for the video profile only; they are not URL-document measurements.
What to build
- The service ingests versioned demand, inventory, utilization, reliability-headroom, regional traffic, and unit-price inputs with source and quality metadata. Media inputs must include a versioned workload/lifecycle policy, duration, byte and TTL mix, creation/expiry timing and observed deletion or retained-copy footprint needed to estimate live inventory. Each scenario also binds its forecast interval and workload-profile version, independently of the historical observation window; a URL profile records measured parsing and explicitly enabled or disabled inference resource drivers.
- A planner can generate baseline, low-growth, and high-growth forecasts broken down by time, region, workload, resource, and cost driver.
- A planner can inspect assumptions and sensitivities and compare prior forecasts with actual consumption using stable resource definitions.
At scale
- Assume 20 million daily active users, about 1 million new uploads per day averaging 600 MB, and about 200 million playback starts per day.
- Assume each source upload produces several renditions whose total stored bytes are roughly twice the source size, and playback traffic is served from three major regions.
- Plan for next-year demand growth between 30% and 80%, plus explicit capacity headroom for regional failover and event peaks.
- Keep hourly driver data for 90 days and daily aggregates for three years; publish a new forecast snapshot daily and return common drill-downs within 2 seconds.
- For the short-video workload, uploads are at most one minute and selected media TTLs range from 5 to 24 hours. Treat its upload/rendition bytes and arrival/TTL mix as measured or explicitly assumed scenario inputs; model physical cleanup delay and separately retained copies. The 90-day and three-year periods above retain driver data, not all uploaded media.
- For the URL profile, use client-supplied or explicitly declared scenario rates, byte sizes, measured processing time and active-job memory, retention, regional traffic and prices. A six-calendar-month forecast is an optional configured interval; six months of past observations is not a forecast horizon. No numeric URL demand, growth multiplier, model resource cost or required accelerator is preselected.