internalsGet Pro

Data Engineering · Module 18

Scale, performance and cost

Lessons
13
Free
0
Reading
~4 h

Your progress

0 / 13 lessons done

Sign in to track

Lessons

  1. Finding bottlenecks in data pipelinesPipelines get slower one model and one gigabyte at a time, until a report is late. Teams that guess spend money on the wrong step; teams that measure fix the one step that sets the finish time, often for free.16 min
  2. Partitioning strategy at large scaleAt a few gigabytes a day, almost any partition column works. At hundreds of millions of rows a day, the wrong one creates millions of tiny files or leaves every query opening every file, and fixing it means rewriting terabytes. Choosing well means counting files before choosing columns.20 min
  3. Data platform costs: storage, compute and transferSooner or later finance asks what the data platform costs and why it went up. You need to answer line by line, from list prices, before anyone can decide what to cut.17 min
  4. Cutting warehouse and lakehouse spendWarehouse and lakehouse bills grow quietly: a setting changed for one week, a model that rebuilds everything every night, files nobody deletes. A team that can say where each credit went cuts the right thing first and doesn’t slow the reports the business waits for.16 min
  5. Case: Razorpay’s 21% cut to its Spark billMost Spark bills shrink through a handful of plain moves: cheaper capacity, fewer idle nodes and settings that fit the workload. Razorpay’s account shows those moves at petabyte scale, including the two that broke jobs before they saved money.16 min
  6. Autoscaling and spot capacity for data jobsData platforms run large fleets of machines for a few hours a night or a few hours a sale, which makes them the best place to save with autoscaling and spot capacity, and the easiest place to lose a report. Whether a job can lose a machine depends on what that machine was holding: shuffle files, streaming state or nothing at all.17 min
  7. Disaster recovery for data platformsA data platform holds a few things that exist nowhere else and many tables built from them. Recovering from a lost region is cheap and fast when you copy the first kind and rebuild the second, and slow or impossible when you treat them the same.17 min
  8. Batch and streaming together: Lambda and KappaMost data platforms end up running a nightly batch path and a streaming path side by side, whether anyone planned it or not. Knowing which one is official, how the two are kept from drifting, and how to recount either one is what stops two dashboards from arguing in front of finance.16 min
  9. CI/CD for data: environments, reviews and deploysA data pipeline can pass every test and still publish a wrong number, because the tests check the code’s rules, not whether today’s answer moved. Reviewing the data a change produces, and knowing that a revert fixes code but not the rows already written, is what keeps a bad merge from reaching the people who run the business on those numbers.16 min
  10. Infrastructure as code: Terraform for data platformsA data platform is hundreds of cloud objects whose settings decide who can read customer data, what gets deleted and what the bill is. Set by hand, those settings can’t be reviewed, rebuilt or checked. Written as code, every change is a reviewed plan, and a change made outside the code shows up the next morning.16 min
  11. Platform teams and data mesh: who owns whatAs a company grows, one data team turns into a queue that every other team waits in, and teams start building their own copies of the data to get around it. Deciding who owns which data, and what the platform gives them, is how a data platform scales with the company instead of slowing it down.17 min
  12. Case: Flipkart’s data platform move to Google CloudSooner or later most data teams move a running platform: to a new cloud, a new engine or a new messaging system, usually with a business date that won’t move. Flipkart’s account shows the shape of such a move at 10 PB a day, and what you still have to work out yourself.17 min
  13. Design: halving a data platform’s monthly billEvery data team is asked, sooner or later, to cut the bill by a round number. A flat cut on every line breaks the reports people rely on, and a plan built on discounts nobody has quoted misses. This lesson puts the module’s levers into one plan, with the arithmetic shown and the promises it can keep.28 min

Practise with

No tools or paper guides for this module yet.

Terms this module teaches 61

Open glossary

Adaptive scheduler (Flink)

A Flink scheduler for streaming jobs that runs a job at whatever parallelism the available slots allow and raises it again when more slots appear, restarting the job each time.