AlgoViz

Throughput

easy 30 min

Throughput is how much work a system finishes per second.

Where it shows up

The same pattern appears across everyday software.

  • Bulk loading a database

    PostgreSQL's manual advises COPY or one transaction for many rows, because a commit for each row adds its own cost.

  • Kafka

    Producers send records in batches and brokers append them to files. The 2014 test reached about 2 million 100-byte records a second with three producers on three machines.

  • Card payments

    A payment needs several parties in a row, so the slowest of them sets the rate a shop can sell at.

  • Video processing

    Uploads are cut into pieces and many workers encode them at the same time. One piece is no faster, the whole film is.

  • Nightly backups

    The question is megabytes a second: will it be done by morning, and how long will a restore take?

  • Load shedding at Google

    The SRE Book describes rejecting work early and cheaply when a service is overloaded, to keep the useful rate from collapsing.