Design and evidence
Which tests establish complete segment publication and time-limited access?
The final design reuses the complete runtime topology from step 6. Test markers connect key decisions to expected results and earlier steps to revisit. The following items form a test plan; measured evidence is still outstanding.
Starting point Authorise protected segment requests at the delivery edge.
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.
Overall architecture with evidence
Runtime architecture · separate media and control paths
- 1 · Accept source
- 2 · Finalise variants
- 3 · Publish manifest
- 4 · Authorise and deliver
Media platform
Media volume flows through object storage and delivery; manifests and rights remain on the control path.
Test plan with review loops
| Validation | Expected result | Return to an earlier step |
|---|---|---|
| Concurrency in both orders | 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. | Steps 3 and 5 |
| Identical and changed retries | 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. | Step 4 |
| Exact value or time limit | 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. | Steps 2 and 5 |
| Lost response and restart | 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. | Steps 7 and 9 |
Concurrency in both orders
- Expected result
- 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.
- Return to an earlier step
- Steps 3 and 5
Identical and changed retries
- Expected result
- 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.
- Return to an earlier step
- Step 4
Exact value or time limit
- Expected result
- 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.
- Return to an earlier step
- Steps 2 and 5
Lost response and restart
- Expected result
- 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.
- Return to an earlier step
- Steps 7 and 9
First end-to-end validation
- End-to-end path
- Test S-120 with response loss and R-61 at its expiry instant. The manifest contains completed bytes; retrieval ends at the validity boundary.
- Open decision
- Further channels and quality levels will then be added. Rights purchasing, global rights consulting, full DRM implementation and interactive video conferencing require their own follow-up design.
Test gaps and rights expiry
Test S-120 with response loss and R-61 at its expiry instant.
Normal playback hides two critical failure cases.
The manifest references completed bytes; retrieval stops at the validity boundary.
- Alternative considered
- A screenshot of the player does not prove both rules.
- Trade-off
- Tests need controlled time and object states.
- Reassess
- Further channels and quality levels will then be added.
Terms in this step
- Test gaps and rights expiry
- The manifest references completed bytes; retrieval stops at the validity boundary.
Try it yourself
For an unfinished segment and expired rights, identify a test, responsible module and earlier design step to revisit.
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
- Delay object finalisation: the manifest service may reference S-120 only afterwards; failures return to step 2/4.
- Second part of the solution
- Request with R-61 exactly at 13 o'clock: the delivery edge rejects it; failures return to step 5/9. Both tests are separate from seeing the player start.
Apply to your project
Which corresponding assumption would you check first in your project when more channels and quality levels are added?
Start your own design
Choose a small case from your project. The template collects the ten design tasks and leaves space for your sketches, decisions, and open assumptions. You can edit it in your text editor or note-taking app.
Download design template (.md)Compare the ten tasks with the example case
Purpose and boundary
Which corresponding assumption would you check first in your project when a separate archive workflow becomes unnecessarily complex?
In the example: Treat the archive as a separately reviewed publication. The end of a live stream does not prove that its archive is complete.
Requirements
Which corresponding assumption would you check first in your project when another streaming method explicitly supports partial segments?
In the example: Include a segment only after confirmed object finalisation. The player receives no deliberately premature file references.
Scale estimates
Which corresponding assumption would you check first in your project when measured cache hit rates or viewer distribution change?
In the example: Plan 30 Gbit/s delivery separately from the control API. Media bytes dominate throughput.
Interfaces
Which corresponding assumption would you check first in your project when a source change requires another continuity model?
In the example: Check the sequence, generation and digest together. The same identity with different bytes is explicitly blocked.
Data and states
Which corresponding assumption would you check first in your project when offline licences are required?
In the example: Use a half-open validity interval. The expiry instant is unambiguous and testable.
Overall architecture
Which corresponding assumption would you check first in your project when a small internal audience allows simpler operations?
In the example: Object storage and the delivery network carry the media path. A player request does not require a transaction for every video byte.
Critical flow
Which corresponding assumption would you check first in your project when the object store cannot reliably verify finalisation?
In the example: Check the existing digest and continue the same finalisation. S-120 is referenced exactly once.
Bottlenecks and trade-offs
Which corresponding assumption would you check first in your project when measured delay remains concentrated in one stage?
In the example: Measure ingestion age, segment completion and delivery failures separately. Only the slow stage receives the appropriate intervention.
Operations and security
Which corresponding assumption would you check first in your project when rapid blocking needs stricter revocation latency?
In the example: Authorise protected segment requests at the delivery edge. An old manifest does not extend R-61.
Final design
Which corresponding assumption would you check first in your project when more channels and quality levels are added?
In the example: Test S-120 with response loss and R-61 at its expiry instant. The manifest contains completed bytes; retrieval ends at the validity boundary.