liveBook · Manning

Throughput

As explained in Machine Learning System Design

Throughput is the amount of work or number of results processed by a system per unit of time.

Throughput measures how many predictions or how much data a system processes per unit of time. It matters most when large volumes must be handled quickly, especially in batch workloads. Unlike latency, which emphasizes prompt individual responses, throughput evaluates aggregate processing capacity. section 15.1

Evaluate throughput alongside the requirements that shape an inference system:

  • Balance throughput against latency, scalability, cost, reliability, flexibility, and security; these goals can conflict. section 15.1 section 15.6
  • Use batching and parallelization when immediate responses are unnecessary and workloads contain large volumes of data. section 15.1 section 15.5.1
  • Monitor job duration, rows processed, resource utilization, success rate, and failure rate to identify production bottlenecks. section 15.5.1

Batch demand forecasting

Supermegaretail runs daily, weekly, and monthly forecasts over large datasets. Docker containers orchestrated by AWS Batch process data from S3 on EC2 machines, scale horizontally, and write predictions back to S3. Throughput is prioritized over specialized hardware because the batch workload allows parallel execution. section 15.5.1

How Machine Learning System Design covers it

How deep it goes
Defines throughput, contrasts it with latency, and connects it to batching, scalability, tradeoffs, and operational monitoring.
Examples
Uses batch demand forecasting with AWS Batch, Docker, EC2, S3, scheduled jobs, and rows-processed monitoring.
What you can do after
Operate/configure batch inference by prioritizing processing capacity, selecting scalable infrastructure, and monitoring workload performance.
How it connects
Connects throughput with latency, scalability, batch processing, inference optimization, cost, reliability, and security and privacy.

Also explained in

Compare how 20 books explain throughput →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.