How We Scaled Metrics Aggregation by Moving Durable State Into Storage
Datadog, Tuesday, November 17th, 2026
Datadog describes three generations of its metrics aggregation system, ending with storage reconciling duplicates and late data.
Datadog engineering explains how its metrics aggregation service, which reduces tag dimensions and merges DDSketch distributions over short windows, was redesigned across three generations, each needing to handle roughly 10 times the previous volume.
The first used static Kafka partition assignment with leader-follower pairs and RocksDB state, which doubled compute and required manual partition splits taking about 1.5 hours.
The second used dynamic assignment with RocksDB state uploaded incrementally to blob storage and restored by time window, enabling autoscaling.
The third moves reconciliation of partial aggregates, duplicates and late data into storage so streaming can resume at the live edge.