AI Assistant: Launch Day
Hard · system design problem
The assistant goes viral: five times the questions, a vector database that cannot grow this week, an LLM provider with a hard quota — and then that provider slows down.
Each question goes from chat-api to rag-svc, which retrieves context from the vector database (5 shards) and calls LLM provider A (~900 ms, 3,000 requests/s quota). At T+20s the launch goes viral: questions ×5 for the rest of the hour. At T+60s provider A degrades under the global load: 3× slower, and it cuts every customer’s quota to 60%. Many questions repeat earlier ones: a semantic cache would answer about 60% of them. You also hold an account with provider B (a smaller model, 5,000 requests/s), not wired in.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.