Generating key points…
Answers are grounded in this paper and cite their sources.
The requirement for real-time, event-driven analytics is driving the development of stateful distributed stream-processing pipelines that need to operate at low latency under highly non-stationary, bursty workloads. Reactive autoscaling in Kubernetes in practice is too slow. Container cold starts, co-partition rebalancing and RocksDB state replay/recovery all happen in conjunction with traffic spikes and back pressure. This work presents and experimentally evaluates a proactive, adaptive approach to horizontal scaling and fault tolerance for stateful Apache Kafka stream pipelines in Kubernetes. The goal is to be able to forecast workload and resource demand so that allocation and state recovery can happen before the spike, therefore reducing end-to-end latency and cloud infrastructure cost. A closed-loop Kubernetes scaling controller is used which makes use of multidimensional operational telemetry and deep learning. It operates in a scale-invariant 18-dimensional feature space comprising 8 streaming and infrastructure metrics (with their first differences) and 2 bounded dimensionless metrics: the throughput elasticity coefficient and the horizon-normalized queue inertia index. The forecasting horizon is 90–180 seconds which is long enough to cover the polling and confirmation latency, the pod startup time, the rebalancing time and the state warm-up time. A multi-layer LSTM is used to forecast demand and set the replica count subject to constraints on event rate, byte rate, CPU, memory and partitions. In a 72-hour test with 55 episodes of different load and failure the maximum prediction error was 5.1% and the replica count was within target in 94.2% of cases within 120 seconds. Compared to Kubernetes HPA, KEDA with dual triggers, Holt–Winters and a univariate LSTM the mean p99 latency is reduced from 485 ms to 112 ms and the peak latency from 4950 ms to 178 ms. Daily degradation time is reduced from 840 seconds to 95 seconds and recovery from subsystem failures is 3.4 times faster (23.0 s vs 78.4 s) with no data loss. The cost is 11% higher than reactive scaling but more than 52% lower than static overprovisioning.
No takes yet. Share an insight, caveat, or question.
Kyrychenko et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: