internalsGet Pro

Module 08 · Lesson 2 of 14Pro

MapReduce: the idea behind big data

Level
Intermediate
Topic
Batch processing with Spark
Reading time
17 min

When you finish this page you can

  1. Split a GROUP BY over billions of rows into map, shuffle and reduce steps, and say what each machine does in each step.
  2. Explain how a partitioning function sends every record with the same key to the same reducer.
  3. Decide when a combiner shrinks the shuffle, and what it must send for counts, sums and distinct counts.
  4. Explain how MapReduce survives a failed or slow machine, and why that needs deterministic map and reduce functions.

Builds on 2 lessons

Start with lesson 113 min
  1. Distributed batch processing: beyond one machine13 min
  2. Modeling events and clickstreams17 min

79 billion clicks and one question

is an online store in India. Its apps send about 200 million click events a day, and Meera, a data engineer on Kartly’s data team, keeps 13 months of them in S3. On Tuesday 23 November 2027, the merchandising team asks her one question: how many different customers viewed each product in the last 13 months?

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan