Skip to content
mentoor

Topic 5 of 5 · 5 min read

Graceful degradation when the model is down

Goal: Choose a degraded mode for a feature during a provider outage and write the message users see.

Decide before the outage what each AI feature does when the model is unavailable, and tell users the truth in specific words. Fallback models are the first line; degraded modes are what is left when every model fails or the breaker is open.

Check yourself · 1 of 3

Which feature is a good candidate for queueing work until the model is back?

Choose one answer

Why it matters

An AI feature that shows "Something went wrong" teaches users to distrust it, and gives support nothing to work with. A feature that says what is unavailable, what still works and when to come back keeps trust through the incident.

The four modes

  1. Cached or precomputed answers. For repeated questions, serve a stored answer, marked with its age. Fine for FAQs and product descriptions; wrong for anything personal or time-sensitive.
  2. Queue for later. For work nobody is waiting on, such as summaries, tagging and report drafts, accept the job, store it and process it when the circuit closes. Tell the user it is queued and how they will be told.
  3. Reduced feature. Keep the non-AI path: search without generated answers, a form without autofill, the human support queue. The AI was an accelerator, so remove it.
  4. Switch off with an honest message. When none of the above is safe, turn the feature off clearly. Do not return a made-up or stale answer to look available.

Choosing

Ask four questions: Is a stale answer still correct? Can the work wait? Is there a non-AI path? What is the cost of a wrong answer? Medical, legal and financial answers should switch off or route to a human, not fall back to a cached guess.

The message

Say what failed, what still works and what to do next, plus a reference id for support. Show a status line driven by your breaker state, so it appears without a deploy.

Feature: contract summary
State: provider outage, breaker open
1. Upload and storage keep working.
2. Summary jobs are queued; user sees "Summaries are delayed."
3. Cached summaries open with a "Generated 3 days ago" label.
4. Jobs run when the breaker closes; email the user when ready.

Before and after

Weak: "Something went wrong. Try again." The user retries five times, which adds load.

Fixed: "Summaries are delayed because our AI provider is having problems. Your contract is saved and we will email you when the summary is ready. Reference: INC-4F2A."

What goes wrong

  • Serving stale answers without a label, so users act on old data.
  • Queues without limits or expiry, which turn a 20 minute outage into hours of backlog.
  • Never rehearsing it. The first time the degraded path runs is during the incident. Force the breaker open in staging.
  • A message that blames the user or hides that AI is involved.

Examples

Choosing for three features

Product description generator: queue and retry later. Help-centre answer bot: cached answers for known questions with an age label, otherwise link to search and a human contact. Tax-advice assistant: switch off with an honest message and a link to the support form.

A status-driven banner

The breaker for the main provider is open, so a banner reads: "Smart replies are paused. You can still reply manually. Status: investigating." It disappears when the breaker closes, with no deploy and no manual edit.

Key points

  • Choose the degraded mode per feature in advance: cache, queue, reduced non-AI path or switch off.
  • Serve cached answers only when they are still correct, and label their age.
  • Queue work nobody is waiting on, with limits and expiry so the backlog stays manageable.
  • For high-stakes answers, switch off or route to a human instead of guessing.
  • Write messages that say what failed, what still works, what to do next and a reference id, driven by breaker state.

Common mistakes

  • Showing the same generic error for every kind of failure.
  • Returning cached answers with no timestamp or label.
  • Letting the queue grow without a limit or expiry.
  • Never testing the degraded path before a real outage.

Check yourself · 2 of 3

Which message fits an outage best?

Choose one answer

Check yourself · 3 of 3

A cached answer is served during an outage. What must accompany it?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic