System Design Atlas

Live and on-demand video streaming

07 / 10Worked example

Critical flow

How does publication resume after a successful upload loses its completion event?

Trace the failure through the architecture: 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. Durable acceptance, actual effect and response are considered separately.

Starting point Object storage and the delivery network carry the media path.

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.

Failure point in the sequence

Object finalisation before manifest inclusion

S-120 bytes are finalised; the completion event is lost before manifest inclusion.

Transcoding worker
Object store
Manifest service
Manifest/Rights storage
Media operations
  1. 01 Transcoding worker → Object storeUpload S-120 + variant bytes
  2. 02 Object store → Transcoding workerObject finalised + digest
  3. 03 Transcoding worker · Local processingCompletion event is lost
  4. 04 Manifest service → Object storeTest S-120 and Digest
  5. 05 Object store → Manifest serviceComplete + digest confirmed
  6. 06 Manifest service → Manifest/Rights storageInclude S-120 in M-61
  7. 07 Manifest/Rights storage → Manifest serviceManifest committed
  8. 08 Media operations → Manifest serviceCheck for gaps
  9. 09 Manifest service → Manifest/Rights storageRead the authorised manifest sequence

Result: M-61 references S-120 only after confirmed object finalisation; a missing segment stays visible.

The digest enables resumption without overwriting bytes; the gap remains visible until finalisation is confirmed.

Upload succeeds but the completion event is lost. Check the existing digest and resume the same finalisation. S-120 is referenced exactly once.

Effect, response and recovery

Specific error
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.
Before and after commit
Commit durably completes the local change. Before commit, the old state remains valid; afterwards, an identical retry returns the stored outcome. Reconcile the external effect using its existing reference.
Retry behaviour
Send the completion event for S-120 with an identical digest twice: one manifest entry. The same segment ID with a different digest is blocked. Repeated GET can return media bytes but creates no new segment record.

Resume publication

Resume publication

Check the existing digest and continue the same finalisation.

Upload succeeds but the completion event is lost.

S-120 is referenced exactly once.

Alternative considered
New filename on each retry creates orphaned variants.
Trade-off
Object inventory needs cleanup.
Reassess
The object store cannot reliably verify finalisation.

Terms in this step

Resume publication
S-120 is referenced exactly once.

Try it yourself

Upload succeeds but the completion event is lost. Which validation allows processing to resume without creating another segment?

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
The worker verifies the existing digest and completed object finalisation for S-120.
Second part of the solution
It then resumes the same manifest update. Incomplete or conflicting bytes remain outside the published manifest.

Apply to your project

Which corresponding assumption would you check first in your project when the object store cannot reliably verify finalisation?

Step 8 examines: Distinguish causes of buffering.