System Design Atlas

Live and on-demand video streaming

02 / 10Worked example

Business rules and operational targets

What order prevents manifest references to unfinished segments?

The system boundary establishes these domain rules: a published manifest references only fully available immutable segments. Requests are allowed only within the rights validity interval. The same sequence and generation must never identify different media bytes. An operational target describes a measurable property and initially remains a test assumption.

Starting point Treat the archive as a separately reviewed publication.

Assumptions for the example case

Fictitious example design: a live channel followed by an on-demand archive; three quality levels; six-second segments; time-limited playback rights. Figures and quality targets are illustrative test assumptions. Rights acquisition, global rights advice, full DRM implementation and interactive video conferencing are outside scope.

Rules governing the result

Publication checks · object, digest, sequence and rights

Object finalisedComplete bytes
Digest confirmedGeneration + S-120 uniquely identified
Complete sequenceKeep the gap visible
Playback right valid12:00 ≤ t < 13:00

If the completion event is missing, the worker checks the existing digest before updating the manifest.

M-61 references only fully available immutable segments; R-61 limits retrieval to a half-open interval.

A manifest can be ready before the video file. Include the segment only after confirmed object finalisation. The player receives no premature file references.

Business requirements (functional)

Further reading
Invariant
A published manifest references only fully available immutable segments. Requests are allowed only within the rights validity interval. The same sequence and generation must never identify different media bytes.
Boundary test
Call at 12:59:59.999 UTC is allowed for R-61; at 13:00:00.000 and 13:00:00.001 UTC it is rejected. Already delivered bytes are not recalled by expiration.
Unresolved outcome
Segment bytes are uploaded, but the completion event is lost. The worker checks the existing digest and resumes publication. The manifest is updated only after object finalisation is confirmed; a missing segment remains visible as a gap.

Quality goals (non-functional)

Further reading
Local acceptance
Illustrative target: 95% of local management commands complete within 800 ms while delivery handles 10,000 ÷ 6 s = approximately 1,667 segment requests/s in total, with one active variant per viewer. Measure external execution and media transmission separately.
Traceability
Every rejected or open operation shows its reason, latest evidenced state and responsible role. Check this in a sample after the failure from step 7.

Require completed segments

Require completed segments

Include a segment only after confirmed object finalisation.

A manifest can be ready before the video file.

The player receives no premature file references.

Alternative considered
Publishing references early increases failures when uploads are delayed.
Trade-off
Publication awaits completion.
Reassess
Another streaming method allows explicit subsegments.

Terms in this step

Require completed segments
The player receives no premature file references.

Try it yourself

S-120 is still uploading, while M-61 is ready. Specify the publication order and expected failure-test outcome.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
First confirm complete segment bytes and their digest, then add the reference to M-61.
Second part of the solution
A manifest reference to an unfinished object violates the promise; the test holds the manifest until the object is completed.

Apply to your project

Which corresponding assumption would you check first in your project when another streaming method explicitly supports partial segments?

Step 3 examines: Calculate media throughput.