Design Download Limits and Licenses for Offline Viewing
Last updated: November 29, 2026
Quick Overview
Design the service that lets members download titles for offline viewing while enforcing per-account device limits, per-title download caps from studio contracts, and license expiry, including when devices go offline for days.
Netflix
November 29, 20260
0
0 solved
Design the service that lets members download titles for offline viewing while enforcing per-account device limits, per-title download caps from studio contracts, and license expiry, including when devices go offline for days.
Netflix's downloads feature has to respect licensing deals that limit how many times a title can be downloaded and how long it can stay offline. This question probes quota enforcement with strong correctness requirements, a DRM license lifecycle, and reconciliation with devices that were disconnected.
What the Interviewer Expects
- Separate content delivery from license issuance and quota accounting
- Make quota checks atomic so concurrent requests cannot exceed limits
- Design license renewal and expiry for offline periods
- Handle device removal and the reconciliation of stale licenses
- Give members clear, actionable error messages at limits
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How would you handle a studio changing a title's cap mid-contract?
- How do you release quota when a device is lost and never reconnects?
- How would you audit compliance for a studio partner?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: request download of a title on a device, receive an offline license, renew it, delete a download and free its slot, list downloads per account. Rules: a maximum number of download devices ...
High-Level Design
The client calls a Downloads API, which checks entitlement (plan, region availability), then calls a Quota service, then asks the License service to mint an offline DRM license bound to the device key...