Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Internal Latency Measurement and Alerting

Measure real-time data-pipeline latency and notify owners on sustained breaches.

Problem statement

For this exercise, assume you are designing internal latency measurement and alerting. Measure real-time data-pipeline latency and notify owners on sustained breaches. Define a coherent first production version that satisfies the listed requirements and scale while making failures and degraded behavior visible.

What to build

  1. Ingest timestamped events from each data-processing stage and compute end-to-end and per-stage latency.
  2. Evaluate configurable sustained-breach rules by service, region, and percentile.
  3. Deliver deduplicated alerts with recovery notifications and investigation context.

At scale

  • For this exercise, assume two million timing events per second across 5,000 services.
  • Evaluate p50, p95, and p99 windows within 30 seconds of event time.
  • Retain raw samples for seven days and hourly aggregates for one year.