Design a gateway over several external LLM providers with fallback
MediumSystem design45 minSWEMLEREPro outline
The question
The product calls models from several outside providers. Design a gateway that routes each request to a provider and falls back to another when one is slow, erroring or rate limited.
What the interviewer is looking for
- Covers what the official guide grades: framing, requirements, core architecture, scale and bottlenecks, trade-offs and adaptability, without adding complexity for its own sake
- Defines health using latency and errors, not just up or down
- Uses circuit breakers and timeouts
- Handles streaming and partial responses
- Considers cost, quality differences and prompt compatibility
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Perplexity question type: Pool of external LLM providers with fallback when one fails.
Reported in: calibrd.com, interviewresources.perplexity.ai
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Perplexity question.