Phase 04 · Data Engineering & Big DataLesson 1 of 4
What is Big Data?
When data outgrows one machine, and what changes when it does.
The problem
A spreadsheet handles thousands of rows. A laptop database handles millions. But what about the billions of clicks a shopping site records every day, or years of sensor readings from a factory? When data outgrows a single machine, you're in the world of big data, and the way you store and process it has to change.
The concept
When does data become "big"?#
There's no exact number. Data is "big" when it's too large, too fast or too varied for traditional single-machine tools to handle in reasonable time. Typical signs:
- A query that takes hours, or a file that won't fit in memory
- Data arriving continuously (streams) rather than in occasional batches
- A mix of tables, logs, JSON, images and text that doesn't fit one neat schema
The core idea: distribute the work#
Instead of buying one enormous computer (scaling up), big data systems split the work across many ordinary machines (scaling out).
Two ways to handle more data
Scaling up
- Buy one enormous computer
Scaling out
- Split the work across many ordinary machines
- The approach big data systems take
The key technologies#
| Technology | What it does |
|---|---|
| HDFS (Hadoop) | Distributed storage: splits huge files into blocks spread across many machines, with copies for safety |
| MapReduce | The original model for distributed processing: map work out to machines, reduce the results |
| Apache Spark | Fast, in-memory distributed processing; the modern standard for large-scale data work |
| Kafka | Handles real-time streams of events (clicks, payments, sensor data) |
| Cloud warehouses | BigQuery, Synapse, Snowflake: SQL over huge datasets without managing servers |
A tiny taste of Spark#
Spark lets you write code that looks like normal data processing, and it handles the distribution for you:
from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("sales").getOrCreate()
df = spark.read.csv("sales/*.csv", header=True, inferSchema=True)
(df.groupBy("country")
.sum("revenue")
.orderBy("sum(revenue)", ascending=False)
.show(5))
The same code works whether sales/ holds 10 MB on your laptop or 10 TB on a cluster.
Why AI engineers should care#
Machine learning models and RAG systems are only as good as their data. Recommendation engines, fraud detection and analytics dashboards all depend on pipelines that collect, clean and serve huge volumes of data reliably. Understanding these pipelines makes you far more effective when your AI project meets real-world data volumes.
Try it
Your task · about 10 minutes
Estimate how much data a food-delivery app creates in a day: orders, GPS pings, clicks. When does one laptop stop being enough?
Recap & next
Key takeaways
- Big data is data too large, fast or varied for traditional single-machine tools.
- The solution is distributed systems: storage and computation spread across many machines.
- Hadoop introduced distributed storage (HDFS); Apache Spark made distributed processing fast and in-memory.
- AI models depend on these pipelines to get clean, timely data.
Quick check
2 questions · instant feedback
Go deeper
The full course on Data engineering
Udemy course
Big Data Engineering Bootcamp with GCP and Azure Cloud
View course (opens Udemy in a new tab)
Finished this lesson?
Mark it complete to track your progress and keep your streak going.