AI Chat Service Partial Outages: Incident Response and Availability Practices for Web and API

    This article explains how to identify, diagnose, and recover from partial outages of conversational AI services that affect the web interface, the API, or both. It covers impact assessment, observability, capacity and dependency controls, API retry design, incident response, and postmortems, and ends with a checklist developers can use to build a practical availability program.

    A conversational AI service typically consists of an access layer, authentication and quota management, session management, inference scheduling, model serving, and storage and logging. The web interface and API calls may share some backend capabilities. As a result, a capacity bottleneck, a dependency failure, or a faulty change in any one component can surface to users as “Server busy, please try again later.”

    On November 3, a conversational AI service experienced a partial outage affecting its web interface and API. The status page’s incident history recorded the event from 16:58 to 18:48, about 1 hour and 49 minutes in total. Users saw “Server busy, please try again later” in the chat interface. Service later recovered, and the status page showed normal operation. For developers and enterprise users, the timeline matters less than how to translate such symptoms into an actionable availability framework.

    1. From Symptoms to Impact: Defining a “Partial Outage”

    A partial outage does not mean the entire service is down. The web interface may be unavailable while the API still works. API error rates may rise, streaming output may cut off, queue times may grow, or specific features may stop working.

    After detection, first build an impact matrix. It should check:

    • Whether the entry layer is healthy
    • Whether authentication and quota checks are passing
    • Whether session reads and writes succeed
    • Whether inference requests time out in the queue
    • Whether the model service returns errors
    • Whether streaming connections are interrupted
    • Whether the status page reflects the problem

    For the API, distinguish 5xx server errors, 429 rate-limit errors, timeouts, connection interruptions, and business error codes. For the web interface, watch front-end error messages, retry buttons, session recovery, and results from user-side probes. Impact assessment should rely on metrics and sampled requests, not only on individual user reports.

    The status page’s incident history is an important way to build trust after the fact. Each entry should record the start time, recovery time, affected scope, current status, and a pointer to the follow-up review. The front end should not retry indefinitely. It should tell users they can try again later or check the status page.

    2. Observability: Make Failures Detectable, Diagnosable, and Verifiable

    Observability for a conversational AI service should cover metrics, logs, and distributed tracing. Common golden signals include request volume, success rate, error rate, P95 and P99 latency, timeout rate, queue time, concurrency, and resource saturation. For AI services specifically, also track the streaming interruption rate, inference queue length, throughput per unit time, error rates of dependency calls, and front-end availability probes.

    Alert thresholds should not be set by guesswork. Design them around SLOs and error budgets. For example, use tiered alerts based on per-minute error rates, sustained timeout ratios, queue length, and dependency anomalies.

    Logs should keep request IDs, tenant or caller dimensions, error codes, and latency distributions. Tracing should connect web requests, the API gateway, authentication, scheduling, and inference services.

    Recovery should not be judged by whether processes are running. Confirm it through multi-metric regression, sampled API calls, web probes, and status page updates together. Before the status page shows “All systems operational,” verify error rates, latency, queues, and user-side probes jointly.

    3. Capacity and Dependency Governance: Rate Limiting, Isolation, Degradation, and Circuit Breaking

    AI inference capacity is slow to scale and expensive. Capacity planning must account for peak concurrency, queue length, timeout budgets, and recovery headroom together.

    Rate limits should apply by tenant, user, endpoint, and feature, so one caller cannot exhaust shared capacity. Web and API traffic can receive different quotas based on business priority.

    Isolation includes resource pool isolation, interface isolation, and fault domain isolation. These keep non-core features from dragging down the core conversation path.

    Degradation should be designed in advance. Options include turning off non-core features, shortening queue waits, returning clear retry guidance, serving cached results, or switching to a lighter processing path. Every degradation action should have a switch, an audit record, and automatic recovery conditions.

    Circuit breakers should act on unhealthy dependencies so that retry storms do not amplify the failure. Releases should be canaried and rollback-capable. Configuration and capacity changes should go through approval and observation.

    On Baidu AI Cloud, general capabilities such as load balancing, container platforms, log services, monitoring and alerting, and message queues can be combined to build an observability and elasticity foundation. The specific architecture still has to be designed around business SLOs and cost constraints.

    4. API Reliability Design: Timeouts, Retries, Backoff, and Idempotency

    API callers should set reasonable timeout budgets so that a single request cannot wait indefinitely. Retry retryable errors with exponential backoff and jitter, and fail non-retryable errors quickly. For 429 rate-limit responses, respect the server’s suggested wait time. For 5xx responses and network timeouts, cap the number of attempts.

    Retries must be paired with idempotency design. Write operations should carry an idempotency key. Streaming calls should detect interruptions and either resume or start a new request.

    The following generic pseudocode only illustrates retry decisions and backoff logic. Adjust the parameters to your actual timeout budget.

    1. MAX_ATTEMPTS = 3
    2. BASE_DELAY = 0.2 # Example value; adjust to your timeout budget
    3. def call_ai_service(req):
    4. for attempt in range(MAX_ATTEMPTS):
    5. try:
    6. resp = transport.send(req, timeout=remaining_budget(req))
    7. if resp.status_code < 500 and resp.status_code != 429:
    8. return resp
    9. if resp.status_code == 429:
    10. wait = resp.headers.get("Retry-After")
    11. # Fall back to exponential backoff when no suggested wait time is given
    12. if attempt == MAX_ATTEMPTS - 1:
    13. raise ServiceUnavailable("retry exhausted")
    14. sleep(backoff(attempt, BASE_DELAY))
    15. except TimeoutError:
    16. if attempt == MAX_ATTEMPTS - 1:
    17. raise
    18. sleep(backoff(attempt, BASE_DELAY))

    Callers should log the error type and duration of each attempt, so retry logs do not get buried among business logs. On the server side, return clear error codes and actionable messages that distinguish rate limiting, timeouts, parameter errors, and internal errors.

    5. Incident Response and Recovery Verification: Stop the Impact First, Keep Communication in Sync

    Incident response should be tiered, with clearly defined on-call responsibilities. The first goal is to stop the impact. Responders can roll back recent changes, shift traffic, scale resources, enable degradation, or isolate the faulty dependency. They should not wait for a confirmed root cause before acting.

    Update the status page and user notifications promptly. Explain the affected scope, the current actions, and when the next update will come.

    During recovery, work through a checklist:

    • Has the error rate dropped?
    • Has the queue cleared?
    • Has latency returned to normal?
    • Do sampled API calls succeed?
    • Do web probes pass?
    • Do logs still show abnormal spikes?

    Only after core metrics stay stable should the status page be changed to operational. After the incident, keep a timeline and a record of actions taken. These provide the factual basis for the postmortem.

    6. Postmortems: Turning One Outage into Lasting Capability

    A postmortem should cover the timeline, impact scope, direct cause, root cause, effectiveness of the response, and improvement items. Improvement items should be verifiable and trackable. Examples include queue-length alerts, rate-limit switches, refined idempotency keys, better retry backoff, automatic status page updates, and capacity load tests and fault drills.

    Review SLOs and error budgets regularly. Change reviews should cover capacity, dependencies, and rollback plans.

    For developers, a practical checklist includes:

    • Have core SLOs been defined?
    • Are there user-side probes?
    • Are retryable and non-retryable errors distinguished?
    • Is the number of retries capped?
    • Are there degradation switches?
    • Is there a status page update process?
    • Are recovery checks rehearsed regularly?

    Building these basics well helps teams detect the next partial outage sooner, stop the impact faster, and recover more quickly.