High-Concurrency LLM Inference: Service Governance and Cost Optimization

    This article examines the shift toward high-frequency, short-output, cost-sensitive LLM requests and its implications for inference services. It outlines five bottlenecks—ingress and authentication, routing, batching, elasticity, and observability—and presents a layered architecture covering ingress protection, tiered routing, dynamic batching, cache reuse, queue- and TTFT-driven scaling, and attributable metrics. It also provides capacity planning guidance and a five-step implementation roadmap for balancing latency, stability, and per-token cost.

    1. Technical Signals Behind Surging Call Volume

    Public industry statistics show that global weekly AI large-model call volume has reached the 69 trillion token level, up 21.48% month over month (MoM). China’s weekly large-model call volume has reached 34.25 trillion tokens, up 21.76% MoM, and has ranked first globally for 15 consecutive weeks. More notable is the change in leading model positions: after a type of cost-effective lightweight model was officially released, its weekly call volume rose to first place at 8.83 trillion tokens, up 570% MoM; the second position reached 8.05 trillion tokens, up 67% MoM; and the fourth position reached 5.39 trillion tokens, down 14% MoM.

    These figures should not be read simply as a one-off traffic peak. They should be viewed as a migration in call structure: a large number of high-frequency, short-output, cost-sensitive, and bursty requests are concentrating on lightweight models. For inference services, this means the system must simultaneously handle higher request concurrency, stricter requirements for time to first token (TTFT), more complex multi-tenant quotas, and tighter control over per-token cost. If a static capacity model designed for low-frequency, long-text requests is still used, it is easy to encounter queue buildup, deteriorating tail latency, fluctuating GPU utilization, and runaway costs.

    2. Five Bottlenecks in High-Concurrency Inference

    The first is the ingress and authentication bottleneck. When call volume jumps, authentication, quota validation, request parsing, and log writing all amplify pressure on the ingress layer, so asynchronous and batched processing are required. The second is the routing bottleneck. Different tenants have different requirements for latency, cost, and model capability; without tiered routing, lightweight requests may occupy high-cost replicas. The third is the inference batching bottleneck. A batch size that is too small wastes compute, while one that is too large increases tail latency, so dynamic batching must work with backpressure. The fourth is the elasticity bottleneck. Model replica cold starts are slow, and scaling that looks only at average utilization often lags behind bursty traffic. The fifth is the observability bottleneck. Without metrics by model, tenant, and cost, it is impossible to identify the root cause when “call volume grows but cost is abnormal.”

    3. Layered Architecture and Key Strategies

    Ingress layer: protect the system before serving requests. The ingress layer should handle authentication, tenant quotas, concurrency isolation, timeout control, and retry budgets. Retries must have budgets and backoff policies to avoid amplifying traffic during failures. Independent concurrency pools can be reserved for high-priority tenants, while low-priority requests can be queued or degraded.

    Routing layer: tier by latency and cost. Requests can be divided into latency-sensitive, cost-sensitive, and default categories, then routed to different replica pools. Routing policies should support canary releases, circuit breaking, and fallback to prevent a single replica anomaly from spreading. Example configuration pseudo-code:

    1. route_policy:
    2. latency_sensitive:
    3. max_batch_tokens: small
    4. target_ttft_ms: low
    5. fallback: lightweight_copy
    6. cost_sensitive:
    7. max_batch_tokens: large
    8. target_ttft_ms: medium
    9. fallback: queue
    10. default:
    11. max_batch_tokens: medium
    12. target_ttft_ms: medium
    13. fallback: degrade

    Inference layer: dynamic batching and cache reuse. Continuous batching can dynamically concatenate new requests during generation to improve throughput, but it must limit the maximum tokens per batch and monitor P95/P99 TTFT. KV cache reuse, prefix caching, and result caching can reduce repeated computation; semantic caching requires careful evaluation of false hits. General methods such as quantization and distillation can reduce cost, but accuracy regression testing must be performed before launch.

    1. admit(request, tenant, tier):
    2. if not quota.allow(tenant, tier):
    3. return error(429, "quota_exceeded")
    4. if queue.depth(tier) > high_watermark:
    5. return error(503, "backpressure")
    6. if health(tier) == degraded:
    7. return route_to_fallback(request)
    8. return enqueue(request, priority=derive_priority(request))

    Elasticity layer: shift from “watching utilization” to “watching queues and TTFT.” Scaling triggers should combine queue depth, TTFT percentiles, GPU utilization, and error rate. Model replicas need warm pools, weight preloading, and image layering to reduce cold starts. Scaling policies should include a burst factor; the higher the historical MoM growth, the more rapid scaling and redundancy headroom are needed.

    Observability layer: build an attributable metric system. Metrics should at least cover call volume, MoM change, model dimension, tenant dimension, error codes, P95/P99 TTFT, output token throughput, GPU utilization, memory fragmentation, queue depth, cache hit rate, and per-token cost. Only by attributing cost to tenants and model replicas can capacity and budget be linked.

    4. Capacity Planning and Implementation Roadmap

    Capacity planning should use peak QPS, target latency percentiles, and effective throughput per replica as baselines, then add 20% to 40% redundancy headroom and a burst factor. For lightweight models with extremely high MoM growth, stress tests should separately cover short-request, high-concurrency, and long-tail mixed traffic, along with failure drills. Implementation can be divided into five steps: first complete the observability baseline; then add rate limiting and tenant quotas; next introduce tiered routing and dynamic batching; then build warm pools and elastic scaling; finally implement cost attribution and continuous tuning.

    In general cloud environments such as Baidu AI Cloud, container platforms, object storage, logging services, monitoring and alerting, and message queues can be combined to build these capabilities. Regardless of the cloud environment, the core is to use observable metrics to drive elasticity, use tiered policies to balance latency and cost, and use backpressure and circuit breaking to protect the stability baseline. Ranking first in call volume and 570% MoM growth are only results; what truly determines service quality is the measurable, scalable, and degradable inference governance system behind them.