Learning pathsPricingChecking sign-in…
Question Breakdowns

Video Streaming

Design Netflix or Prime Video on-demand playback: ingestion, manifests, adaptive bitrate, CDN, rights and recovery.

Video Streaming: Understand the building blocks

Choose a mechanism because it satisfies a requirement. These explanations describe the exercise design, not undisclosed implementation choices at the named company.

Video Streaming: Quick vocabulary

TermMeaning and role in this exercise
API: Application Programming InterfaceThe contract for requests, responses and errors between components. An API route does not itself enforce every business invariant.

Video Streaming: Content Delivery Network (CDN)

What it means: A CDN serves cacheable content from distributed locations nearer viewers, reducing repeated origin reads and network distance.

Why this problem needs it: Netflix-style on-demand playback repeatedly serves large shared media bytes.

How to use it: Use stable versioned media URLs, a bounded cache policy, and the agreed signed-access or entitlement checks. Plan cold-cache and miss admission at the origin.

Example in this design: The catalog/session API authorizes while the CDN/origin path supplies segments.

When it fits: Useful when many geographically distributed users fetch the same media bytes.

Alternative and limits: Direct object storage/origin delivery can fit a small workload. A CDN neither transcodes media nor independently knows every rights change.

Video Streaming: Transcoding and a dependency graph

What it means: Transcoding converts input media into required encoded outputs. A dependency graph records which validation/encoding/packaging steps must finish before publication.

Why this problem needs it: One title needs compatible renditions before release.

How to use it: Create versioned jobs for required renditions, bound compute concurrency, retry failed attempts safely, and mark the manifest ready only after required outputs are verified.

Example in this design: Verify required outputs before exposing a ready manifest.

When it fits: Useful when uploads must play on different devices or at multiple bandwidth levels.

Alternative and limits: Serving an already compatible source can be a simpler baseline. A completed task does not imply all outputs or a newer input generation are ready.

Video Streaming: Adaptive Bitrate (ABR), renditions and segments

What it means: A rendition is an encoded bitrate/resolution version; a segment is a short time interval of media. ABR selects a suitable rendition for upcoming intervals.

Why this problem needs it: The player must react to changing bandwidth.

How to use it: Estimate throughput and buffer health; switch only at compatible aligned boundaries. The manifest identifies available versions and segments.

Example in this design: Six seconds at 3 Mbps is 18 Mbit; 1.5 Mbps throughput takes 12 seconds, exceeding an eight-second buffer.

When it fits: Useful when viewer bandwidth changes and the player must trade picture quality against stalls.

Alternative and limits: A fixed rendition is simpler but may stall or waste bandwidth. ABR cannot fix missing segments or incompatible encodings.

Video Streaming: HTTP Live Streaming (HLS), DASH and manifests

What it means: HLS distributes media through HTTP playlists and segment requests. DASH means Dynamic Adaptive Streaming over HTTP and uses its own presentation description; they are packaging/player protocol choices.

Why this problem needs it: Manifest and segment packaging must match the intended player/device set.

How to use it: Prepare compatible renditions and manifest entries, publish references only to verified media, and configure live-playlist freshness for the latency contract.

Example in this design: Switch to an aligned lower-bitrate rendition without changing playback time.

When it fits: Useful when supported players should fetch adaptive media through HTTP caches.

Alternative and limits: Select the protocol by device support, latency and media protection requirements. A manifest is an index of media, not the video bytes or a rights decision.

Mechanism reference

Video Streaming: Digital Rights Management (DRM) and playback entitlement

What it means: Entitlement is the application’s decision that an account may watch; DRM controls protected media/key use through compatible playback and licensing mechanisms.

Why this problem needs it: Licensed content may need controlled key use in addition to media URLs.

How to use it: Authorize a playback session and the supported license/key path, set expiry/revocation policies, and protect sensitive credentials.

Example in this design: A playback session and supported license path independently enforce the stated entitlement policy.

When it fits: Useful when content licensing requires controlled protected playback.

