Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Video Call Analytics Platform

Design a trustworthy data platform that reconciles client and server video-call telemetry into daily and rolling quality metrics by country.

Problem statement

For this exercise, assume a video-calling product emits client and server events when a participant starts, joins, rejoins, and leaves a call.

Build a data platform that turns those events into one canonical record per video call with its participants, duration, join count, rejoin count, event time, and each participant's coarse country.

Analysts must be able to query call counts and quality indicators by country and calendar day, including rolling 7-day, 14-day, and 30-day views.

Client retries, delayed mobile uploads, duplicate server events, reconnects, and out-of-order delivery are expected. A stable call identifier must not be counted twice, corrected data must remain auditable, and a dashboard must disclose its freshness and data-quality state.

Country is derived from an approved user profile snapshot; raw location and call media are outside scope.

The design should cover event contracts, canonical session ownership, storage and transformation boundaries, metric publication, backfills, and the query path. Real-time call signaling, media transport, recommendations, and moderation are outside scope.

What to build

  1. Accept versioned client and server events for call starts, joins, rejoins, and leaves without losing source identity or ingestion metadata.
  2. Reconcile duplicates, retries, and late events into auditable canonical call and participant records with duration, join count, and rejoin count.
  3. Publish daily country-level call and quality metrics plus rolling 7-day, 14-day, and 30-day views over a complete date spine.
  4. Let authorized analysts query versioned datasets while seeing freshness, completeness, and correction status.

At scale

  • For this exercise, assume 20 million completed calls per day and a peak of 20,000 accepted telemetry events per second.
  • For this exercise, make 99% of accepted events visible in provisional daily metrics within 10 minutes, while allowing corrections for events that arrive up to 24 hours late.
  • For this exercise, common country-by-day and rolling-window dashboard queries should complete within 3 seconds at p95.
  • For this exercise, retain immutable raw events for 90 days and versioned canonical call facts and daily aggregates for 2 years.