Inference Platform: The GPU Shortage
Hard · system design problem
A viral demo quintuples the free tier, a customer starts a batch backfill, and then half the GPUs disappear for ninety seconds. There are no more GPUs anywhere — and the paid customers have an SLA.
Your inference API serves paid customers (with an SLA), a free tier and a batch API through Kong. gen-api sends interactive prompts to rag-svc, which retrieves context from the vector database (5 shards) and runs the model on your GPU fleet (24 instances, about 4,000 requests/s); batch jobs go to the fleet directly. At T+30s a demo goes viral: free tier ×5 for the rest of the hour, and a customer starts a two-minute batch backfill (batch ×10). At T+90s a zone outage takes half the GPU fleet away for ninety seconds. GPUs cannot be bought today. About 40% of prompts are close enough to an earlier one to be answered from a semantic cache; a smaller model at another provider (300 ms, 1,500 requests/s under your contract) is available. Batch results may take up to a day, but the backlog must be shrinking by the end. Paid integrations do not retry (generation is expensive). The SLA counts paid customers, over the whole incident.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.