Alternative and limits: Signed media URLs can restrict fetches but are not equivalent to DRM. Neither mechanism guarantees that all capture or copying is impossible.

Video Streaming: CDN supplies shared segments; API authorizes playback; Six seconds at 3 Mbps contains 18 Mbit; At 1.5 Mbps download takes 12 seconds: stall risk; ABR can choose 1 Mbps: download takes 4 seconds
Video Streaming: connect a named mechanism to the requirement and an exact exercise trace.
Read the diagram

CDN supplies shared segments; API authorizes playback; Six seconds at 3 Mbps contains 18 Mbit; At 1.5 Mbps download takes 12 seconds: stall risk; ABR can choose 1 Mbps: download takes 4 seconds

Open original
Video Streaming: worked example
Video Streaming: CDN supplies shared segments; API authorizes playback; Six seconds at 3 Mbps contains 18 Mbit; At 1.5 Mbps download takes 12 seconds: stall risk; ABR can choose 1 Mbps: download takes 4 seconds

Video Streaming: connect a named mechanism to the requirement and an exact exercise trace.

Understand the playback problem

For “design Netflix” or “design Prime Video,” ask whether the interviewer wants on-demand playback, a content catalog, recommendations, subscriptions or live sports. This lesson designs an original on-demand service: authorized viewers choose a published title and play it across varying networks. Content is supplied by a controlled publishing pipeline. User-generated upload and live ingest have different control and latency requirements; compare YouTube and Live Video Streaming. Product names describe exercises, not actual company architectures.

A rendition is an encoded version at a particular bitrate/resolution. A segment is a short media chunk. A manifest tells the player which renditions/segments exist. Adaptive bitrate playback changes the next segment's rendition using measured throughput and buffer health. A CDN caches media near viewers; it does not decide whether an account is entitled to watch a title.

Clarify before drawing

Ask the interviewerAssumption for this exerciseWhat changes if the answer differs
Playback, recommendations or billing first?Catalog selection and playbackRecommendation ranking/billing need separate state and correctness contracts
On-demand or live?Immutable on-demand mediaLive manifests advance under a latency budget
Content providers or arbitrary user uploads?Controlled licensed-content ingestionPublic uploads require abuse checks and uploader lifecycle
Devices, codecs, languages and accessibility?Web/mobile/TV, several renditions, captions and alternative audioEncoding ladder, device compatibility and publishing completeness change
Concurrent viewers, popular-title skew and quality?One million concurrent viewers, 3 Mbps mean video bitrateEgress and cache placement dominate different cost regimes
Startup/rebuffer target and allowed degradation?Illustrative p95 start under 2 seconds and rebuffer ratio under 1% for supported networksMore startup buffer trades latency for fewer stalls; targets require measurement
Entitlement, geographic rights and offline downloads?Online playback with title/region policy; downloads excludedLicense lifetime, revocation and offline storage become additional boundaries
Regional failure and cost ceiling?Media served through CDN; control-plane failover with bounded session policyMulti-region ownership and delivery alternatives need explicit trade-offs

Start: “I’ll design choosing and playing a published title, including rights checks and adaptive delivery. I’ll keep billing and recommendations outside the first design. Shall I use one million concurrent viewers as the peak assumption?” Confirm instead of silently importing every product feature.

Estimate what changes the design

One million viewers × 3 Mbps = 3 Tbps of encoded media delivery, before overhead. A two-hour title at 3 Mbps is 2.7 GB in decimal units. A six-second segment at that rate is 2.25 MB. At 10,000 playback starts/s, the session API is much smaller in bytes than the media path but still needs admission, authorization and license capacity. Distinguish media bandwidth, request rate and concurrent users.

Do not size the origin for the average CDN hit ratio alone. A new popular title, cache eviction or failover can create an origin burst. Preposition likely popular renditions where justified, protect the origin with a shield/coalescing tier, and cap misses. Keep an explicit cost model: delivered GB, origin GB, stored renditions, transcode compute and license/control requests.

Model publishing and sessions

