Handling Surges in Petabyte-Scale Streaming Systems by Doing Nothing
Jeff Xiang, Pinterest, Inc.
Wed, Nov 4, 2:00–2:45 PMRoom 2002
When streaming data at petabyte scale, one of the most painful on-call scenarios is handling sudden traffic surges that overload servers, trigger cascading failures, and wipe out service availability across a large blast radius. At modern throughput levels, scaling operations are simply not fast enough to prevent unexpected 10–20x spikes from taking down dozens of streaming pipelines and their neighbors. The classical mitigation is to overprovision, add proactive alerting, and simply “react quickly”.
In this talk, we present a TCP-based congestion control approach that tackles the problem at its root and eliminates the need for manual on-call intervention.
At Pinterest, we have productionized this TCP-based flow control solution in a 50 GB/s streaming system that powers machine learning across the company. By setting up the appropriate end-to-end flow control mechanisms, we guard against sudden surges of any magnitude by propagating backpressure gracefully, predictably, and fully autonomously.
We will walk through the key concepts in networking, memory management, and backpressure that matter in large-scale streaming systems, and then unpack the exact mechanism we built to solve this problem. The audience will leave with a set of production-ready ideas and patterns that can be replicated in their own streaming environments that are far more cost-efficient and operationally lightweight than classical solutions.
Beyond eliminating the catastrophic risk of sudden traffic surges, we will share concrete and replicable takeaways from running these concepts in production at scale, including:
- Designing streaming topologies that rely on backpressure instead of excess capacity
- Safely transforming scaling and load-balancing into reactive operations, reducing unnecessary early alerting and interventions
- Simplifying capacity planning for organic growth
- Lowering infrastructure cost by running denser workloads with minimal buffer headroom
Speaker
-
Jeff Xiang
Senior Software Engineer, Pinterest, Inc.
Jeff is a Senior Software Engineer at Pinterest who has over 6 years of experience building data streaming infrastructure powering petabyte-scale ingestion, real-time stream processing, and ML/AI model training / inference. Throughout his time in the streaming space, Jeff has led critical efforts in modernizing the streaming stack at Pinterest, including leading development on, and contributing to, several open-source projects. Some of these efforts include:
Tiered Storage for Kafka
- PubSub Client (default Flink-Kafka connector library at Pinterest)
- MemQ (disk-less PubSub)
- Incremental DB ingestion using Debezium
- Infra cost-efficiency objectives
Jeff was a co-speaker in Kafka Summit London 2024, a solo speaker at Current 2026 London, and is always eager to share his learnings from building next-generation data streaming systems with the wider community.