internalsGet Pro

Module 08 · Lesson 1 of 14Pro

Distributed batch processing: beyond one machine

Level
Beginner
Topic
Batch processing with Spark
Reading time
13 min

When you finish this page you can

  1. Tell when a batch job has outgrown one machine, from its core-hours and its window rather than its input size.
  2. Explain how a cluster splits a job into tasks, regroups rows by key in a shuffle, and finishes each group on one machine.
  3. Explain why a cluster can re-run one failed task instead of the whole job, and why its slowest task sets the finish time.
  4. Choose between a bigger server, doing less work, a warehouse and a cluster for a large nightly job.
  1. Processing data larger than memory16 min
  2. Object storage for data: buckets, prefixes and costs14 min

The feature job finished 40 minutes late

is an online store in India. A year after the stage-2 days, it takes 500,000 orders and records about 200 million click events a day. The apps’ clicks land as files in S3, in the bucket kartly-raw-prod, and Kartly keeps 13 months of them. Meera, a data engineer, runs a weekly job on those files for the ML team: one row per user with clicks, add-to-carts and days active.

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