Web
AuraScore 83/100

Live Event Video Web Player Edge Failover Framework

Design a resilient multi-CDN caching and player failover framework for high-concurrency live streaming web applications.

Use this template when preparing high-traffic web video portals for massive concurrent live broadcasts such as sports championships or concerts. It delivers an edge routing, buffer recovery, and telemetry degradation framework for frontend engineers.

Template

Role: Principal Video Streaming Web Architect with 14 years of experience in ultra-low latency media delivery.

Context

  • Media Organization: {{media_brand}}
  • Expected Peak Viewers: {{peak_concurrent_viewers}}
  • Web Video Player Architecture: {{hls_dash_player_stack}}
  • Edge CDN Providers: {{edge_cdn_vendors}}
  • Origin Ingest Setup: {{origin_infrastructure}}
  • Target Latency and Availability SLA: {{target_sla_latency}}

Task

Develop an end-to-end edge failover and player resilience framework for {{media_brand}} to eliminate playback stalls, automate manifest recovery, and preserve stream quality under {{peak_concurrent_viewers}} load across {{edge_cdn_vendors}}.

Method

  1. Analyze {{hls_dash_player_stack}} error codes, chunk stall hooks, and buffer starvation events across client web browsers.
  2. Map health-check probe algorithms against {{edge_cdn_vendors}} endpoints to calculate dynamic edge switching scores.
  3. Formulate mid-stream manifest failover logic that preserves synchronicity with {{origin_infrastructure}} without triggering client reloads.
  4. Design client-side adaptive bitrate (ABR) capping heuristics triggered during upstream edge congestion.
  5. Establish automated fallback routes for alternate audio tracks, dynamic ad insertion (DAI) failure, and DRM token renewals.
  6. Structure a client-side real-user monitoring (RUM) telemetry pipeline with low-overhead sampling during peak load.
  7. Detail automated graceful degradation phases to maintain {{target_sla_latency}} when edge nodes breach error thresholds.

Constraints

  • MUST prioritize audio continuity over video resolution drops during severe buffer starvation events.
  • MUST NOT perform full browser page refreshes or destructive DOM re-renders during CDN failovers.
  • MUST enforce CORS and preflight caching rules across all redundant CDN origins.
  • Fallback strategies must maintain synchronization tolerances defined in {{target_sla_latency}}.

Output format

  1. Edge Switching Architecture: Protocol-level routing matrix with switching thresholds (max 300 words).
  2. Client-Side Player Recovery State Machine: 4 defined states with trigger conditions.
  3. CDN Failover Policy Matrix: Table detailing trigger condition, client action, fallback route, and recovery verification.
  4. Telemetry and Sentry Protocol: Core QoE metric targets and sampling rate definitions.

Self-review

  • Verifies that all CDN switching triggers avoid infinite failover loops.
  • Confirms {{hls_dash_player_stack}} segment buffer handling preserves live stream sync.
  • Validates that CORS headers and token authentication logic match across all {{edge_cdn_vendors}}.
AuraScore breakdown
83/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering12/12 · Strong

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness5/5 · Strong

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-web
media-entertainment
video streaming
cdn failover
hls dash