Reliability

Graceful Degradation

Description

The ability of a computer, machine, electronic system or network to maintain limited functionality even when a large portion of it has been destroyed or rendered inoperative.

Where to use

  • High availability.

Real World Example

If the search index is down, show 'Recent Items' list instead of a 500 error.

Code Example

class GracefulDegradation:\n    def __init__(self):\n        pass\n\n    def execute(self):\n        print('Executing Graceful Degradation')