Design Staged Firmware Rollout for Tens of Millions of TVs
Last updated: November 29, 2026
Quick Overview
Design the service that delivers OS updates to a heterogeneous fleet of streaming players and TVs, supporting staged percentages per model, automatic halts on bad health metrics, and devices that are often offline.
Roku
November 29, 20260
0
0 solved
Design the service that delivers OS updates to a heterogeneous fleet of streaming players and TVs, supporting staged percentages per model, automatic halts on bad health metrics, and devices that are often offline.
Roku OS runs on its own players and on many OEM partner TV models, so an update system must respect model differences and partner schedules. The interviewer checks cohort assignment, safe pacing, health-based halts, and CDN-scale download delivery.
What the Interviewer Expects
- Separates control plane (who gets which build) from data plane (image download via CDN)
- Uses deterministic hashing of device id for stable rollout cohorts
- Defines health signals and automatic halt thresholds per model
- Handles offline devices, retries and partial downloads (resumable, signed images)
- Plans for thundering herds when a rollout percentage increases
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 let an OEM partner hold an update for their models?
- How do you roll back if the device has already installed the bad build?
- How would you schedule installs to avoid interrupting viewing?
- What is your plan if the health metric pipeline itself is delayed?
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: release managers create a rollout (build, target models, schedule of percentages); devices periodically check in and learn whether to update; installs happen when idle; rollouts pause auto...
High-Level Design
- Check-in service: device sends
(device_id, model, current_build, region). Stateless, horizontally scaled, reads rollout config from a replicated cache. - Rollout config store: per model, the targe...