3/12
Technical Architecture & AI Engineering · 7 min read

File Collection Size and Top-K Tag Aggregator

Design an incremental storage aggregator supporting O(1) total byte reads, O(T log K) Top-K tag queries via a min-heap, nested folder rollups, and double-count-safe file updates.

Question 1 of 3

During a peak traffic surge, your implementation of Code Design 3: Top-K File Collection Aggregator experiences elevated P99 latency and upstream timeouts. What is the immediate engineering leadership action?

Question 2 of 3

When designing Code Design 3: Top-K File Collection Aggregator, how should an engineering lead ensure zero data loss during network partitions?

Question 3 of 3

What is the most critical metric to monitor continuously in Code Design 3: Top-K File Collection Aggregator to detect degradation before customers report outages?