Your traffic hasn’t increased. So why is your service suddenly overloaded?

Distributed Systems
System Design
Performance Engineering
SRE
How adaptive concurrency limits respond to rising latency and help protect shared dependencies.
Published

November 28, 2026

Tech Blog · 简体中文

Imagine a microservice handling 5,000 requests per second, with an average response time of 20 ms.

Everything looks healthy.

Then a downstream database slows down. Average response time increases to 200 ms.

Traffic remains unchanged. Yet the service starts running out of connections, memory, and other resources.

Why?

1. Rate limiting controls traffic, not resource consumption

According to Little’s Law:

Concurrency = Throughput × Response Time

At 5,000 RPS, assuming steady-state throughput:

  • 20 ms → 100 concurrent requests
  • 100 ms → 500 concurrent requests
  • 200 ms → 1,000 concurrent requests
  • 500 ms → 2,500 concurrent requests

The same throughput can require 25 times as many in-flight requests.

A fixed rate limiter may continue admitting requests even when the system can no longer handle them.

This is where adaptive concurrency limiting comes in.

2. Let the system discover its own capacity

Instead of enforcing a fixed concurrency limit, an adaptive controller continuously adjusts it based on runtime feedback.

The goal is to operate near maximum sustainable throughput without allowing excessive queueing.

Three approaches illustrate how controllers do this.

  • Vegas estimates queue size by comparing current latency with baseline latency.
  • Gradient2 compares short-term and long-term latency trends to detect sustained congestion, reducing dependence on historical minimum latency.
  • AIMD gradually increases concurrency when the system is healthy and reduces it multiplicatively when it detects congestion.

Vegas estimates the queue as follows.

Estimated Queue = Limit × (1 − minRTT / currentRTT)

Netflix’s concurrency-limits library implements these approaches. Envoy also provides adaptive concurrency control.

3. Local control and global capacity

Imagine 100 microservice instances sharing a PostgreSQL database.

Each instance allows 20 concurrent database operations, for a potential aggregate concurrency of 2,000. The database can sustain only 500 concurrent operations.

Even with independent adaptive controllers, synchronized increases and decreases can cause oscillation, unfairness, and underutilization.

A more robust architecture combines:

  • Local concurrency limits to protect individual instances.
  • A global concurrency budget to protect shared dependencies.
  • Bounded queues and connection pools as hard safety constraints.
  • Retry budgets and backoff to prevent rejected requests from amplifying overload.

4. The engineering tradeoff

Increase concurrency too slowly, and you waste capacity.

Increase it too aggressively, and delayed feedback can cause overshooting and oscillation.

Reduce it too aggressively, and throughput suffers.

The goal is to maximize sustainable goodput within your latency SLO.

Rate limiting controls how fast work enters the system.

Concurrency limiting controls how much work accumulates inside it.

Adaptive concurrency limiting helps the system respond when its capacity changes.

Have you implemented adaptive concurrency control in production?