Design a simulator to replay left-turn videos
Design a System to Simulate and Replay Car Left-Turn Videos
Design a system that can simulate and replay a car's left-turn driving scenarios using recorded video data. The system should allow users to browse specific left-turn events and play them back with associated metadata.
Your design should cover the following aspects:
- Requirements and Scope:
- Define supported user workflows (e.g., listing events, opening an event, playback controls like play/pause/seek).
- Specify assumptions about latency and scale.
- Data Model/Schema:
- Propose how to represent a "drive," a "left-turn event" (segment), and the corresponding video chunks/frames.
- Detail the metadata to be stored (e.g., timestamps, vehicle ID, camera ID, geographic location, labels).
- API Design:
- Design APIs for ingesting recordings and defining event boundaries.
- Design APIs for querying left-turn events and fetching/streaming replay data.
- Address seek/range requests and pagination.
- Storage and Retrieval:
- Determine the storage solution for raw video (e.g., object store vs. database) and its indexing strategy.
- Explain how video streaming (e.g., HLS, DASH, MP4 range), caching, and Content Delivery Networks (CDNs) will be handled.
- System Architecture:
- Identify the main services/components (e.g., ingestion, transcoding, metadata service, playback service, authentication).
- Discuss trade-offs, potential failure modes, and consistency considerations.
AI interview prep
Core dilemma
Balancing efficient storage and retrieval of large video assets with the need for low-latency, granular access to specific event segments and their associated metadata.
3 tradeoffs and 3 stress tests locked
Interview prep
Unlock the interviewer X-Ray rubric, tradeoff matrix, stress tests, clarifying questions, and key concepts.
Design a simulator to replay left-turn videos
Design a System to Simulate and Replay Car Left-Turn Videos
Design a system that can simulate and replay a car's left-turn driving scenarios using recorded video data. The system should allow users to browse specific left-turn events and play them back with associated metadata.
Your design should cover the following aspects:
- Requirements and Scope:
- Define supported user workflows (e.g., listing events, opening an event, playback controls like play/pause/seek).
- Specify assumptions about latency and scale.
- Data Model/Schema:
- Propose how to represent a "drive," a "left-turn event" (segment), and the corresponding video chunks/frames.
- Detail the metadata to be stored (e.g., timestamps, vehicle ID, camera ID, geographic location, labels).
- API Design:
- Design APIs for ingesting recordings and defining event boundaries.
- Design APIs for querying left-turn events and fetching/streaming replay data.
- Address seek/range requests and pagination.
- Storage and Retrieval:
- Determine the storage solution for raw video (e.g., object store vs. database) and its indexing strategy.
- Explain how video streaming (e.g., HLS, DASH, MP4 range), caching, and Content Delivery Networks (CDNs) will be handled.
- System Architecture:
- Identify the main services/components (e.g., ingestion, transcoding, metadata service, playback service, authentication).
- Discuss trade-offs, potential failure modes, and consistency considerations.