Step-by-step answer
Core 75 min6 stepsSimulate fallbacks, correlation and budgets
A seeded, standard-library simulation of a gateway in front of two providers and per-firm budgets. It reproduces the lesson's 2-minute independent figure, shows a 0.3 correlation turning it into 66 minutes a month, shows a 5-second timeout failing a quarter of requests during an outage, and measures soft-cap overshoot at 1, 10 and 50 concurrent requests.
Back to the exercise