Contract / pseudocode
titles(title_id,metadata,rights_policy_version,published_generation)
assets(title_id,generation,rendition_id,segment_index,immutable_key,checksum)
publications(title_id,generation,state,verified_manifest_key)
playback_sessions(session_id,user_id,title_id,rights_version,expiry,state)
watch_progress(user_id,profile_id,title_id,revision,position_seconds)

Publishing is a conditional transition: generation g7 becomes playable only after every required referenced output passes validation and its rights policy is ready. Generation g6 remains a coherent version until the new pointer commits. A manifest must never mix segments from different source generations by accident. Store immutable media keys; update the metadata pointer atomically at its owner. Keep caption/audio accessibility requirements in the publication check, not as an afterthought.

Contract / pseudocode
GET /catalog?cursor=... -> bounded titles, nextCursor
POST /playback-sessions {titleId,deviceCapabilities,requestKey}
  -> sessionId, authorizedManifestUrl, expiry, licenseConfiguration
GET /playback-sessions/{id} -> current state or explicit denial
PUT /profiles/{id}/progress {titleId,expectedRevision,positionSeconds}

The session API authenticates the viewer, checks object/title entitlement and applicable region/device policy, and returns short-lived access under a declared lifetime. Do not cache an account-specific authorization response as a public catalog object. A cacheable manifest still needs access enforcement on the serving path. Define concurrency limits for sessions and how a crashed device releases its slot.

Separate control decisions from media delivery

A viewer obtains an authorized playback session; media requests go to the CDN and private origin rather than through the session API.
Authorization and large-byte delivery have different owners and scaling pressures.
Read the diagram

Viewer asks playback service for a title and device profile → Control path checks rights and published asset generation → Session returns a short-lived playback credential and manifest → Player reads the manifest; selects a compatible rendition → Media path: CDN serves immutable segments; origin fills misses → Player adapts bitrate and sends quality telemetry separately

Open original
Start playback: control first, media next
A viewer obtains an authorized playback session; media requests go to the CDN and private origin rather than through the session API.

Authorization and large-byte delivery have different owners and scaling pressures.

The first baseline has a catalog/session service, authoritative metadata/entitlement store, object storage for verified media, and CDN delivery. A publishing job prepares renditions and a verified manifest. The viewer obtains a session, fetches the manifest and then requests media segments. Explain a successful path before adding an elaborate service fleet. Add a job queue only for publishing work whose durable job identity and retry policy are explicit.

For protected content, a supported DRM/license system provides device-specific protected-media access. W3C Encrypted Media Extensions is a browser interface for interacting with key systems; it is not the license service or an access-control policy. Signed URLs alone do not provide equivalent content protection. Do not invent a proprietary encryption scheme during the interview; state the key/license boundary, expiry and supported device assumptions.

Walk through a player decision

At 3 Mbps, a six-second segment contains about 18 Mbit. If measured throughput falls to 1.5 Mbps, fetching it takes about 12 seconds before overhead. With only eight seconds buffered, continuing that rendition risks a stall. A 1 Mbps rendition of the same six-second interval is about 6 Mbit and takes about four seconds; it can refill the buffer under these illustrative conditions. Aligned switching points and device-compatible encodings are prerequisites, not consequences of a CDN.

A player with eight seconds buffered selects a lower aligned rendition after bandwidth falls; encoding and delivery time are kept in distinct units.
Explain the throughput-to-buffer decision using actual segment quantities.
Read the diagram

6-second segment at 3 Mbps = 18 Mbit → At 1.5 Mbps throughput, download takes 12 seconds → Only 8 seconds buffered: stall risk without adaptation → Choose 1 Mbps rendition: 6 Mbit downloads in 4 seconds → A completed 6-second segment replenishes playable buffer → Adapt using measured throughput and buffer; include overhead

Open original
Can the next segment arrive before the buffer empties?
A player with eight seconds buffered selects a lower aligned rendition after bandwidth falls; encoding and delivery time are kept in distinct units.

Explain the throughput-to-buffer decision using actual segment quantities.

