Design Concurrent Stream Limits for Disney+ Accounts
Last updated: November 29, 2026
Quick Overview
Design the service that enforces how many streams one Disney+ account can play at the same time based on its plan, so the fifth device sees a clear message while legitimate viewers are never cut off by a stale count.
Disney
November 29, 20260
0
0 solved
Design the service that enforces how many streams one Disney+ account can play at the same time based on its plan, so the fifth device sees a clear message while legitimate viewers are never cut off by a stale count.
A design round in the style of Disney Streaming interviews, combining quota enforcement with distributed session state. The interviewer checks lease-based counting, behaviour when devices disappear without saying goodbye, and the trade-off between strictness and viewer experience.
What the Interviewer Expects
- Represent each stream as a lease with a TTL renewed by heartbeats
- Check and acquire atomically to avoid races between devices
- Release on stop, expire on silence
- Choose fail-open versus fail-closed deliberately
- Support per-plan limits and household rules
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 detect password sharing beyond simple concurrency?
- A plane passenger loses connection; when does their slot free up?
- How do you enforce the limit across regions?
- Should downloads count against the limit?
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
When playback starts, the license or playback API asks the stream-limit service to acquire a slot for (account, device, session). If the account is at its plan limit, deny with the list of active de...
High-Level Design
Store active sessions per account in Redis as a sorted set: member is session id, score is lease expiry. Acquire runs a Lua script that removes expired members, counts the rest, and adds the new sessi...