AISim › Chapter 3: Keeping it running
The provider is down
Level 11. 503, 503, 503. Your status page is getting traffic.
Your model provider is having a bad day: 70% of calls fail with 503 errors. Your whole product depends on that one provider, so your users see errors too. Keep the product up without wrecking speed or quality.
Goals
- error rate at most 1%
- accuracy at least 74%
- median latency at most 6.0s
Concepts: Outages, Retries, Failover.
Hint
Try Retry & Fallback with only retries first, and push them up. Does it get better or worse? Then give it somewhere else to go: a second model on provider B, or your own GPUs.
What you learn
Retries help with brief blips, but during a real outage they pile more load onto a struggling provider and make things worse (a retry storm). Resilience means having somewhere else to go: a second provider or a self-hosted model, with automatic failover, timeouts and a cap on retries. The backup doesn't need to be identical, just good enough to keep you up.
More in this chapter
- The research assistant (Level 12)
- Think harder? (Level 13)
- It broke the parser (Level 14)
- Yesterday's answers (Level 15)
- The 9am board report (Chapter 3 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).