The player considers recent throughput, buffer health and stability; one instantaneous sample can cause oscillation. Startup begins with a safe initial rendition and a limited buffer. Prefetch is bounded so a paused or abandoned session does not download a whole title. Retry failed segment delivery within a deadline; do not retry indefinitely while the buffer empties.

Test the failure boundaries

FailureUser consequenceDesign response
Publisher writes two renditions and crashesIncomplete generation must not be offeredResume under the same job/generation; validate before pointer publication
Session request commits but response is lostCaller may create duplicate session slotsStable request identity returns the existing session under its contract
Rights are revoked while a link is cachedOld cached bytes/links can outlive policyDeclare expiry/revalidation boundary; enforce at serving/license boundary
CDN region fails or misses surgeOrigin overload and playback stallsBounded failover/routing, origin miss admission and measured player recovery
License service is slowMedia availability alone cannot start playbackBound license concurrency/deadline; disclose permitted session-grace policy
Progress arrives out of orderOlder device can overwrite later progressRevision/device policy; state whether rewind is a legitimate newer action

A playback progress value is not always a monotonically increasing maximum: a user can intentionally rewind. Define the desired cross-device conflict policy. Separate durable publishing truth from reconstructible catalog/search caches.

Explain the same answer at different levels

At foundation level, define manifests, draw session authorization and one segment read, and calculate a bitrate-to-byte estimate. At intermediate level, explain rendition switching, cache misses, request identities and stable media generations. At senior level, defend publication atomicity, rights boundaries, origin protection and user-level SLOs. At staff level, compare regional/CDN and encoding strategies against measured quality/cost, assign publishing/playback ownership, and describe a compatible staged rollout with a rollback gate.

A staff rollout can shadow manifest validation for a new codec, enable a small compatible device cohort, compare startup/rebuffer/decoding error and cost, then expand. Keep the previous codec/manifest generation available until rollback is safe. Avoid moving entitlement and media generation ownership simultaneously without independent checks.

Practice and evaluate

Try designing a two-hour title launch with a cold edge cache. Deliver a clarification list, requirements, bitrate worksheet, entity/API model, complete viewer path and two failure traces. Explain the difference between media being present and the viewer being authorized.

Question: Will adding ten session API instances solve 3 Tbps of media delivery?

Show answer and explanation

Answer: The session API handles control work. Media bandwidth belongs to the CDN/origin path. Capacity and failures must be measured separately.

Question: A session was authorized before a rights change. Can it play forever?

Show answer and explanation

Answer: Only if that is the explicitly agreed policy. Define token/license lifetime, revalidation and revocation behavior; indefinite cached grants are not an automatic consequence of signed URLs.

Primary documentation: HTTP Live Streaming, Apple HLS guidance and W3C Encrypted Media Extensions. The worked scale, player timing and architecture are independent exercise assumptions.

Decision review: Video Streaming

Video Streaming: What it is

An on-demand video design grants playback sessions and delivers compatible media within the player’s buffer constraints.

Video Streaming: Why it is needed

Control API success and media delivery success do not establish smooth playback or current viewing entitlement.

Video Streaming: When to use it

Use separate session/control and byte paths when repeated large media delivery dominates bandwidth; state device, codec and rights requirements.

Video Streaming: How to use it

Publish verified immutable renditions and a usable manifest, authorize the session, then adapt compatible segments using throughput and buffer observations. Control grant scope and expiry independently of cached bytes.

Video Streaming: Compare an alternative

A lower bitrate can reduce stalls at the cost of quality. A larger buffer reduces network sensitivity but increases startup or live delay; compare the actual experience target.

Video Streaming: Worked decision exercise

The following inputs and policies are original exercise assumptions; they are not measurements or undisclosed company behavior.

A six-second 3 Mbps segment has about 18 Mbit. At 1.5 Mbps it needs 12 seconds before overhead. With eight seconds buffered, switching to a compatible 1 Mbps segment can reduce transfer to about four seconds.

