medium10 pts · first answer countsrate-limitingapi-design
Token bucket rate limiter
You rate-limit an API with a token bucket: capacity 10 tokens, refilled at 1 token per second. A client has been idle for a minute and then sends 15 requests at once. What happens?
Discussion 0
Join free to post in the discussion.
Related questions
- Status code for too many requestsBackend Developer
- Offset or cursor paginationBackend Developer
- A 64-bit id changes after parsingBackend Developer
- Saving req.body directlyBackend Developer
- Safe retries for paymentsBackend Developer
- Burst at a fixed window boundaryBackend Developer
- Status code after creating a resourceFull Stack Developer
- Which method is idempotentFull Stack Developer