Slowpoke: End-to-end Throughput Optimization Modeling for Microservice Applications

Yizheng Xie (Brown University), Di Jin (Brown University), Oğuzhan Çölkesen (Brown University), Vasiliki Kalavri (Boston University), John Liagouris (Boston University), Nikos Vasilakis (Brown University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · Managing Complexity at Scale

Overview

Modern cloud applications rely heavily on microservice architectures, which decompose monolithic codebases into independent, reusable services managed by separate teams. While this design improves organizational scalability and modularity, it introduces severe complexity in capacity planning and resource allocation. When engineering teams propose optimizations—such as replacing an in-memory key-value store or caching user profiles—managers face a difficult question: how will optimizing a specific downstream service impact the end-to-end throughput of the entire application? Distributed tracing captures current execution paths and latency breakdowns, but it fundamentally reflects status quo behavior rather than post-optimization dynamics.

Watch on YouTube · Slides

Visual summary for Slowpoke: End-to-end Throughput Optimization Modeling for Microservice Applications by Yizheng Xie, Di Jin, Oğuzhan Çölkesen, Vasiliki Kalavri, John Liagouris, Nikos Vasilakis
Visual summary for Slowpoke: End-to-end Throughput Optimization Modeling for Microservice Applications by Yizheng Xie, Di Jin, Oğuzhan Çölkesen, Vasiliki Kalavri, John Liagouris, Nikos Vasilakis

Key moments

  1. 0:00 Introduction and the challenge of microservice optimization
  2. 2:00 Introducing SlowPoke and its high-level execution approach
  3. 4:00 Distributed slowdown challenges and bottleneck equivalence concept
  4. 6:00 Formulating bottleneck equivalence using linear programming
  5. 7:30 Coordinating slowdown across the microservice graph
  6. 9:00 System design and data plane components architecture
  7. 10:30 Evaluation results on real-world applications
  8. 11:45 Evaluation on synthetic applications and summary

Slowpoke: End-to-end Throughput Optimization Modeling for Microservice Applications

Speakers: Yizheng Xie (Brown University); Di Jin (Brown University); Oğuzhan Çölkesen (Brown University); Vasiliki Kalavri (Boston University); John Liagouris (Boston University); Nikos Vasilakis (Boston University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=PjvJbhigf04

Overview

Modern cloud applications rely heavily on microservice architectures, which decompose monolithic codebases into independent, reusable services managed by separate teams. While this design improves organizational scalability and modularity, it introduces severe complexity in capacity planning and resource allocation. When engineering teams propose optimizations—such as replacing an in-memory key-value store or caching user profiles—managers face a difficult question: how will optimizing a specific downstream service impact the end-to-end throughput of the entire application? Distributed tracing captures current execution paths and latency breakdowns, but it fundamentally reflects status quo behavior rather than post-optimization dynamics.

To bridge this gap, the authors introduce Slowpoke, a system designed to predict the effect of hypothetical optimizations on end-to-end throughput without requiring engineers to actually implement the optimization first. By combining a novel performance model based on linear programming with a distributed slowdown coordination mechanism, Slowpoke allows engineering managers to evaluate optimization proposals, prioritize resource allocation, and identify throughput saturation points before writing any code. Across realistic benchmarks and thousands of synthetic scenarios, Slowpoke predicts post-optimization throughput with a root mean square error of around 2% while operating transparently across complex call graphs.

Background

▶ Watch: Introduction and the challenge of microservice optimization (0:00)

In distributed systems and systems performance engineering, predicting the impact of code modifications has a rich history. A foundational precursor is Coz, a causal profiler built for multi-threaded applications running on single machines. Instead of directly optimizing a target function, Coz simulates the effect of an optimization by slowing down all concurrent execution threads except the target function. This creates a relative performance shift that mimics optimization, allowing developers to measure speedups accurately without altering code.

However, translating causal profiling from a single-machine, multi-threaded environment to distributed microservices introduces massive systems hurdles. Microservices communicate across network boundaries via layer-7 protocols like HTTP or gRPC, organized into intricate, dynamic call graphs managed by orchestrators like Kubernetes. In these distributed settings, identifying which threads to slow down concurrently requires tracking complex inter-service dependencies and peering into service internals. Furthermore, maintaining strict synchronization across distributed nodes to pause the right threads at the right time fails to scale in large production environments. Slowpoke addresses these fundamental limitations by replacing fine-grained, concurrent-only thread targeting with a distributed, whole-service slowdown mechanism governed by a rigorous mathematical model.

Key Findings

▶ Watch: Distributed slowdown challenges and bottleneck equivalence concept (4:00)

Slowpoke demonstrates that accurate end-to-end throughput prediction is achievable in complex distributed environments without requiring deep manual profiling or implementation-specific knowledge.

  • High Prediction Accuracy: Across real-world applications from Death Star Benchmarks and a Google demo application, Slowpoke achieves an overall root mean square error of just 2.1% against actual ground truth throughput curves.
  • Robustness Across Topologies: In extensive evaluations spanning 1,080 synthetic applications across 9 distinct topologies—including dynamic call graphs with conditional database queries—Slowpoke maintains a low root mean square error of 1.9%.
  • Invariance to System Characteristics: Error rates do not degrade across varying communication protocols, request concurrency levels, or target service positions within the call graph.
  • Bottleneck Identification: The system accurately identifies when optimizing a target service yields diminishing returns, mapping out the exact end-ion-end throughput curve until a secondary bottleneck limits the system.

Technical Deep Dive

▶ Watch: Coordinating slowdown across the microservice graph (7:30)

The architecture of Slowpoke is divided into a novel performance modeling framework and a lightweight data-plane/control-plane implementation designed for containerized environments.

The Performance Model and Bottleneck Equivalence

The core intuition behind Slowpoke is bottleneck equivalence. When an application is saturated, its maximum throughput is governed by its primary bottleneck resource (e.g., CPU quota). Rather than speeding up the target service, Slowpoke slows down all non-target services. Mathematically, Slowpoke formulates this using linear programming. Each execution is represented as a linear program that maximizes end-to-end throughput subject to resource capacity constraints for all services:

$$\max \text{Throughput} \quad \text{s.t.} \quad \sum \text{Resource Usage}_i \le \text{Capacity}_i$$

The unoptimized execution and the slowdown execution are constraint-equivalent: the constraint corresponding to the bottleneck service remains tight in both scenarios. By observing the throughput degradation during the slowdown phase, the system infers how throughput will scale when the target service is accelerated.

Distributed Slowdown Coordination

Naively pausing entire service process groups for every incoming request introduces prohibitive runtime overhead. To make this practical, Slowpoke introduces a batching mechanism where services are paused after a predefined number of incoming requests (e.g., every two requests).

To prevent naive batching from causing starvation and idle time in downstream services, Slowpoke implements a gossip-like coordination protocol. When the target service receives its batch threshold, it triggers a notification to its neighbors. This notification cascades across the microservice graph without a centralized coordinator. Services pause incrementally based on their accumulated request counts, ensuring that over a sustained execution period, non-target services are properly saturated to match the mathematical model.

System Architecture and Implementation

In a standard Kubernetes deployment, each microservice runs in a dedicated pod communicating via layer-7 protocols (HTTP/gRPC). Slowpoke integrates into this stack through two primary components:

  1. Lightweight Instrumentation Libraries: Embedded into communication libraries to monitor incoming traffic and track batch accumulation for slowdowns.
  2. The Poker Control Process: A control daemon running alongside each service within the same pod. Poker communicates traffic statistics from the instrumentation library via standard Unix pipes, coordinates slowdown states with neighboring Pokers over dedicated TCP channels, and applies the actual pauses using standard OS process group signals.

Experimental Setup & Results

▶ Watch: System design and data plane components architecture (9:00)

The evaluation of Slowpoke encompasses both real-world microservice suites and large-scale synthetic testbeds.

  • Real-World Benchmarks: Evaluated using four complex applications from Death Star Benchmarks and a standard Google demo microservice application.
  • Synthetic Testbed: Evaluated across 1,080 synthetic applications spanning 9 distinct topologies (including conditional branching where root services invoke downstream alternatives based on cache-miss probabilities).
  • Experimental Variations: Tests systematically varied communication protocols, request concurrency levels, and the position of the target service within the call graph.
  • Baseline and Metrics: Accuracy is measured using the relative percentage error and root mean square error (RMSE) between predicted throughput curves and empirical ground truth. Ground truth was established by physically modifying services to introduce or remove artificial spinning time. Across all real-world applications, Slowpoke achieved an RMSE of 2.1%, while synthetic evaluations yielded an RMSE of 1.9%, confirming that the linear programming model generalizes across diverse operational profiles.

Practical Implications

▶ Watch: Evaluation on synthetic applications and summary (11:45)

For infrastructure teams, platform engineers, and engineering managers, Slowpoke transforms capacity planning from guesswork into a data-driven science. Instead of committing expensive engineering hours to optimize a service only to discover that a secondary bottleneck immediately caps performance, teams can use Slowpoke to forecast return on investment before writing code.

However, practitioners must navigate certain limitations. The accuracy of Slowpoke relies on the validity of its linear programming constraints; highly dynamic workloads with non-linear resource contention (such as lock contention under heavy concurrency) may require careful tuning. Additionally, while the gossip-based coordination minimizes overhead, introducing artificial pauses into production-adjacent environments requires careful staging to avoid disrupting live user traffic.

Key Takeaways

  • Predictive Optimization: Slowpoke predicts the end-to-end throughput impact of hypothetical microservice optimizations without requiring prior code implementation.
  • Bottleneck Equivalence: The system leverages a novel linear programming model to establish that slowing down non-target services mathematically mirrors accelerating the target service.
  • Decentralized Coordination: A gossip-like protocol coordinates service pauses across complex Kubernetes topologies, avoiding the scaling bottlenecks of centralized management.
  • High Accuracy: Achieves an RMSE of roughly 2% across both complex real-world suites (Death Star Benchmarks) and over a thousand synthetic application variants.
  • Resource Prioritization: Empowers engineering managers to direct limited optimization resources toward services that yield genuine end-to-end performance gains.

About the Speaker(s)

The talk was presented by researchers from Brown University and Boston University, featuring Yizheng Xie, Di Jin, Oğuzhan Çölkesen, Vasiliki Kalavri, John Liagouris, and Nikos Vasilakis. The research originates from academic groups specializing in systems, distributed computing, and data management, focusing on practical tooling for modern cloud-native infrastructures.

Reviews

→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)

All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)