17/17
Part 7 of 7 · Follow-upsCheck yourself
Check yourself
5 questions
1.A token bucket holds 5 and refills 10 a minute. What do those two numbers control?
2.Why do providers limit output tokens and not only requests?
3.A limiter takes a request token, then finds the output bucket short and denies the question. What's the bug?
4.The shop runs 5 servers, each with a fifth of every customer's limit. A customer's requests all arrive on one connection. What happens?
5.The bucket says the next request passes in 2.5 seconds. What should the Retry-After header say?
That's the lesson.Next lesson: Designing a prompt playground
Now the problem this lesson builds to: 44 A rate limiter for an LLM APIPractice it