System Design Atlas

Live and on-demand video streaming

05 / 10Worked example

Authoritative data and states

How does the exclusive end of a playback right affect new requests?

The interfaces need authoritative state. 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. The table separates current states from supporting evidence.

Starting point Check the sequence, generation and digest together.

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.

Data relationships and permitted transitions

Channel, segment sequence, manifest and playback right

Channel L-61Generation + state
L-61 → S-1201:n segments
Segment S-1206 s · 3 variants
S-120 → M-61Only when complete
Manifest M-61Unchangeable references
R-61 → M-61Authorise retrieval
Right R-61[12:00, 13:00) UTC
vorbereitet → live ↔ unterbrochenlive/unterbrochen → beendetArchive review → approved → blocked

Manifest and archive reference immutable segments; R-61 remains its own temporal access proof.

A right expires exactly at 13 o'clock. Use a half-open validity interval. The expiry instant is unambiguous and testable.

Entities and relationships

EntityAuthoritative dataResponsibility
Channel L-61Ingestion, publication, rights profileCombines live source and archive.
Segment S-120Sequence, duration 6 s, content digestImmutable media bytes.
Manifest M-61Generation, available segments and variantsShows only finished objects.
Playback rights R-61Viewer, channel, beginning, endChecked at each protected call.
Archive versionComplete segment range, approvalCreated after the live input is completed.

Channel L-61

Authoritative data
Ingestion, publication, rights profile
Responsibility
Combines live source and archive.

Segment S-120

Authoritative data
Sequence, duration 6 s, content digest
Responsibility
Immutable media bytes.

Manifest M-61

Authoritative data
Generation, available segments and variants
Responsibility
Shows only finished objects.

Playback rights R-61

Authoritative data
Viewer, channel, beginning, end
Responsibility
Checked at each protected call.

Archive version

Authoritative data
Complete segment range, approval
Responsibility
Created after the live input is completed.

Permitted state transitions

Starting pointTargetCondition
vorbereitetliveSource authenticated and first variants available.
liveunterbrochenInput or segment sequence missing.
unterbrochenliveNew valid sequence with visible discontinuity.
live or unterbrochenbeendetEditors end ingestion.
beendetarchiv_in_prüfungThe archive segment range is reviewed.
archiv_in_prüfungarchiv_freigegebenCompleteness and rights are evidenced.
archiv_freigegebengesperrtRight ends or editorial blocks publication.

vorbereitet

Target
live
Condition
Source authenticated and first variants available.

live

Target
unterbrochen
Condition
Input or segment sequence missing.

unterbrochen

Target
live
Condition
New valid sequence with visible discontinuity.

live or unterbrochen

Target
beendet
Condition
Editors end ingestion.

beendet

Target
archiv_in_prüfung
Condition
The archive segment range is reviewed.

archiv_in_prüfung

Target
archiv_freigegeben
Condition
Completeness and rights are evidenced.

archiv_freigegeben

Target
gesperrt
Condition
Right ends or editorial blocks publication.

Time-limit rights

Time-limit rights

Use a half-open validity interval.

A right expires exactly at 13 o'clock.

The end time is clear and testable.

Alternative considered
Inclusive endpoints overlap adjacent rights intervals.
Trade-off
Clock synchronisation is part of the contract.
Reassess
Offline licenses are required.

Terms in this step

Time-limit rights
The end time is clear and testable.

Try it yourself

Check R-61 immediately before, at and immediately after 13:00 UTC. Explain the limit of already delivered bytes.

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
12:59:59.999 is valid. 13:00:00.000 and later are outside the half-open window and are rejected.
Second part of the solution
Already delivered bytes are not recallable. The contract limits new retrievals and does not claim a subsequent removal from the device.

Apply to your project

Which corresponding assumption would you check first in your project when offline licences are required?

Step 6 examines: Separate media and control.