System Design · Module 19
Media uploads, streaming and file sync
- Lessons
- 13
- Free
- 0
- Reading
- ~5 h
Your progress
0 / 13 lessons done
Sign in to trackLessons
- Direct uploads to object storageProduct photos and attachments can consume application bandwidth without doing application work. Direct uploads remove that traffic, but require explicit rules for authorization, validation and publication.
- Large file uploads: signed URLs and multipartLarge uploads fail across several requests and systems. You need to preserve progress without accepting incomplete files, leaking upload permissions or leaving paid storage behind.
- Image processing: resizing and CDN deliveryProduct images can dominate a page’s download size. Processing them outside the request path keeps browsing fast without making image replacements or worker failures unsafe.
- Profile image service: storage and deliveryProfile images combine untrusted uploads, background processing and heavily cached reads. The difficult part is making replacement predictable without sending every image request through your application.
- Video transcoding: converting uploads into multiple formatsVideo processing combines expensive computation with unreliable inputs and asynchronous completion. You need to control both media quality and job execution before an uploaded file becomes safe to serve.
- Adaptive bitrate streaming: quality that adapts to the networkVideo can download successfully and still pause repeatedly. Understanding the player’s decisions helps you diagnose playback failures that server availability metrics cannot explain.
- Video security: signed URLs and DRMPaid video needs more than a login page. You must protect every media request, preserve caching, and understand what an authorized viewer can still copy.
- Live streaming: protocols and latencyLive video can arrive quickly over the network and still play far behind the event. Engineers must manage delay across encoding, publication, caching and playback without making weak connections unusable.
- File synchronization: keeping devices in syncDesktop folders, offline apps and shared asset libraries all need to reconcile independent changes. Correct synchronization must preserve user work even when devices disconnect, retry or disagree.
- Chunking and deduplication: syncing only changed dataSync clients and backup tools often transfer large files after small edits. Chunking reduces that traffic, but introduces shared data whose integrity, ownership and lifetime need explicit rules.
- File versioning and metadataShared files need more than an upload endpoint. Engineers must preserve history, resolve competing updates and explain exactly what users can recover.
- Design: a video platform like YouTubeVideo platforms combine large transfers, expensive background work and latency-sensitive playback. The difficult boundary is deciding when uploaded bytes become safe, complete, playable content.
- Design: a file sync service like DropboxSync connects a transactional server to devices that disappear, retry and change files independently. The same problems appear in offline apps, document tools and deployment agents.
Practise with
Terms this module teaches 37
Open glossaryAdaptive bitrate streaming
A playback technique that changes the encoded bitrate selected for future media downloads as network and playback conditions change.
Base revision
The accepted remote revision from which a device's current local edit started.
Change feed
A durable sequence of committed changes that a consumer can resume from a saved position.
Chunk manifest
An ordered description of the chunks needed to reconstruct a file.
Conditional publication
Making prepared output visible only if its eligibility conditions still hold when the reference is updated.
Content decryption module
The client component that provides decryption and related functionality for a supported media key system.
Content-defined chunking
Splitting a byte stream at boundaries chosen from nearby content rather than fixed file offsets.
Deletion tombstone
A retained record that an identified item was deleted, allowing disconnected replicas to learn about the deletion.
Device pixel ratio
The ratio between physical screen pixels and CSS pixels for the current display environment.
Digital rights management
A system that controls access to decryption keys and their permitted use in supported playback environments.
Encoding ladder
A planned set of encoded video versions covering different playback needs.
File manifest
An ordered description of the chunks and lengths needed to reconstruct one version of a file.
File revision
A server-issued identifier for one committed state of a file, including its content reference and metadata.
Glass-to-glass latency
The elapsed time from a camera capturing an event to a viewer's screen displaying it.
HLS part
A partial media segment that can be made available before its complete parent segment in Low-Latency HLS.
Image derivative
An image generated from an original using a particular size, crop, format or other processing recipe.
Image rendition
A processed version of an image with a particular size, format or crop.
Live edge
The newest media position available at a particular point in a live delivery system.
Media container
A file structure that holds encoded media streams and information needed to play them together.
Media manifest
A file that tells a media player which streams or media segments are available and where to request them.
Media segment
An addressable portion of encoded media covering a time interval in a presentation.
Multipart upload
An upload protocol that accepts independently numbered parts and later assembles selected parts into one object.
Optimistic concurrency control
Allowing work without a long-held reservation, then checking that the state it relied on has not changed before accepting its update.
Playback buffer
Downloaded media held locally for future playback, commonly measured in playable seconds.
Processing attempt token
An identity assigned to the current execution of a job, checked before that execution may publish its result.
Rendition
One encoded quality option for the same media, with a particular resolution, bitrate and codec configuration.
Rolling fingerprint
A compact value updated as a byte window moves, without recalculating the whole window from scratch.
Signed URL
A URL carrying a signature that grants limited permission for a storage request for a limited time.
Streaming manifest
Metadata that describes available media and how a player can locate it.
Sync namespace
A file tree with its own permissions and an independent order of committed changes.
Sync tombstone
A retained deletion record that prevents an old device copy from being mistaken for a new file.
Synchronization conflict
Independent changes that cannot both replace the same accepted file state without an explicit resolution rule.
Upload manifest
The ordered record of expected upload parts and the receipts used to assemble them.
Upload session
An application record tracking one upload attempt, its owner, destination, expected properties and processing state.
Video codec
A method for encoding and decoding compressed video.
Video rendition
One encoded version of a video with selected dimensions and encoding settings.
Video transcoding
Decoding compressed video and encoding it again with chosen output settings.