AiTeky Original Interactive Learning & Practice Advanced
Big data and Spark thinking: partitions, shuffles, skew, file formats and when to scale out
Build map-reduce and partitioned joins from scratch, count what a shuffle moves, catch and fix a skewed key, see why columnar files read so much less, read real timings that show when more workers do not help, and decide when a project needs a cluster at all.
"Big data" tools such as Apache Spark are built on a handful of ideas: split the data into partitions, work on each partition separately, move rows between machines only when you must, and avoid reading what you do not need. Once you see those ideas, a Spark job, a warehouse query and a pandas script on one big file are all the same problem, and you can predict which one will be slow before you run it.
This course teaches the ideas with plain Python, numpy and pandas, so everything runs in the browser and no cluster is needed. We do not install Spark. We build the parts that matter (a map-reduce, a hash partitioner, a shuffle join, a broadcast join, key salting) and count the cost of each in rows moved, which is the number that decides the speed of a real job.
You build a map-reduce for a group-by and see the gain from combining before moving. You count what a shuffle join moves against a broadcast join and find the size at which the choice flips. You make a skewed key, measure the straggler and fix it with salting. You compare file formats and partition folders by the bytes they have to read. The industry lessons use real timings recorded on a laptop with 20 million rows split across 8 files and 1 to 8 worker processes, a result you may not expect: for this job more workers were slower, and the lesson shows why and where the break-even is. The last lesson turns it into a decision: pandas, one strong machine, or a cluster.
Two honest notes. The timings were measured once on one laptop (8 cores, a fast disk), so treat the shape of the result, not the exact seconds, as the lesson. And the row-counting simulations model the idea of a real engine; a real engine adds its own overheads, which is exactly why you must measure on yours.
You need the Python and Pandas courses; the data engineering and SQL courses are good companions.
- Learn lessons explain one idea at a time and let you compute it.
- Industry ready lessons decide and plan. Each ends with the interview questions that go with it.
- βΆ Run code in your browser. Nothing to install
- β Exercises that check themselves
- π Tap a word to see what it means
Locked. Sign up free
Learn
Understand each idea with everyday examples. No coding background needed.
- 01 45 min Free sample π AiTeky Pass Split the data, work in parts, combine the answers Build a map-reduce for a group-by from scratch. Split 200,000 orders into eight partitions, aggregate each part on its own, merge the small results, and see that combining before moving cuts the rows that travel from 200,000 to 64.
- 02 50 min π AiTeky Pass The shuffle: what moving rows costs, and broadcast against shuffle joins Hash-partition two tables by key, count the rows a shuffle join moves, compare it with sending the small table everywhere (a broadcast join), check both give the same answer as a pandas join, and find the table size at which the better choice flips.
- 03 45 min π AiTeky Pass Skew: when one key makes one worker do all the work Make a skewed key, measure how unevenly hash partitioning spreads it, see that the slowest partition sets the time of the whole job, and fix it by salting the hot key and merging the pieces back.
- 04 45 min π AiTeky Pass Files and formats: read less, not faster Read real timings of the same 2.5 million rows stored as a text file and as a columnar file, see why reading one column is so much cheaper, and count the bytes a query must read with row layout, column layout and partition folders.
Industry ready
Real problems from real jobs, and the questions interviewers ask about them.
- 05 50 min π AiTeky Pass On the job: does adding workers pay? Real timings that say not always Read measured timings of the same group-by on 20 million rows with 1, 2, 4 and 8 worker processes, find that more workers were slower, work out why with a fixed-cost model, find the data size where scale-out starts to win, and write the verdict for a team that wanted a cluster.
- 06 50 min π AiTeky Pass On the job: pandas, one strong machine, or a cluster? Turn the ideas into a decision for a growing nightly job. Find the month when pandas runs out of memory, when one machine runs out of time, and what a cluster would cost at each data size, then write the recommendation with its assumptions and the triggers to revisit it.

