LearningTech

Scaling

Active–Passive

Description

One node is active, others are on standby waiting for a failure to take over.

Where to use

  • Disaster Recovery.

Real World Example

Primary server runs. Secondary server is off/idle until Primary fails.

Code Example

class Active–Passive:
    def __init__(self):
        pass

    def execute(self):
        print('Executing Active–Passive')