Why LLM Inference Keeps Returning "Service Busy"
This article explains why large language model APIs frequently return "service busy" errors, covering demand shifts from human users to automated agents, supply-side capacity constraints, and practical engineering responses. You will learn how to handle overload through exponential backoff with jitter, gateway rate limiting and prioritization, semantic caching, batching with length bucketing, multi-tier fallback chains, and observability metrics, plus what to evaluate when choosing an LLM service.
1. The Symptom: Why “Service Busy” Shows Up So Often
Most developers hit the same wall when integrating LLM capabilities: the API returns “the service is busy, please retry later.” It happens to both paid subscribers and free users, and it often takes a few retries before a request goes through.
The root cause is server-side admission control. When the available capacity within a given time window is exhausted, the gateway deliberately rejects or queues new requests to keep the backend cluster from collapsing.
One common misconception is worth clearing up: a more capable model does not mean proportionally lower compute requirements. The mixture-of-experts (MoE) architecture widely used in the industry activates only part of the expert networks per inference, which reduces the compute activated by a single request. But the total parameter count, memory footprint, and the communication overhead introduced by expert routing are still substantial. As models get stronger and more requests arrive per unit of time, overall cluster load can actually rise. This mirrors the economic phenomenon where efficiency gains expand total demand: as unit cost falls, usage grows until the savings are consumed again.
2. Demand-Side Shift: Traffic Is Moving from Humans to Agents
Call volume used to come mainly from human interaction, which has natural pauses for thought and a hard ceiling on how fast a person can act. Once the caller becomes an automated program, an AI coding tool, or a multi-agent system, the traffic profile changes completely:
- Relentless polling: programs never get tired and retry immediately after a failure, creating a self-amplifying retry storm.
- Long contexts and chained turns: a single task is split into planning, retrieval, generation, and validation stages, consuming several times the tokens of a normal conversation.
- Concurrency spikes: scheduled jobs, batch regression runs, and pre-release verification create multiples of the baseline peak within minutes.
The conclusion is straightforward: capacity planning can no longer be estimated from “number of human users.” It has to be modeled from task concurrency, average context length, and peak multipliers.
3. Supply-Side Constraints: Why Capacity Cannot Scale Instantly
Scaling inference capacity is bound by several rigid conditions: long lead times for high-end accelerators, data center space plus power and cooling that must be planned ahead, time required to load and warm up large model weights, and latency in cross-availability-zone traffic scheduling. This is why “full the moment we launch” is the norm, and why capacity expansion always lags the demand curve. The rational move is to change the goal from “never reject a request” to “controlled degradation and predictable queuing.”
4. Engineering Practice: Turning Overload into a Manageable Capacity Problem
4.1 Client Side: Retry Gracefully, Not Blindly
Exponential backoff with random jitter is the baseline, paired with an idempotency key to avoid duplicate billing and duplicate writes.
import random, timedef call_with_backoff(fn, max_retry=5, base=0.5, cap=8.0):for attempt in range(max_retry):try:return fn()except Exception as e:if attempt == max_retry - 1:raisesleep = min(cap, base * (2 ** attempt))time.sleep(sleep + random.uniform(0, sleep * 0.3))
4.2 Gateway Side: Rate Limiting, Queuing, and Priority
Use a token bucket to control the ingress rate, and split requests into two tiers: interactive (high priority) and batch (low priority). Low-priority tasks are automatically slowed or deferred during peaks so that critical paths stay available.
4.3 Cost Side: Semantic Caching and Result Reuse
Build a cache layer for highly repetitive requests and return on a hit, which can substantially cut wasted inference. The cache key must include the model identifier, prompt version, and key parameters to avoid cross-contamination.
cache_key = hash(model_id + prompt_version + normalized_prompt + temperature + max_tokens)
4.4 Scheduling Side: Batching and Length Bucketing
Bucket short requests separately from long ones to reduce blocking of a batch by long contexts. In throughput-first scenarios, enable continuous batching to raise the number of requests completed per unit of time.
4.5 Architecture Side: A Multi-Tier Fallback Chain
When the primary path times out, fall back in order to a smaller general-purpose model, retrieval plus templated generation, and finally rule-based canned responses. Mark the degraded state in the response so the business side can detect it.
4.6 Observability: Measure Before Optimizing
Collect at least six metrics: time to first token, end-to-end latency, failure rate, number of rate-limit triggers, cache hit rate, and token consumption per task, with tiered alerting configured. Without measurement, capacity discussions stay at the level of guesswork.
5. Selection and Integration Advice
When evaluating LLM services, teams should score them on general dimensions: whether rate-limiting policies are transparent, whether batch and asynchronous interfaces are offered, whether context length and concurrency quotas cover the peak, whether monitoring and logging are complete, and whether the billing model is clear. For Baidu AI Cloud capabilities, these can be combined with general-purpose product categories: a message queue to smooth peaks, a container platform to host an elastic inference gateway, object storage to retain corpora and results, and logging plus monitoring and alerting to close the loop. That turns an uncontrollable “busy” into a service quality metric you can actually operate.
6. Conclusion
“Service busy” is not a capability defect; it is a signal that demand is genuinely surging. The right response for developers is not to click retry repeatedly, but to make retry, rate limiting, caching, fallback, and observability part of the default infrastructure. When capacity is designed as a first-class concern, an occasional overload is just a predictable queue rather than an incident.