Video Streaming: 6 seconds x 3 Mbps = 18 Mbit; At 1.5 Mbps download takes about 12 seconds; Only 8 seconds buffered: high rendition risks stall; At 1 Mbps the 6 Mbit segment takes about 4 seconds
Video Streaming: a concrete state and recovery trace under the exercise assumptions.
Read the diagram

6 seconds x 3 Mbps = 18 Mbit; At 1.5 Mbps download takes about 12 seconds; Only 8 seconds buffered: high rendition risks stall; At 1 Mbps the 6 Mbit segment takes about 4 seconds

Open original
Video Streaming: worked example
Video Streaming: 6 seconds x 3 Mbps = 18 Mbit; At 1.5 Mbps download takes about 12 seconds; Only 8 seconds buffered: high rendition risks stall; At 1 Mbps the 6 Mbit segment takes about 4 seconds

Video Streaming: a concrete state and recovery trace under the exercise assumptions.

If a rights grant expires during playback, does the CDN automatically know the next segment must be denied?

Show answer and explanation

Answer: Only if the delivery authorization design enforces that policy. Describe signed-capability lifetime or a current check, how in-flight requests behave, and bytes already received. A cached segment is not an entitlement authority.

Video Streaming: Check the design

Monitor startup, rebuffering, playback failure, authorization and origin load separately. Test codec/rendition compatibility and a missing object referenced by a manifest.

Extension: Session grants and cross-device playback recovery

Start with catalog/session authorization, adaptive media and origin capacity. This workshop adds account-wide grant occupancy, stale renewals, ordered cross-device resume state and bounded compatible byte-range failover.

Deep dive: session ownership and resume state outlive one request

The baseline separates catalog/entitlement decisions from immutable adaptive media delivery. This workshop adds a bounded concurrent-session policy, stale renewal handling, cross-device resume intent and deadline-aware CDN failover. It designs an original controlled-catalog on-demand service. User-generated ingest is covered by the separate YouTube workshop; live publisher failover remains a different system.

Define what the concurrent-session limit actually controls

Choose an exercise limit of two distinct concurrently authorized segment-fetch session identities per account. Overlapping renewal grants for one session occupy one slot; retain their maximum outstanding expiry. The limit counts session identities, not token strings. This is not proof of two physical viewers: a device may buffer bytes, share credentials or retain permitted decryption material. Define the enforcement population and supported playback/license paths before promising a household or device limit.

A session has authenticated account/profile, title/publication/timeline, immutable session ID, device binding under the product policy, lease revision, state and absolute lease deadline. Creation has an account-scoped request key and payload fingerprint. Atomically count/reserve eligible occupancy and persist the session/receipt at the account authority. Two independent regional counters each allowing two cannot enforce an account-wide limit of two. Route to one authority or use a separately justified allocation protocol; on uncertainty, fail or wait within a bound rather than mint another slot.

A compatible creation retry returns the same session without consuming another slot. That historical creation receipt does not refresh an expired lease or assert that playback is currently permitted. A changed title/profile/device under that key conflicts. Renewal names session ID, expected lease revision and its own operation identity. It checks current entitlement, active state, deadline and ownership before issuing a new bounded grant. A delayed heartbeat cannot revive a closed/expired session. Historical renewal receipts remain bounded by their original absolute expiry and cannot be relabeled as fresh permission.

Contract / pseudocode
account_playback(account_id PK, serialization_version, session_limit)
session(id PK, account, profile, title, publication, timeline, state, lease_rev, lease_until)
grant(session, lease_rev, scope, issued_at, expires_at); expires_at <= lease_until
operation(account, key, payload_hash, saved_result)
progress(profile, title, timeline, writer_epoch, event_seq, position, revision)

Work closing, retained grants and stale renewal in time order

Account A has S1 and S2. S1's lease lasts to time 60, and its latest segment-fetch grant expires at 40. At time 10 the device closes S1. This exercise marks S1 closing, rejects later renewals and retains its capacity through 40 because an offline-verifiable grant still authorizes requests until then. The device's Stop command is not evidence that every controlled serving layer stopped accepting that grant. Creation of S3 at time 11 therefore fails the two-session admission limit. At equality 40, S1's grant is expired and its closing occupancy can retire; S3 may then be admitted.

