10,000,000 Data Points/sec
Sustained peak request volume during high-traffic events.
Collect, aggregate, and alert on 100 million metric data points per second with sub-minute query SLAs.
Target production parameters expected in a senior or staff interview round.
Sustained peak request volume during high-traffic events.
Daily active users generating read and write operations.
Projected data ingestion and replication storage capacity.
Strict end-to-end percentile latency SLA constraint.
Establish clear problem boundaries before proposing architectural components.
Step-by-step arithmetic conversions for QPS, storage, and bandwidth.
| Dimension | Calculation Formula | Estimated Result |
|---|---|---|
| Ingestion Volume | 50,000 hosts × 2,000 metrics/host ÷ 10s collection interval | ~10,000,000 metric data points / sec |
| Storage with Gorilla Compression | 10M points/sec × 1.37 bytes/point (Gorilla XOR time delta encoding) | ~13.7 MB/s write rate = ~1.18 TB / day |
How requests navigate ingress gateways, application logic, caching, and persistence.
Buffers high-frequency metric streams and routes by metric name hash.
Compacts time-series chunks in 2-hour in-memory blocks before flushing to columnar disk storage.
Evaluates alerting rules every 15 seconds against in-memory sliding metric buffers.
Entity models, indexing, and primary key partitioning.
Columnar storage compressed with double-delta timestamp encoding and Gorilla float XOR.
How to defend engineering compromises when challenged by interviewers.
Rationale: Hybrid model: Pull for internal long-lived Kubernetes pods; Push for ephemeral serverless functions.
Key interview questions and conceptual defenses.
Gorilla compresses timestamps using delta-of-deltas encoding and float values using XOR with the previous reading, reducing average size from 16 bytes down to 1.37 bytes.