liveBook · Manning

Throughput

As explained in Generative AI in Action

Throughput is the amount of work or number of requests a system processes during a specified period.

Throughput measures how much work a system successfully processes over a period. For an enterprise LLM application, it helps indicate whether the deployment can handle demand. Requests per second (RPS) describes incoming load; high RPS with low throughput can indicate that the server is struggling to keep up. section 11.4.1

Throughput should be considered alongside latency, time to first token, and time per output token. LLM inference processes prompt tokens together, then generates output tokens sequentially, so the workload includes both prompt processing and generation. section 11.4.1

Capacity planning depends on the deployment model. Azure OpenAI provisioned throughput units (PTUs) reserve model processing capacity; throughput per PTU varies by model and version. Pay-as-you-go (PAYGO) uses tokens per minute (TPM) on demand and can suit variable workloads. The two approaches can be combined for steady and uncertain demand. section 11.4.3 section 11.4.6

Allocate capacity across deployments

With a 240,000 TPM quota for a model in one region, an enterprise could allocate all of it to one deployment or split it into two deployments of 120,000 TPM each. Adjust allocations as traffic changes, and distribute requests over time to avoid requests-per-minute throttling. section 11.4.5 section 11.4.6

Manage throughput in production:

  • Monitor throughput with response times, error rates, and resource utilization; use tracing to locate bottlenecks. section 11.4.7
  • Test throughput and latency under varying loads with tools such as Apache JMeter or Locust. Compare results with demand before changing capacity. section 11.5.1 section 11.4.1
  • Use API management for queuing, throttling, error handling, and quotas. Consider caching, load balancing, and auto-scaling where appropriate. section 11.4.3 section 11.5.1

How Generative AI in Action covers it

How deep it goes
Defines throughput in relation to RPS and provides capacity-planning and monitoring guidance without a detailed throughput calculation.
Examples
Illustrates capacity allocation with a 240,000 TPM regional quota split across deployments.
What you can do after
Operate/configure deployment capacity by allocating TPM, managing rate limits, and testing throughput under load.
How it connects
Connects throughput to latency, rate limits, quotas, observability, and scalability.

Also explained in

Compare how 21 books explain throughput →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Generative AI in Action. The section links point to the parts of the book it draws on.