AlgoViz

MapReduce

medium 30 min

MapReduce processes very large data on many machines with two small functions.

Where it shows up

The same pattern appears across everyday software.

  • Search indexing

    Map emits each word with its document, and reduce writes the list of documents for each word.

  • Log analysis

    Count errors per service and hour over months of server logs.

  • Warehouse loading

    Read raw files, clean the records, and write tables by date for analysts.

  • Recommendations

    Count how often two products are bought together, with the product pair as key.

  • Graph ranking

    Each page passes part of its score to the pages it links to. Every round is one job, which is why engines that keep data in memory took over this kind of work.

  • Training data

    Turn raw events into features per user. Training itself repeats over the data, so it usually runs elsewhere.