System Design Atlas

Live and on-demand video streaming

08 / 10Worked example

Investigating bottlenecks

Which measurements explain stalled playback when the rights API is healthy?

The failure sequence shows where load and retries interact. The diagnostic plan treats measured waiting time, processing duration and business conflicts separately.

Starting point Check the existing digest and continue the same finalisation.

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.

Diagnose the limiting resource

Measure delivery pressure and digest conflict separately

Retrieval latency30 Gbit/s
Cache hit rate + origin loadMeasure
Manifest gapS-120 is missing
Object finalisation + digestcheck

1,667 requests/s load the delivery path; differing digests indicate an integrity problem.

Playback stalls despite a healthy API. Measure ingestion age, segment completion and delivery failures separately. Target the stage causing the delay.

From signal to action

SignalValidationReaction
Distinguish causes of bufferingPlayback is faltering despite a healthy API.Measure ingestion age, segment completion and delivery failures separately.
Conflicts on the shared entityTwo transcoders submit S-120 in the same generation. Test both completion orders: an identical digest is published once; different digests trigger quarantine, with no overwriting winner.Count expected conflicts separately from technical errors.
Peak test profile exceeded10,000 ÷ 6 s = approximately 1,667 segment requests/s in total, with one active variant per viewerMeasured delay remains concentrated in one stage.

Distinguish causes of buffering

Validation
Playback is faltering despite a healthy API.
Reaction
Measure ingestion age, segment completion and delivery failures separately.

Conflicts on the shared entity

Validation
Two transcoders submit S-120 in the same generation. Test both completion orders: an identical digest is published once; different digests trigger quarantine, with no overwriting winner.
Reaction
Count expected conflicts separately from technical errors.

Peak test profile exceeded

Validation
10,000 ÷ 6 s = approximately 1,667 segment requests/s in total, with one active variant per viewer
Reaction
Measured delay remains concentrated in one stage.

Distinguish causes of buffering

Distinguish causes of buffering

Measure ingestion age, segment completion and delivery failures separately.

Playback is faltering despite a healthy API.

Target the stage causing the delay.

Alternative considered
More API instances do not repair transcoding gaps.
Trade-off
Measurements must use comparable timestamps.
Reassess
Measured delay remains concentrated in one stage.

Terms in this step

Distinguish causes of buffering
Target the stage causing the delay.

Try it yourself

The player buffers, the rights API responds quickly. Name three measurement points and the conclusion.

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
Measure ingestion age, time to segment completion, and errors or latency at the delivery edge.
Second part of the solution
The stage showing the problem determines the action. More rights API instances cannot restore a missing source or accelerate transcoding.

Apply to your project

Which corresponding assumption would you check first in your project when measured delay remains concentrated in one stage?

Step 9 examines: Check rights on retrieval.