degrade gracefully
(dih-GRAYD GRAYS-fuh-lee) verb
- Of a system: to maintain at least some of its functionality when portions are not working, or when certain features are not available. When the search service timed out, the page degraded gracefully and showed cached results.
Origin
Origin uncertain.
In practice
Decide per dependency what the user sees when it fails: cached data, a reduced feature or a clear message. Test it by switching the dependency off, not by assuming.
Say to your AI
Review this service and describe how it should degrade gracefully if the database, the cache or the third-party API is unavailable, with a fallback for each.
In plain words
- keeps working when part of it breaks
- still useful when something is down
- falls back to a simpler version
- fails a bit at a time instead of all at once
See also graceful degradation fault tolerance backoff digital decay
Adapted from Wiktionary (CC BY-SA 4.0).