The Same Stream Twice
A hard Pipeline Design interview practice problem on DataDriven. Write and execute real pipeline design code with instant feedback.
- Domain
- Pipeline Design
- Difficulty
- hard
- Seniority
- senior
Problem
A global streaming-video platform collects about 2 billion playback heartbeat events a day from 150 million subscribers, and two teams read the same feed: reliability needs rebuffering spikes per title and region detected within seconds and pushed straight to an on-call paging tool, while finance pays studios royalties on exact minutes-watched and cannot tolerate a single double-counted or dropped event. Design the pipeline so both teams consume the same durable ingest independently, with the live path detecting spikes fast and paging on-call while the daily royalty report counts each raw event exactly once instead of reusing the live aggregation. Keep a malformed heartbeat from a bad device build from stalling the live path.
Practice This Problem
Solve this Pipeline Design problem with real code execution. DataDriven runs your solution and checks it automatically.