All articles

Architecture / Field notes

Why a video app should not proxy the video bytes

A clean media architecture keeps control requests in the application and sends the heavy video payload directly from purpose-built delivery systems.

7 min read

01

The application and the video have different jobs

A video product needs an application server. It authenticates people, validates requests, checks ownership, saves settings, starts processing work, and reports what happened. None of those responsibilities require the application to sit in the middle of every video segment delivered to a viewer.

Video bytes are unusually large, bursty, and sensitive to distance. Routing them through the same server that handles account pages and API calls adds bandwidth cost, extra failure points, and another network hop without improving the viewer experience.

02

Control plane versus media plane

The useful mental model is a control plane and a media plane. The control plane decides what a video is, who owns it, whether it is published, which website may embed it, and which playback rendition is active. The media plane stores and delivers source objects, adaptive manifests, segments, posters, and preview assets.

Keeping those planes distinct makes the system easier to reason about. The application can change publication policy without copying the media. The delivery provider can serve segments efficiently without receiving broad authority over the customer account.

  • Control requests remain small and authorization-heavy.
  • Media requests remain cacheable, geographically distributed, and delivery-focused.
  • A stable video identity can outlive a particular playback provider.

03

Retain the source; replace the machinery

The most important portability decision happens before playback: retain an immutable source original in private object storage. A source original is the raw material from which future renditions can be created. Without it, changing providers may mean asking customers to upload everything again—or discovering that the available copy is already compressed.

A provider-neutral playback record can then point at the rendition currently serving viewers. That does not make provider changes trivial, but it keeps the product boundary honest: the customer video is the durable entity; a delivery provider is one implementation behind it.

04

Direct delivery is also a reliability strategy

Purpose-built video delivery systems handle adaptive bitrate playback, byte ranges, caching, and geographic distribution far better than a general application server. Public poster and preview derivatives can likewise come directly from object storage or an image delivery layer.

This narrows the application’s blast radius. A busy launch can increase video traffic without consuming the API capacity needed to sign in, update a player, or check a job. A temporary application issue does not automatically turn every already-published media request into a failure.

  • Fewer hops before the first frame
  • Independent scaling for application and media traffic
  • Cleaner cost attribution for delivery

05

What the viewer should notice

Ideally, none of this architecture is visible. The viewer sees a poster quickly, presses play, and receives an appropriate rendition. The operator sees a video, a publication, and useful playback data—not a collection of storage buckets and provider asset identifiers.

Good infrastructure disappears into a clear product model. Keeping media bytes out of the application request path is one of the quiet decisions that makes that possible.