System Design Atlas

Live and on-demand video streaming

06 / 10Worked example

The overall architecture

Which runtime boundaries separate media delivery from publication control?

The data contract leads to this topology: live source → ingestion process → transcoding worker → media object store → delivery network → player. Publication API → manifest and rights store; the manifest service reads completion evidence and publishes M-61. The player queries the rights API; the delivery network checks channel authorisation on protected requests. Internal modules define domain code boundaries; a separate process has its own operational lifecycle.

Starting point Use a half-open validity interval.

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.

Runtime architecture

Runtime architecture · separate media and control paths

Live sourceExternal stream

Media platform

Ingestion processSource + sequence
Transcoding workerThree variants
Media object storeSegment bytes
Publication APIEditorial approval
Manifest serviceObject completion evidence
Manifest and rights storageM-61 + R-61
Rights APITime window
Delivery networkProtected media
PlayerManifest + Segments
Live source → Ingestion processLive channel
Ingestion process → Transcoding workerSource segments
Transcoding worker → Media object storeVariant bytes
Media object store → Delivery networkunchangeable segments
Delivery network → PlayerMedia bytes
Publication API → Manifest and rights storageApproval + rights
Media object store → Manifest serviceEvidence of completed objects
Manifest service → Manifest and rights storagePublish M-61
Player → Rights APITest R-61
Rights API → Manifest and rights storageReading the window
Delivery network → Rights APIValidate channel playback right

Media volume flows through object storage and delivery; manifests and rights remain on the control path.

Segment delivery is much larger than manifest maintenance. Object storage and the delivery network carry the media path. A player request requires no transaction per video byte.

Domain modules within the application

Inside publication · five domain modules

InputSource + Interruption
Variant generation1 / 3 / 6 Mbit/s
Segment publicationSequence + Digest
Rights validationChannel + Person + Time
Archive finalisationComplete range

Segment publication connects digest and completion evidence; rights validation remains separate from the media-byte path.

Ingestion validates the source and detects interruptions. Variant generation creates the three quality levels. Segment publication binds sequence and digest to completed objects. Rights validation checks channel, viewer and validity interval. Archive finalisation combines a complete segment range with approval.

Operational boundaries

Runtime
Live source → ingestion process → transcoding worker → media object store → delivery network → player. Publication API → manifest and rights store; the manifest service reads completion evidence and publishes M-61. The player queries the rights API; the delivery network checks channel authorisation on protected requests.
Persistence
Transactional store for channel L-61, segment S-120 and manifest M-61. Authoritative changes and retry results are persisted together; external effects require separate evidence.

Separate media and control

Separate media and control

Object storage and the delivery network carry the media path.

Segment delivery is much larger than manifest maintenance.

A player request does not require a transaction for each video byte.

Alternative considered
Streaming through the management API couples load and rights management.
Trade-off
Multiple operational boundaries need coordination.
Reassess
A very small internal audience permits simpler operations.

Terms in this step

Separate media and control
A player request does not require a transaction for each video byte.

Try it yourself

Draw the media path and the control path separately and identify their common reference.

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
Live source, input, transcoding, object storage, delivery network and player form the media path.
Second part of the solution
Rights API and manifest service control access to the same channel and finished segment generations; media bytes do not run through the management API.

Apply to your project

Which corresponding assumption would you check first in your project when a small internal audience allows simpler operations?

Step 7 examines: Resume publication.