Real-time heavy hitters architecture across 1 Hour, 1 Day, 1 Month, and 1 Year horizons. Combines Count-Min Sketch frequency estimation with a bounded Min-Heap (K=10), two-phase scatter-gather aggregation against viral hotspots, rolling 60-minute circular Redis ZSET buffers, ClickHouse SummingMergeTree long-term rollups, and offline Spark self-healing reconciliation.
Client Ingestion โ Two-Phase Kafka Partitioning โ Flink Count-Min Sketch โ Bounded Min-Heap โ Redis ZSET Hot Cache โ ClickHouse OLAP โ Edge CDN.