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

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

This interactive level needs JavaScript. Built by (cybernerdie).