AQA 7517, section 4.11.1
What is Big Data?
Big Data is a catch-all term for data that won't fit the usual containers: the data is too large, too fast or too varied for ordinary tools, such as a standard relational database on a single server, to handle well. It is usually described in terms of three features, often called the three Vs.
| V | Meaning | Examples |
|---|---|---|
| Volume | The amount of data is too big to fit into a single server | Years of data from millions of users; all the photos on a social network |
| Velocity | Data arrives as a fast, continuous stream, and must be processed in milliseconds to seconds | Stock market prices; sensor readings; clicks on a website |
| Variety | Data comes in many different forms: structured, unstructured, text, images, audio, video | Emails, tweets, CCTV footage, medical scans, and database tables |
Data from networked sensors, smartphones, video surveillance, mouse clicks and so on is continuously streamed.
The real difficulty: lack of structure
Although the size gets most of the attention, the most difficult aspect of Big Data is its lack of structure. Much of it isn't in neat rows and columns. This causes problems:
- Analysing the data is much harder.
- Relational databases are not appropriate, because they need the data to fit into a row-and-column format, with a fixed structure.
- Machine learning techniques are needed to discern patterns in the data and extract useful information, since a person couldn't search it by hand.
"Big" is relative. Its size becomes a problem when the data doesn't fit on a single server, because relational databases don't scale well across multiple machines.
Processing data too big for one server
When the data is too big for one server:
- the processing must be distributed across more than one machine, so that many computers work on parts of the data at the same time;
- functional programming is a good solution, because it makes it easier to write correct and efficient distributed code.
Distributed programs are hard to get right. Machines can fail, parts run in an unpredictable order, and several machines might try to change the same data at once.
Why functional programming helps
Functional programming languages support three features that suit this.
Immutable data structures
Data can't be changed after it is created. A new value is made instead.
- Different machines can safely share the same data, since nobody can change it under another's feet, which means no conflicts between updates.
- Results are repeatable, so the code is easier to reason about and test.
Statelessness
A function has no hidden state and depends only on its inputs. The same input always gives the same output, with no side effects.
- The function can be run on any machine, in any order, and gives the same answer.
- If a machine fails, its work can simply be re-run elsewhere.
Higher-order functions
Functions that take other functions as arguments (or return them), such as map, filter and reduce.
mapapplies a function to every item independently, so the items can be split across many machines.reduce(fold) combines the results into one answer.- They describe what to do to the data, and the system decides how to spread the work.
For example, to count the words in a huge collection of documents, map turns each word into a pair, such as (big, 1). Each word is handled independently, so this step can be spread over many machines. Reduce then combines the pairs into totals, such as big: 3, data: 2, and each combining step makes a new total instead of changing the old one. This map and reduce pattern is the basis of systems for processing huge data sets.
Summary: how this helps
| Feature | Makes code easier to write correctly because... | Makes code easier to distribute because... |
|---|---|---|
| Immutable data | Nothing is changed unexpectedly, so fewer bugs | Machines can share data safely without clashes |
| Statelessness | The result depends only on the input, so it is predictable | The function can run anywhere, in any order |
| Higher-order functions | Standard patterns (map, filter, reduce) are well tested | The work can be split and combined automatically |
The fact-based model
A fact-based model represents data as a collection of facts. Each fact captures a single piece of information, and is stored as a raw, unchanging record.
- A fact is a small, atomic statement, such as "Asha lives in Leeds".
- Facts are usually time-stamped ("Asha lives in Leeds, as of 2026-01-01").
- Facts are never changed or deleted. If Asha moves, a new fact is added, so the history is kept.
| Entity | Fact | Value | Time |
|---|---|---|---|
| Asha | lives in | Leeds | 2026-01-01 |
| Asha | lives in | York | 2026-09-01 (a new fact, not an edit) |
| Asha | likes | Chess | 2026-02-14 |
This fits immutable data, is easy to distribute (facts can be stored and processed on any machine), and keeps all of the raw data so that new questions can be asked later.
Graph schema
A graph schema is a way of capturing the structure of the data set as a graph, made of:
| Part | Meaning | Example |
|---|---|---|
| Nodes | The entities (things) | A person, a city, a hobby |
| Edges | The relationships between nodes | "lives in", "is friends with", "likes" |
| Properties | Information attached to a node | A person's name and age; a city's population |
Each node is an ellipse labelled with its type and value (Person: Asha), the lines between nodes are edges labelled with the relationship, and the boxes joined by dashed lines are properties of a node, such as Age: 17. This is how graph schemas are drawn on AQA papers.
A graph handles highly connected, varied data naturally, such as a social network, where a relational database would need many tables and complicated joins. It copes with unstructured and varied data, and new kinds of nodes and edges can be added without redesigning the whole schema.
Worked example
Task: a company wants to analyse many petabytes of customer comments and clicks that arrive every second from many sources. Explain why a single relational database is unsuitable, and suggest an approach.
- Volume: many petabytes, growing every day, won't fit on one server. Velocity: data arrives continuously and must be processed quickly. Variety: comments are free text, and clicks are events, so they don't fit neat rows and columns.
- Relational databases need structured, row-and-column data, and don't scale well across many machines.
- Approach: store the data as facts across several machines, and process it with a distributed program written in a functional style (immutable data, stateless
mapandreducesteps), which is easier to get right and to run in parallel. Use machine learning to find patterns in the text.
Exam tip: define Big Data with the three Vs (volume, velocity, variety) and give an example of each. Remember the key point that lack of structure makes it hard, and that relational databases aren't suitable. For functional programming, name immutable data, statelessness and higher-order functions, and say how each helps with correctness and distribution.
Check yourself
Describe the three Vs of Big Data
Volume (too big for a single server), velocity (streaming data that must be handled in milliseconds to seconds) and variety (many forms, such as structured, unstructured, text and multimedia).
Why are relational databases not suitable for much Big Data?
They require data to fit into a row-and-column format, but much Big Data is unstructured, and relational databases don't scale well across multiple machines.
Why does functional programming suit distributed processing of Big Data?
Immutable data and statelessness mean that the work can be split across machines and run in any order without conflicts, and higher-order functions like map and reduce describe the work in a form that is easy to distribute and combine. This makes the code easier to write correctly.
What is a fact-based model?
A way of representing data as a collection of facts, each capturing a single piece of information, which are stored unchanged (and usually time-stamped), so that new facts are added instead of old ones being edited.
In a graph schema, what are nodes, edges and properties?
Nodes are the entities, edges are the relationships between them, and properties are the extra information attached to a node, such as a person's age.