v9.1.1
Menu

Real-Time Anomaly Detection at Scale

hardPROSystem ArchitectureML System DesignML System Design 2

Design a system that detects anomalies across millions of time series metrics for infrastructure monitoring.

Scenario: A cloud platform monitors 5 million time series metrics (CPU, memory, network, latency, error rates) across 100,000 servers. The system must detect anomalies within 60 seconds, distinguish real incidents from noise, correlate related anomalies into incidents, and minimize alert fatigue from false alarms.

Your Task: Design the anomaly detection and alerting pipeline for this scale.

Your design should address:

  1. Processing millions of time series in real-time with bounded latency
  2. Detecting anomalies in diverse metric shapes (spiky, periodic, trending)
  3. Reducing false positives through contextual analysis and correlation
  4. Grouping related anomalies into incidents for efficient triage
  5. Adapting to changing baselines (deployments, traffic growth)

Think about: Seasonal patterns (daily, weekly), metric interdependencies, cold-start for new metrics, alert routing and escalation, and the cost of missed alerts vs false alarms.

More from ML System Design 2

Design mode

Your design approach

Describe your system design approach. Consider components, data flow, and key decisions.

Design questions(Select all that apply)

Q1What approach handles the diverse anomaly types across millions of time series?

Q2How should the system reduce false positive alerts?

Q3What streaming architecture supports real-time anomaly detection at scale?

Q4How should the system handle concept drift in metric behavior?

0 of 4 questions answered