If the service performs a supported online current-session check at every serving boundary, it may choose a stronger immediate revocation/release protocol. Do not apply that shortcut to the offline-grant policy accidentally. Active sessions whose client disappears retain occupancy until their original lease deadline; all issued grants must end no later than it. An expiry worker is cleanup, not the clock that defines eligibility. A lost create/renew/close reply resolves original operation evidence instead of reserving an additional session.

Suppose a renewal at revision 4 commits before close and extends a grant. Close must retain occupancy through the actual maximum outstanding grant deadline, not an older value from a stale client. If close commits first, reject the queued revision-4 renewal as a fresh operation. An accepted renewal retry may return its historical receipt under current access, but cannot reactivate the session or extend that grant. Use the same authority for these decisions and retain non-reused session/lease identities through the replay horizon.

Access changes independently deny new sessions/renewals and follow the stated outstanding-grant/license contract. A content revocation cannot be undone by rolling a media bundle backward. Manifest authorization alone does not protect initialization, segments, audio, subtitles or direct-origin URLs. License/key lifetime and already-buffered content can differ from segment-fetch grants; no token TTL proves immediate erasure or universal DRM behavior. The W3C Encrypted Media Extensions Recommendation describes browser key-system interfaces; this application's concurrency and rights policies must be implemented and tested separately.

Session recovery: S1 closes at time 10, its grant remains eligible through 40, S3 is denied at 11, the old grant expires at 40, then the account may admit S3
Video Streaming: recovery decision
Read the diagram

Session S1 closes at time 10 → Its offline grant stays eligible until 40 → Third session S3 is denied at time 11 → Old grant expires at equality 40 → Account authority may then admit S3

Open original
Video Streaming: recovery decision
Session recovery: S1 closes at time 10, its grant remains eligible through 40, S3 is denied at 11, the old grant expires at 40, then the account may admit S3

Video Streaming: recovery decision

Preserve deliberate rewind across device changes

A resume point is user intent, not a maximum of all positions ever observed. Choose one active progress writer per (profile, title, timeline) under an explicit handoff policy; multiple playback sessions may exist while only the current writer updates shared resume state. The user can explicitly take over the shared resume point on another device. This advances writer epoch; it does not rely on an untrusted client timestamp.

At writer epoch 7, sequence 10 records position 1,200 seconds. The user rewinds and sequence 11 records 300. Accept 300: a maximum would incorrectly erase the rewind. A matching sequence-11 retry returns its saved result; changed payload reuse conflicts and new older sequences cannot overwrite it. When a second device explicitly takes writer epoch 8, its sequence starts in the new scope. A delayed epoch-7 sequence 12 at position 1,220 is rejected even though its position, sequence or claimed timestamp appears larger.

Bind progress to the current authorized profile/title/timeline, validate position bounds and distinguish a user seek/rewatch intent from delayed periodic telemetry. Completion and a new watch cycle need an explicit reset/continuation policy; they cannot be inferred solely from highest position. A new edition with a changed timeline either has an approved position mapping or a new progress key. A restored older media pointer cannot silently reinterpret positions against unrelated content.

The writer epoch solves stale-writer conflict under this chosen product policy; it does not prove the viewer actually watched the reported seconds. Analytics, educational completion or billing need their own evidence rules. Minimize retained fine-grained viewing events and protect profile-level reads/exports. If users want independent resume positions per device instead, change the key and explain the different cross-device behavior.

Give segment retries one compatible object and one finite deadline

For a six-second segment at 3 Mbps, encoded payload is about 18 Mbit or 2.25 MB. At 1.5 Mbps throughput it takes roughly twelve seconds before overhead. With eight seconds of buffered playback, that can cause about four seconds of stall. An aligned 1 Mbps rendition needs roughly four seconds to transfer the same interval, leaving headroom. Switching requires compatible timeline/codec/initialization boundaries, not just a lower number in a manifest.

