Batch processing

Batch processing runs large amounts of work as jobs that are queued and processed together, rather than answering requests one at a time as they arrive.

Batch processing groups work into jobs that run without anyone waiting on each result. Jobs are submitted to a queue, and a scheduler runs them when resources are free. Examples include nightly reports, data pipelines, video encoding and model evaluations. The opposite is interactive or online processing, where each request is answered right away.

Batch work cares about total throughput and cost more than about the time of any single task. It can run at night, on spare capacity, or on cheaper spot capacity that may be reclaimed. A job that is interrupted can retry its unfinished parts. Batch systems handle this with queues, retries and records of which parts have finished.

Much of the work done in sandboxes is batch work. Benchmarks, large test runs, data processing and reinforcement learning all start many sandboxes, run a task in each, and collect the results. These jobs need many sandboxes to start quickly at once and to clean up reliably afterward. They are also a good fit for preemptible capacity, since an interrupted task can run again.