Scaling Predictive Analytics to 1M+ Events

World

Engineering

Growth

Scaling Predictive Analytics to 1M+ Events

Building high-throughput infrastructure to handle massive data streams in real-time.

Sarah Chen

3 mins read

var(--variable-XWgltWcmk)

Throughput is easy. Latency under load is the real problem.

Throughput is easy. Latency under load is the real problem.

Throughput is easy. Latency under load is the real problem.

Raw throughput is largely a budget question — add partitions, add consumers, move on. What breaks first is not volume but the tail: the p99 query that quietly climbs from 200ms to four seconds once the system is under sustained pressure.

Where the tail comes from

Where the tail comes from

Where the tail comes from

Coordinated omission in the metrics Our early latency dashboards measured only requests the system managed to accept, which hid the queue entirely. Fixing the measurement changed the priorities. Hot partitions A handful of very large accounts generated a disproportionate share of events. Sub-partitioning by entity within those accounts flattened the skew. Garbage collection pauses Long pauses on the hot path produced most of our worst outliers. Moving the rolling window to off-heap storage removed the largest source of jitter.

We alert on p99 latency and queue depth rather than average throughput. Throughput looks healthy right up until the moment the system stops keeping up, which makes it a poor early warning signal.

Operating it day to day

Operating it day to day

Operating it day to day

"Averages tell you the system is fine. The tail tells you whether your customers agree."

Stay in the loop

Get the latest insights delivered to your inbox. No spam, unsubscribe anytime.

Stay in the loop

Get the latest insights delivered to your inbox. No spam, unsubscribe anytime.

No spam. Unsubscribe anytime.

Transforming data into decisions. AI-powered intelligence for modern teams.

Contact

Headquarters

1180 Kestrel Way, Suite 300, San Francisco, CA 94107

© 2026 CrespoAI, Inc. All rights reserved.

Transforming data into decisions. AI-powered intelligence for modern teams.

Contact

Headquarters

1180 Kestrel Way, Suite 300, San Francisco, CA 94107

© 2026 CrespoAI, Inc. All rights reserved.

Transforming data into decisions. AI-powered intelligence for modern teams.

Contact

Headquarters

1180 Kestrel Way, Suite 300, San Francisco, CA 94107

© 2026 CrespoAI, Inc. All rights reserved.

Create a free website with Framer, the website builder loved by startups, designers and agencies.