Skip to content

4.1. Batch Processing

Batch processing computes over a finite, complete dataset — you have all the input before you start, which makes correctness easy and latency high. The defining challenge is not the map or reduce but the shuffle between them: moving terabytes across the network to co-locate related keys, where stragglers and skew decide your job’s runtime. This chapter traces the paradigm from MapReduce’s disk-bound model to Spark’s in-memory DAG, and the fault-tolerance and speculative-execution mechanics that keep a thousand-node job finishing.