Keep a bounded estimate of recent goodput and buffer health, cap prefetch and use hysteresis to limit oscillation. A failed segment fetch has a playback deadline; bound total retries and CDN switches across the whole operation rather than giving each provider a fresh infinite retry budget. Once the remaining buffer/deadline is too small, degrade or report playback failure honestly. Successful session APIs or manifests are not proof the playhead advanced.

On partial download failover, resume a byte range only when the destination serves the same immutable object/representation identity and compatible validators/range contract. The same title and segment ordinal on another CDN may refer to a different edition or encoding. Do not concatenate a prefix from T4 with a suffix from T5. If identity cannot be established, restart the correct bounded object rather than fabricate a corrupt segment. Deduplicate client append/parse by the selected playback operation identity; redundant network bytes can still cost bandwidth.

Caches can serve ciphertext/media bytes only under the agreed access path. Protect origins and license/control dependencies with finite admission during a cold-cache or CDN failover burst. Per-key request collapse does not cap all distinct misses; globally allocated origin budgets must also include retries, alternate-CDN fetches and recovery traffic. Report when cached hits remain usable but misses cannot be served.

Size request rate, control work and useful recovery separately

One million viewers at 3 Mbps require 3 Tbps of media delivery before overhead. With one media request every six seconds, that is about 166,667 requests/s; two-second units raise it to 500,000/s without reducing those encoded bytes. Separate audio, subtitles, manifests, retries and multiple-track prefetch can add requests. At a thirty-second renewal cadence, one million active sessions generate about 33,333 renewals/s before retries. Those control decisions need their own capacity and consistent account ownership.

A 600,000-event progress/materialization backlog at 5,000/s capacity with 3,000/s new work needs at least 300 seconds to drain. Replaying that backlog must still reject stale writer epochs; fast catch-up is not permission to overwrite a deliberate rewind. Track startup time, rebuffer duration, playhead progress, segment errors, origin misses, lease conflicts, closing-slot age, renewal failures and stale progress rejection independently.

Canary shorter segments or a new CDN with compatible device/content cohorts. Compare actual startup/rebuffer outcomes, request amplification and origin/entitlement load, then expand within measured limits. Retain coherent old publication/session paths for a bounded rollback while current entitlement stays enforced. The teaching histories below are not real player, license-server, token-verifier or CDN integrations.

Playback assessment: identify what may renew and what must remain historical

Question: S1 closes at time 10 while its offline-verifiable grant lasts until 40. Can S3 immediately consume the released slot under a limit of two?

Show answer and explanation

Answer: Not under this policy. Mark S1 closing, deny renewals and retain occupancy through its actual outstanding grant deadline. Release earlier only under a separately supported revocation protocol. A stop command cannot establish that the old grant stopped being valid.

Question: Epoch-7 progress reaches 1,200, then intentionally rewinds to 300. After writer takeover, an old device reports 1,220. Which value wins?

Show answer and explanation

Answer: Preserve the ordered rewind, then accept only the current writer's scoped sequence. The late old-epoch update is rejected regardless of its larger position or timestamp. Resume state is neither a global maximum nor proof of actual viewing.

Question: CDN A supplied half of segment 2 before failing. CDN B has segment 2 from another timeline. Can the player append its remaining range?

Show answer and explanation

Answer: No. Establish identical immutable representation/range identity or restart the correct segment within the remaining deadline. Segment ordinal does not identify bytes across editions. Adaptation and finite failover budgets must preserve a decodable compatible timeline.

Score one point each for account/session/lease/grant scope and atomic admission; closing/renewal/expiry arbitration with honest license limits; ordered writer-epoch progress and timeline identity; compatible bounded ABR/range failover; request/control/origin/recovery budgets and actual playback evidence. Freeing still-valid grant capacity or maximizing away an intentional rewind is a critical failure. Repair the playback state machine, then retest with a lost renewal reply, rights change and an old device returning after a new watch cycle.

Your study notes