AI Resilience Architecture: Handling Correlated Multi-Model Outages
When multiple LLM providers fail at the same time, traditional active-passive redundancy breaks down. This article explains how to model correlated failures, classify errors by recoverability, and design a four-layer architecture with capability abstraction, health-aware routing, explicit degradation paths, and semantic caching. It also covers stability guardrails such as circuit breakers, rate limiting, bulkheads, and backpressure, plus observability metrics and chaos drills—including the often-overlooked scenario where all providers are unavailable simultaneously.
1. The Event: When “Backups” Fail Together
A typical multi-model outage unfolds along a timeline like this (times are illustrative, meant to show the pattern): one evening, three general-purpose LLM services see rising error rates within roughly half an hour. One has the broadest impact, with the web app, mobile app, and code assistance all failing at once. Another starts failing earlier but recovers most capacity within about two hours. The third confirms a service anomaly, though the impact is weaker in some regions. On social media, the topic heats up quickly. Many users’ first instinct is to switch to another model to check the situation—only to find that the “backup” is unavailable too.
The core problem here is not the quality of any single service. It is correlated failure: when multiple vendors share similar underlying compute supply, network backbones, identity authentication and risk-control chains—and even the same industry traffic peak-and-trough patterns—their outages become highly correlated in time. The traditional active-passive assumption treats primary and backup failures as independent. Once correlation holds, redundancy collapses quickly.
So the architectural goal shifts from “prepare a backup” to building a low-correlation capability portfolio plus controlled degradation paths.
2. Risk Modeling: Breaking “Model Unavailable” into Actionable States
Rather than retrying everything blindly, classify LLM call failures by how they can be handled:
- Retryable transient errors: rate limiting, momentary timeouts, connection resets. Use exponential backoff with jitter.
- Non-retryable request errors: context too long, invalid arguments, blocked content. Retrying is pointless; fail fast and return a readable reason.
- Service-level unavailability: sustained error-rate increases, widespread timeouts. Trigger circuit breaking and cross-provider switching.
- Quality degradation: the API responds, but output quality drops noticeably (truncation, off-topic answers). This requires business-side quality checks, not just status codes.
Illustrative classification logic:
RETRYABLE = {"rate_limit", "timeout", "connection_reset"}def classify(err):if err.code in RETRYABLE:return "retry"if err.code in {"context_too_long", "invalid_argument", "content_blocked"}:return "fail_fast"if err.rate_5min > 0.2: # error-rate threshold; calibrate with your own load testsreturn "circuit_open" # open the circuit; switch or degradereturn "degrade_check" # run output quality checks
Key point: thresholds must be calibrated against your own load tests and historical data. Copying someone else’s configuration often causes false trips or trips that come too late.
3. Architecture: Four Layers of Redundancy and Failure-Domain Isolation
3.1 Access Layer: Unified Abstraction
Insert a capability gateway between business services and models. It abstracts different vendors’ capabilities into unified semantics (text generation, structured extraction, code completion, embedding), so business code only programs against the abstract interface. Adding or replacing a backend then requires no business logic changes.
Business services → Capability gateway (auth / quota / routing / audit) → Model adapters A/B/C↓Degradation policy and cache layer
3.2 Routing Layer: Low-Correlation Portfolio and Capacity Awareness
- Correlation isolation: primaries and backups should come from different vendors, different regional access points, and different billing entities, avoiding a shared authentication and risk-control chain.
- Capacity-aware scheduling: weight backends dynamically by real-time error rate, time-to-first-token latency, and throughput quota, instead of a fixed primary/backup pair.
- Request sharding: split long tasks into smaller requests dispatched in parallel to different backends, reducing the impact of a single point of failure on overall success rate.
3.3 Degradation Layer: “Unavailable” Does Not Mean “Business Unavailable”
Degradation must be an explicit, productized design with at least three tiers:
- Switch backend: move to a second-best model while keeping the same capability shape.
- Switch form: downgrade generative capability to retrieval-based or template-based answers so information stays available.
- Switch interaction: move to an asynchronous task queue and tell users to collect results later, avoiding a synchronous-chain avalanche.
3.4 Data Layer: Caching and Result Reuse
For high-frequency, low-freshness requests, build a semantic cache keyed on a normalized semantic fingerprint; return immediately on a hit. Note three things: set a reasonable TTL; forbid cross-user reuse for content involving privacy and permissions; and include permission and tenant dimensions in the cache key to prevent unauthorized reads.
4. Stability Guardrails: Circuit Breaking, Rate Limiting, Bulkheads, and Backpressure
- Circuit breaking: after consecutive failures hit a threshold, fail fast so threads and connections are not dragged down; use a half-open state to probe recovery with small traffic.
- Rate limiting and quotas: apply token buckets per tenant and per API so a single caller cannot amplify traffic during an outage.
- Bulkhead isolation: give different business lines separate connection pools and concurrency limits so one chain cannot exhaust global resources.
- Backpressure and queues: absorb traffic spikes with a message queue, and use idempotency keys to make repeated consumption safe.
# Pseudocode: circuit breaking + cross-backend switching + degradationasync def call_with_fallback(req):for backend in router.order_by_health(req.capability):try:return await breaker(backend).invoke(req)except RetryableError:continueexcept FatalRequestError as e:return fail_fast(e)return await degrade(req) # template / retrieval / async task
5. Observability and Drills: Making Hidden Risk Visible
Monitor more than success/failure. Also track: per-vendor error rate and time-to-first-token latency, circuit-breaker state, degradation trigger counts, cache hit rate, remaining quota, and output-quality spot-check pass rate. Logs should record the routing decision chain (after redaction) so post-mortems can attribute issues to the vendor side, the network side, or your own parameters.
Drills matter just as much:
- Fault injection: in a staging environment, simulate single-vendor timeouts, rate limiting, and error-rate spikes to verify that switching and degradation work as expected.
- Simultaneous multi-vendor outage drill: specifically validate the correlated-failure scenario—the use case most often overlooked.
- Routine chaos drills: make switching time and post-degradation business availability release-gating metrics.
6. Cost and Capacity: Resilience Is Not Unlimited Redundancy
Keeping multiple backends warm adds cost. Use “low-frequency hot standby plus on-demand scaling”: standby backends hold minimum viable capacity and stay ready through low-frequency health probes, then scale up quickly during an outage. Meanwhile, caching and request coalescing reduce total call volume, and the savings go into redundant capacity—a positive loop.
7. Conclusion
A multi-model outage reminds us that single-point-dependent “intelligence” is fragile. Real reliability comes from a low-correlation capability portfolio, explicitly designed degradation paths, measurable circuit-breaking policies, and routine drills. When you treat models as replaceable compute resources and design business continuity as a first-class requirement, the next collective shutdown is just a routine operations event—not an incident.
