Over five modules we have designed DataCorp's platform piece by piece: object storage, partitioned Parquet files, SQL transformations, micro-batches. Almost none of those pieces existed twenty years ago. All of them descend, directly or indirectly, from the same technical movement: the one that emerged when a handful of internet companies found themselves with more data than would fit on the largest machine they could buy. That movement, and the problems that gave rise to it, is called Big Data.
This lesson explains what Big Data is and, above all, when a problem really is one. We will look at its characteristics (the "Vs"), why traditional systems stop being enough, which technical principles were born to solve it and how the ecosystem has evolved from Hadoop to the cloud. We will finish with an uncomfortable but necessary question: does DataCorp have Big Data? The honest answer shapes the whole module, because the architectures we will study next (data lake, cloud data warehouse, lakehouse) are heirs to these ideas, whether or not you need them at large scale.
What Big Data is: the Vs
Big Data refers to datasets whose volume, arrival velocity or variety exceed what conventional tools (a database on one server) can store and process in a reasonable time and at a reasonable cost. The definition is deliberately relative: there is no figure beyond which data "is big". It is big when it forces you to change technique.
The three original characteristics are known as the three Vs; two more were added later, which describe not the technical difficulty but the usefulness of the result.
| V | What it measures | Indicative orders of magnitude (2026) |
|---|---|---|
| Volume | How much has to be stored and processed | Up to tens of terabytes, a single machine or a simple managed service is enough. The problem starts in the hundreds of terabytes and is beyond dispute in the petabytes |
| Velocity | How fast the data arrives and how quickly you have to respond | Tens or hundreds of events per second are absorbed by any system. The problem starts in the tens of thousands per second, or when you have to react within milliseconds |
| Variety | How many different shapes the data takes | Tables, CSV and JSON are routine. The problem grows with free text, images, audio, video or sensor series at large scale |
| Veracity | How far the data can be trusted | Incomplete, duplicated, contradictory data or data of doubtful origin. It does not depend on size (lesson 03-03) |
| Value | Whether what you get justifies what it costs | Storing data that changes no decision is just a cost |
For reference: DataCorp's platform will receive about 2 GB a day; a telecom operator can generate several terabytes of call records daily; a large social network or a search engine handles petabytes a day.
Two observations prevent misunderstandings:
- One V is enough to have the problem. A stock exchange has little volume but extreme velocity; a medical imaging archive has little velocity but a lot of volume and variety.
- The figures age. A terabyte was Big Data in 2005 and today it fits on a laptop. What required a cluster ten years ago is now handled by DuckDB or Polars on one machine, as we saw in lesson 04-04.
Why traditional systems stop being enough
A traditional system lives on one server: a relational database with its disks, its memory and its processors. When it becomes too small, the first response is vertical scaling: buying a bigger machine. It works well and it is simple, but it has four limits.
| Limit of vertical scaling | What happens |
|---|---|
| Physical ceiling | There is a largest machine. When the data outgrows it, there is nothing bigger to buy |
| Non-linear cost | A machine twice as powerful costs considerably more than twice as much. The top-of-the-range ones are specialized hardware |
| Single point of failure | If the machine goes down, everything goes down. Protecting it requires another, equally expensive one on standby |
| Processing time | Even if the data fits, reading it takes time. At 200 MB/s, a disk takes almost 6 days to read 100 TB; no nightly process can wait for that |
The last limit is the least intuitive and the most important. Disk capacity has grown much faster than disk read speed, so the bottleneck is not storing the data but scanning it. The only way out is to read many disks at once, and that means many machines.
On top of that came two rigidities of classic relational databases (lesson 02-02): schema on write, which forces you to define the structure before loading a single piece of data and is a poor fit for varied, changing data, and licenses whose price grew with the size of the machine.
The technical principles Big Data gave rise to
In the early 2000s, Google needed to index the entire web. Its answer, published in two papers (the GFS file system in 2003 and MapReduce in 2004), established principles that still hold even though the tools have changed.
Horizontal scaling on commodity hardware
Instead of one enormous machine, many ordinary machines working together (a cluster). To grow, you add machines (nodes). Cost grows roughly linearly and there is no ceiling in sight. The price is complexity: the data has to be distributed, the work coordinated and failures lived with.
Distributed file systems
A distributed file system presents the disks of all the machines as if they were one. The best known is HDFS (Hadoop Distributed File System):
- Each file is cut into large blocks (128 MB by default) that are spread across the nodes.
- A master node (the NameNode) keeps the map: which blocks make up each file and where each one is.
- The data nodes (DataNodes) store the blocks.
flowchart TB
F["events_20261117.json<br/>(384 MB = 3 blocks)"] --> NN["NameNode<br/>map: file → blocks → nodes"]
NN --> N1["Node 1<br/>B1 · B3"]
NN --> N2["Node 2<br/>B1 · B2"]
NN --> N3["Node 3<br/>B2 · B3"]
NN --> N4["Node 4<br/>B1 · B2 · B3"]
Fault tolerance through replication
With a thousand ordinary machines, one of them fails every day. The system does not try to prevent it: it takes it for granted. Each block is stored on several nodes (three copies by default), as the diagram shows. If a node goes down, its blocks are still available on others and the system creates new copies on its own. The same goes for compute: if a node fails halfway through a task, that task is relaunched on another node.
Bringing the compute to the data
In a traditional system, the program asks for the data and the data travels to it. With terabytes, moving the data over the network is the slowest part of the process. The solution is to reverse the direction: the program is sent (a few kilobytes) to each node where a block already resides, and each node processes its part locally. Only the results travel, and they are much smaller.
A parallel programming model: MapReduce
You need a way to write programs that can be split up and run on hundreds of nodes without the programmer managing the distribution. MapReduce is that model; we look at it in detail in the next section.
Schema on read
The data is stored as it arrives, with no structure required beforehand, and the structure is applied at the moment it is read (schema-on-read). This makes it possible to capture varied data without designing a model first, in exchange for shifting the effort (and the errors) to query time.
MapReduce step by step
MapReduce solves a problem by dividing it into three phases. We will use the simplest possible calculation: counting clickstream events by type.
| Phase | What it does | In the example |
|---|---|---|
| Map | Each node scans its block and emits (key, value) pairs for each record | For each event, it emits (type, 1) |
| Shuffle | The system groups all the pairs by key and sends each key to a single node | It gathers all the 1s for add_to_cart, all those for search... |
| Reduce | For each key, it combines its values into one result | It adds up the 1s for each type |
The programmer writes only two functions, map and reduce. The distribution, the shuffle, the retries and the collection of results are handled by the system.
flowchart LR
B1["Block 1<br/>(node 1)"] --> M1["map"]
B2["Block 2<br/>(node 2)"] --> M2["map"]
M1 --> S["shuffle<br/>group by key"]
M2 --> S
S --> R1["reduce<br/>add_to_cart"]
S --> R2["reduce<br/>search"]
S --> R3["reduce<br/>product_view"]
R1 --> O["Result"]
R2 --> O
R3 --> O
The following program simulates the three phases in pure Python, with no distributed library. It is no use for processing real data; it is useful for seeing what each phase does.
# MapReduce simulation: count of clickstream events by type.
from collections import defaultdict
# Two "blocks" of the events file, each on a different node.
block_node_1 = [
{"event_id": "e1", "type": "product_view"},
{"event_id": "e2", "type": "add_to_cart"},
{"event_id": "e3", "type": "product_view"},
]
block_node_2 = [
{"event_id": "e4", "type": "search"},
{"event_id": "e5", "type": "product_view"},
{"event_id": "e6", "type": "add_to_cart"},
]
# --- MAP phase: runs on each node, over its own block ---
def map_phase(event):
"""For each event, emits a (key, value) pair: (type, 1)."""
return (event["type"], 1)
pairs_node_1 = [map_phase(e) for e in block_node_1]
pairs_node_2 = [map_phase(e) for e in block_node_2]
print(pairs_node_1)
# [('product_view', 1), ('add_to_cart', 1), ('product_view', 1)]
# --- SHUFFLE phase: done by the system; groups the values by key ---
grouped = defaultdict(list)
for key, value in pairs_node_1 + pairs_node_2:
grouped[key].append(value)
print(dict(grouped))
# {'product_view': [1, 1, 1], 'add_to_cart': [1, 1], 'search': [1]}
# --- REDUCE phase: runs once per key ---
def reduce_phase(key, values):
"""Combines all the values of a key into one result."""
return (key, sum(values))
result = [reduce_phase(key, values) for key, values in grouped.items()]
print(result)
# [('product_view', 3), ('add_to_cart', 2), ('search', 1)]What is worth noticing:
map_phasedoes not need to know about the other events. It treats each record independently; that is why it can run on a thousand nodes at once. That independence is the whole key to parallelism.- The shuffle is the expensive phase. It is the only one in which data travels over the network between nodes. The optimizations of any distributed engine consist, to a large extent, of reducing it.
reduce_phasereceives a key and all its values. Since each key goes to a single node, the reducers also work in parallel.- It is SQL's
GROUP BY. The program is equivalent toSELECT event_type, COUNT(*) FROM events GROUP BY event_type. Today's engines take the SQL query and internally generate a plan with these same phases.
MapReduce had two serious flaws: it wrote the result of each phase to disk, which made it slow, and it forced you to express any calculation as a chain of map and reduce jobs, which made it laborious. Hence the evolution that follows.
Evolution of the ecosystem: from Hadoop to the cloud
| Year | Milestone | What it contributed |
|---|---|---|
| 2003-2004 | Google's papers on GFS and MapReduce | The principles: horizontal scaling, distributed files, parallel compute |
| 2006 | Apache Hadoop (HDFS + MapReduce), open source | Big Data within reach of any company with its own cluster |
| 2006 | First cloud object storage service | Practically unlimited, cheap storage with no servers to administer |
| 2008-2012 | Hive, Pig, HBase and the rest of the Hadoop ecosystem | SQL on Hadoop; schema on read and folder-based partitioning are born |
| 2010-2014 | Apache Spark | In-memory compute, up to a hundred times faster than MapReduce; a single interface for batch, SQL, streaming and machine learning |
| 2011-2015 | Cloud analytical stores (BigQuery, Redshift, Snowflake) | MPP as a service; separation of storage and compute |
| 2013-2015 | Parquet and ORC | Open columnar formats (lesson 02-06) |
| 2016-2020 | Open table formats (Hudi, Iceberg, Delta Lake) | Transactions on files; the term lakehouse is coined (lesson 06-04) |
| 2020 onward | Serverless engines and single-machine engines (DuckDB, Polars) | Paying only per query; "medium-sized" data no longer needs a cluster |
The evolution has three stages. Hadoop proved that the model worked, but it required setting up and operating your own clusters, a job for specialized teams. Spark replaced MapReduce as the compute engine, keeping HDFS or any other storage. And the cloud changed the two foundational pieces:
- Object storage (lesson 02-03) replaced HDFS: it replicates the data on its own, has no practical limit and there are no nodes to administer.
- Elastic compute replaced the fixed cluster: it is started when needed, at the size needed, and shut down when it finishes.
This meant abandoning one of the original principles. HDFS stored the data on the same machines that processed it ("bringing the compute to the data"). In the cloud, storage and compute are separate and communicate over a fast network. Some locality is lost and something more valuable is gained: each one grows, and is paid for, separately. It is the design principle DataCorp adopted in lesson 01-04.
Today Hadoop is hardly ever installed in new projects, but its ideas are everywhere. The specific products in each category were compared in lesson 04-04.
Massively parallel processing (MPP)
Alongside Hadoop, another family evolved: MPP (Massively Parallel Processing) databases. An MPP database spreads a table across many nodes and runs each SQL query on all of them at once.
- A coordinator node receives the query, builds the plan and distributes it.
- The compute nodes each run their part over their portion of the data.
- The coordinator gathers the partial results and returns the final result.
It is the same idea as MapReduce (divide, process in parallel, combine), but with a difference in approach:
| Hadoop / MapReduce | MPP database | |
|---|---|---|
| Interface | Programs (later, SQL as well) | SQL from the start |
| Data | Files in any format; schema on read | Tables with a schema; proprietary, columnar format |
| Optimization | Limited: the engine knows little about the data | Statistics, query optimizer, block indexes |
| Typical use | Long-running processes over raw data | Interactive analytical queries |
The cloud analytical stores we will study in lesson 06-03 are MPP databases offered as a service. And the lakehouse architecture of lesson 06-04 is, in essence, where the two families meet: an MPP engine that queries open files.
Does DataCorp have Big Data?
Let's apply the Vs to the requirements set in lesson 01-04, honestly.
| V | DataCorp | Is it Big Data? |
|---|---|---|
| Volume | ~2 GB/day; 733 GB in the first year; 2.7 TB at three years (RQ-01) | No. The entire three-year history fits on a laptop disk |
| Velocity | 2 million events a day, about 23 per second with peaks (RQ-02); freshness of minutes (RQ-04) | No. A single modest server absorbs thousands per second |
| Variety | Relational, CSV, JSON, events and free text from tickets (RQ-03) | Moderate. Varied, but all textual and in ordinary formats |
| Veracity | ~600 possibly duplicated customers, two sales figures | It is a problem, and it has nothing to do with size |
| Value | Six use cases with an associated decision | It is what justifies the project |
The diagnosis is clear: DataCorp does not have a Big Data problem. Its problem is one of order, definitions and trust, which is why the course has devoted more pages to governance, quality and metrics than to clusters. ADR-011 already put it in writing when it rejected Spark and Hadoop.
However, DataCorp does inherit the principles of Big Data, because today they are the standard and cheapest way to build an analytical platform of any size:
| Inherited principle | Where DataCorp applies it |
|---|---|
| Cheap, replicated, unlimited storage | Object storage as the foundation (ADR-003) |
| Separation of storage and compute | Design principle from 01-04; load compute separated from query compute (04-06) |
| Schema on read | Raw zone in the original format, with no conversion (ADR-002 and ADR-004) |
| Columnar formats and partitioning | Parquet + zstd, partitions by date (ADR-004) |
| Parallel processing | Whatever the analytical engine does internally, without the team administering it |
| Fault tolerance | Replication in object storage; orchestrator retries (ADR-012) |
DataCorp therefore uses the architecture of Big Data without its machinery: it does not operate clusters or distributed systems; it consumes them as managed services.
Signs that it would be
The diagnosis has an expiry date. These signs would indicate that it needs to be revisited:
- The ingested volume exceeds 50 GB a day on a sustained basis (the ADR-011 threshold).
- A transformation process no longer fits in the memory or the time window of one machine, despite processing only the increment.
- Data of a different nature appears: product images at large scale, sensors in the fulfillment warehouses, every mouse movement.
- A use case requires reacting to each event in less than a minute (the ADR-010 condition).
- Machine learning models have to be trained on the entire detailed history.
The risks of oversizing
Adopting Big Data technology without having the problem is not a harmless indulgence. It has concrete costs:
- Operating cost. A cluster requires tuning, upgrades, monitoring and knowledge that two people (RQ-13) cannot sustain alongside everything else.
- Paradoxical slowness. A distributed system has a fixed coordination cost. For 2 GB, a query on a cluster can take longer than on a laptop, because starting up and distributing costs more than computing.
- Financial cost. Nodes running 24 hours a day for a 40-minute job would eat up the RQ-12 budget without contributing anything.
- Difficult debugging. An error in a distributed process is far more laborious to reproduce than one in a script.
- Diverted attention. Time spent on infrastructure is not spent on quality or definitions, which is where the problem was.
The rule of thumb: size for the data you have and for the data you can forecast with figures, not for the data you would like to have. And write down the threshold that would change the decision.
Common Mistakes and Tips
- Calling any data project Big Data. The label attracts budget and unsuitable technology. Put figures on each V before using it.
- Confusing accumulated volume with processed volume. DataCorp will accumulate 2.7 TB, but each night it processes about 2 GB. What sizes the compute is the increment.
- Thinking that more machines is always faster. Parallelism only pays off when the work exceeds the cost of coordinating it.
- Forgetting veracity. A petabyte of unreliable data is worth less than a well-governed gigabyte.
- Storing "just in case" without limit. Schema on read makes it easy to accumulate data nobody will use. Every dataset needs an owner and a retention period (POL-03).
- Believing that Hadoop is still the starting point. Today you start with object storage and a managed engine.
- Tip: estimate the Vs with numbers, as in lesson 01-04, and compare them with what a current machine can handle.
- Tip: adopt the principles (separation of storage and compute, open formats) even if you do not have the scale. They are what let you grow without redesigning.
Exercises
Exercise 1: Is it Big Data?
For each case, state which Vs dominate and whether you consider it a Big Data problem:
- A chain of 30 stores with 20,000 sales receipts a day.
- A wind turbine manufacturer that receives 500 readings per second from each of its 4,000 turbines.
- A hospital that stores 2 million radiology images a year (about 50 MB each).
- A payment gateway that must approve or reject each transaction in less than 100 milliseconds, with peaks of 3,000 transactions per second.
Exercise 2: MapReduce for a different question
Modify the map_phase and reduce_phase functions from the example to calculate the total number of units added to the cart per product. Assume that each event has the fields type, product_id and quantity. Which events should not emit any pair?
Exercise 3: The vendor's pitch
A vendor proposes to Sergio a 6-node Spark cluster "to be ready for Big Data". Write three arguments, backed by DataCorp's requirements or decisions, for rejecting the proposal, and one condition under which you would reconsider it.
Solutions
Exercise 1
- It is not Big Data. 20,000 receipts a day amount to a few megabytes. An ordinary relational database handles it.
- Yes: velocity and volume. 4,000 × 500 = 2 million readings per second, about 173 billion a day. It requires distributed ingestion and storage specialized in time series.
- Yes, because of volume and variety. 2 million × 50 MB = 100 TB a year of unstructured data. Storage is simple (objects); analyzing the images is the demanding part.
- Yes, because of velocity. The volume is moderate, but a response within milliseconds per event requires continuous stream processing (lesson 04-03).
Common mistake: judging by volume alone. Cases 2 and 4 are hard mainly because of velocity.
Exercise 2
def map_phase(event):
"""Emits (product_id, quantity) only for cart events."""
if event["type"] != "add_to_cart":
return None # this event emits nothing
return (event["product_id"], event["quantity"])
def reduce_phase(key, values):
"""Adds up the quantities of each product."""
return (key, sum(values))
# When applying the map phase, the None values have to be discarded:
# pairs = [p for p in (map_phase(e) for e in block) if p is not None]Events of other types (search, product_view...) emit no pair. Two lessons: the map phase also filters, and filtering early reduces what travels in the shuffle, the expensive phase. The reduce_phase function does not change: adding is adding. In SQL: SELECT product_id, SUM(quantity) ... WHERE event_type = 'add_to_cart' GROUP BY product_id.
Exercise 3
- Volume: RQ-01 and RQ-02 give 2 GB a day; ADR-011 sets the threshold for Spark at a sustained 50 GB a day, 25 times more. At 20% a year, that is about 18 years away.
- Operations: RQ-13 limits the team to two people; a cluster of their own also contradicts the preference for managed services in ADR-003.
- Cost: six permanent nodes for processes that last less than an hour a day would consume a good part of the €4,000/month of RQ-12 without improving any requirement.
Condition for reconsidering it: any of the signs in the section "Signs that it would be", in particular exceeding the volume threshold or the appearance of a machine learning case on the entire history. Even then, the first option would be Spark as a managed service, not a cluster of their own.
Conclusion
Big Data refers to data that, because of its volume, velocity or variety, overwhelms what one machine can store and process at a reasonable cost; veracity and value are a reminder that size does not guarantee usefulness. Vertical scaling has a ceiling, a growing cost and a single point of failure, and from those limits came the principles that underpin any analytical platform today: horizontal scaling on commodity hardware, distributed files, fault tolerance through replication, bringing the compute to the data, parallel programming in the style of MapReduce (map, shuffle and reduce) and schema on read. The ecosystem moved from Hadoop to Spark and from there to the cloud, where object storage and elastic compute separated what HDFS kept together, while MPP databases brought the same parallelism to SQL. DataCorp, with 2 GB a day, does not have Big Data, but it benefits from all its principles without operating its machinery.
The most influential of those principles was perhaps the simplest: store all the data as it arrives, in cheap storage, and decide later what to do with it. That idea has a name of its own, and DataCorp has been applying it for several modules without calling it that. The next lesson is devoted to it: the data lake.
