Why Free LLM Services Keep Hitting Compute Limits

    Free large language model services are increasingly replacing soft "please retry later" messages with hard usage limits. This article explains why this shift happens, covering supply and demand pressures, the assumptions application teams must revisit, and practical architecture patterns such as externalized session state, tiered routing, backoff with quota governance, and observability.

    1. The Shift: From “Retry Later” to Hard Quotas

    A large model platform recently introduced usage limits for long conversations. Users experienced the change on three fronts: shorter single-input limits, shorter retention for inactive sessions, and a cap on daily calls. Unlike the earlier soft message returned during service disruptions—“server busy, please retry later”—this time requests are rejected outright with an explicit resource constraint.

    The essence of this shift is a move in service governance from “elastic buffering” to “admission control.” Soft retries rely on clients repeatedly issuing requests, spreading overload pressure across the timeline, which only works while the system still has headroom. Once that headroom is continuously drained, retries amplify traffic and create a positive-feedback congestion loop. Hard quotas move uncertainty forward to the access layer, trading a definite rejection for the definite completion of existing requests.

    From an engineering perspective, this is a classic load shedding strategy. Its value is not “better service” but converting an uncontrollable global collapse into controllable local failures. For developers, the real signal is that the era of designing architectures around free quota as an infinite resource is over.

    2. Causes: Pressure on Both Supply and Demand

    Demand side: the free model lacks a price lever. The core role of billing is not just cost recovery but guiding call behavior through price signals. When the marginal cost of a call is zero, high-consumption scenarios (extra-long context, batch summarization, loop-style agent calls) occupy resources indiscriminately, creating a “run” on scarce compute that is structurally similar to liquidity risk in finance.

    Supply side: access to high-end compute is constrained and expansion cycles are long. Training and inference clusters depend on high-bandwidth memory and high-speed interconnects; supply is affected by export controls and supply chain cycles, and domestic alternatives still need time to mature in software ecosystem readiness. This makes the supply curve nearly vertical in the short term, unable to shift right quickly through procurement.

    Operations side: a lack of fine-grained traffic splitting tools. Free services typically have no tenant-level quotas, priority queues, or multi-tier model routing, leaving only the coarsest “one-size-fits-all” quota. The coarser the granularity, the more collateral damage—but it is the second-best solution under a capability gap.

    3. Impact: Three Assumptions Application Teams Must Reassess

    1. Context can grow indefinitely. Both the input length limit and the history retention period are variables, so long-memory designs cannot rely on platform-side persistence.
    2. Calls can be retried indefinitely. Rate-limit responses must be treated as one of the terminal states, not a temporary jitter.
    3. A single model can cover all scenarios. Availability of a single channel drops during peak hours, which requires the architecture to support multi-tier capability routing.

    4. Response: Application Architecture Under Resource Constraints

    4.1 Externalize Session State

    Do not host context on the platform side. Write conversation history to your own storage (such as object storage, a relational database, or a cache cluster), and construct only the minimum necessary context on demand:

    1. def build_context(session_id, query, budget=6000):
    2. history = store.load(session_id) # own storage
    3. recalled = retriever.search(query, k=4) # retrieval instead of full concatenation
    4. trimmed = trim_by_token(history, budget) # budget-based trimming
    5. return assemble(system_prompt, recalled, trimmed, query)

    The key is the concept of a “budget”: set a hard budget for context and, when it is exceeded, drop low-information-density history first rather than letting the request be rejected at the gateway.

    4.2 Tiered Routing and Degradation

    Choose a capability tier by task value and predefine a degradation chain:

    1. request -> high tier (complex reasoning)
    2. fail/rate-limited -> mid tier (general conversation)
    3. fail/rate-limited -> light tier (template + retrieval)
    4. all fail -> queue and return clear progress

    Degradation is not failure but a continuation of availability. The key is to make degradation perceivable and explainable to users.

    4.3 Backoff Retries and Quota Governance

    For rate-limit errors, use exponential backoff with jitter and set a retry budget to avoid retry storms:

    1. import random, time
    2. def call_with_backoff(fn, max_attempts=3, base=1.0):
    3. for i in range(max_attempts):
    4. try:
    5. return fn()
    6. except RateLimited:
    7. if i == max_attempts - 1:
    8. raise
    9. time.sleep(base * (2 ** i) + random.uniform(0, 0.5))

    At the same time, establish a tenant-level token bucket that maps platform limits to internal quotas, preventing individual tasks from exhausting the overall allowance.

    4.4 Closing the Observability Loop

    Collect four metrics—time to first token, context length per request, rate-limit hit rate, and degradation trigger rate—and configure monitoring alerts. When the rate-limit hit rate keeps rising, capacity planning needs adjustment rather than more retry tuning.

    5. Outlook

    Free quota will persist, but it will evolve into a combination of “base quota + elastic scaling + tiered service.” The core competitiveness of developers is shifting from “which model to integrate” to “how to keep experience deterministic under uncertain supply.” Baidu AI Cloud continues to invest in model services and compute scheduling, offering general product categories that support elastic quotas, tiered routing, and full-link observability, helping applications converge external resource volatility into internally controllable engineering problems.