Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Designing the Fallback for When a Model Is Unavailable
Cloud & DevOps

Designing the Fallback for When a Model Is Unavailable

Every model is unavailable sometimes. Deciding in advance what the business does without it is the difference between a degraded feature and a stopped process.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

A model embedded in a process without a fallback makes that process depend on its availability. Decide per use case whether to fail open, fail closed, serve a cached value or fall back to a rule - and test it, because untested fallbacks usually do not work.

The dependency nobody planned

A prediction service gets added to a checkout, an order flow or an approval process. It works, so it becomes load-bearing. Then it is unavailable - a deployment, a dependency, an expired certificate - and nobody has decided what the process should do.

The default is whatever the code happens to do, which is often to throw an error and stop. A recommendation failure taking down a checkout is a real and avoidable outcome.

Four options, chosen per use case

StrategyBehaviourSuits
Fail openProceed as if approved or unflaggedLow-risk decisions where blocking costs more
Fail closedBlock or route to manual reviewRisk controls where proceeding is dangerous
Cached valueServe the last known predictionSlowly-changing scores
Rule fallbackApply a simple pre-agreed ruleWhere a crude answer beats none

The choice belongs to the business owner, not the engineer, because it is a risk decision. It also differs by use case within one organisation - a fraud check should fail closed while a product recommendation should quietly disappear.

The rule fallback is underrated

Keeping the rule-based logic the model replaced, rather than deleting it, gives a fallback that is already understood and already correct enough to have run the business previously.

It needs occasional exercise to stay working. A rule path untouched for two years will have drifted out of step with the data around it. Running it periodically, even just in shadow, keeps it honest.

Make degradation visible

When the fallback engages, people need to know. A silent switch to default recommendations looks like a model that suddenly got worse, and teams can spend days investigating a model that is not running.

  • Log every fallback with its reason, and alert if the rate crosses a threshold
  • Show a quiet indicator in internal tools when scores are cached or defaulted
  • Record which path each decision took, so later analysis is not contaminated
  • Report fallback rate alongside accuracy in routine monitoring

That third point matters for training data. Decisions made by the fallback should not be attributed to the model when you next evaluate it.

Test it deliberately

A fallback that has never been exercised is a plan rather than a mechanism. Turn the model off in a test environment - and periodically in production, during a quiet window - and confirm the business process continues.

This is unglamorous and it is the difference between a designed degradation and an incident. The failure everyone remembers is rarely the model being wrong; it is the model being absent and nothing having been decided.

An untested fallback is a note saying what you hoped would happen.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Should every model have a fallback?

Every model embedded in a process that must keep running, yes. A model producing an offline report can simply be late.

Is a cached prediction safe to use?

It depends how fast the underlying situation changes. Attach an age limit and fall through to something else beyond it.

Who decides fail open or fail closed?

The business owner of the process, since it is a risk decision. Document the choice and the reasoning.

How often should fallbacks be tested?

Regularly enough that changes elsewhere do not silently break them - at minimum whenever the surrounding process changes.

Keep reading

More on Cloud & DevOps

Cloud & DevOps

CI/CD for Machine Learning Projects

Software pipelines test code. Model pipelines must also test data and behaviour. What to add, and which gates should stop a release.

Cloud & DevOps

Batching Predictions to Reduce Cost

Scoring records individually is the most expensive way to run a model. When batching works, and how to keep results fresh enough.

Start here

Want machine learning project details from us?

Tell us what you are trying to predict and roughly what data you hold. We will come back with an honest view on whether machine learning is the right tool, what the work would involve and a realistic cost range. If a spreadsheet would do the job, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →