Skip to content
AgenticAIWiki

Sharing one rate limit as traffic grows

Full screen
allowedTenant ATenant BTenant CYour limiterin your codeQueuedepth 20Worker 1Model APIone limit: 400k input tokens per minute

Swipe to change step

Step 1 of 7. The provider sees one organisation with one rate limit, counted in requests and tokens per minute. Every tenant and feature you have shares it. Tenant A. Tenant B. Tenant C. Your limiter (in your code). Queue (depth 20). Worker 1. Model API (one limit: 400k input tokens per minute), highlighted. arrow from Tenant A to Your limiter. arrow from Tenant B to Your limiter. arrow from Tenant C to Your limiter. arrow from Your limiter to Queue, labelled allowed. arrow from Queue to Worker 1. arrow from Worker 1 to Model API.

In this chapter

  1. 69.1Horizontal scaling of stateless agents4 min read
  2. 69.2Rate-limit budgeting across users and tenants4 min read
  3. 69.3Fair queuing and priority lanes4 min read
  4. 69.4Load testing an LLM system4 min read
  5. 69.5Worked example: rate-limit tiers, headers and 429 handling4 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…