Design A Multi Tenant Serverless LLM Inference Platform

Last updated: November 29, 2026

Quick Overview

Design a serverless API that serves dozens of open-weight models to thousands of customers with per-token pricing, streaming responses, per-key rate limits and tight latency targets, on a shared GPU fleet.

Fireworks AI
System Design
Software Engineer
Fireworks AI
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design a serverless API that serves dozens of open-weight models to thousands of customers with per-token pricing, streaming responses, per-key rate limits and tight latency targets, on a shared GPU fleet.

This is Fireworks' core product: a shared fleet serving open models behind an OpenAI-compatible API. Interviewers want to see the candidate separate the control plane from the GPU data plane, reason about TTFT and tokens per second, and handle noisy neighbors and GPU scarcity.

What the Interviewer Expects
  • Separate API gateway, router, and model replica tiers
  • Route with awareness of load, prefix cache locality and model placement
  • Discuss continuous batching and its throughput versus latency trade-off
  • Explain multi-tenant isolation via token-based quotas and priority classes
  • Cover autoscaling with slow model load times and GPU capacity limits
  • Define latency SLOs as TTFT and inter-token latency
Key Topics to Cover
LLM serving
Load balancing
Autoscaling
Multi-tenancy
Streaming
GPU scheduling
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you route a long shared system prompt to a replica that already has it cached?
  • A model takes four minutes to load onto GPUs. How do you autoscale for a traffic spike?
  • How would you add a dedicated deployment option for one enterprise customer on the same stack?
  • How do you roll out a new kernel version without changing outputs unexpectedly?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: chat and completion endpoints, streaming over SSE, function calling, per-model routing, API keys, per-token metering. Non-functional: p50 TTFT under about 300 ms for short prompts, steady ...

High-Level Design
  1. Edge gateway: TLS, auth, key lookup, coarse token-bucket limits, request validation and tokenization estimate. 2) Router: picks a replica pool by model, then a replica by queue depth, KV memory hea...

Submit Your Answer
Markdown supported

Related Questions