After four lessons of catalogue you have dozens of tools in front of you, and almost all of them could do the job. That is precisely the problem. A technology stack is the set of tools that, combined, make up the platform: one per layer, or several. Choosing it badly does not usually cause a spectacular failure but something worse: years of friction, costs nobody foresaw and a migration that is always postponed.
Lesson 05-01 promised a method for choosing, and here it is. It will not tell you which tool is best, because that question has no answer outside a context. It will give you a procedure for getting from requirements to a written, defensible decision, and you will apply it to a real NovaMarket decision that has been open since lesson 03-05: which engine to process its streams with.
The method in six steps
flowchart LR
R[1. Requirements] --> X[2. Constraints]
X --> C[3. Candidates<br/>per layer]
C --> E[4. Evaluation<br/>against criteria]
E --> P[5. Proof of<br/>concept]
P --> D[6. Documented<br/>decision]
P -. does not pass .-> C
D -. requirements change .-> R
| Step | Question | Output |
|---|---|---|
| 1. Requirements | What must the system do, and to what levels? | A list with figures |
| 2. Constraints | What is non-negotiable? | Elimination filters |
| 3. Candidates | Which tools cover this layer? | Two to four options, including "what we already have" |
| 4. Evaluation | Which fits best according to agreed criteria? | Weighted matrix |
| 5. Proof of concept | Does it really meet them, with our data? | Measurements |
| 6. Decision | What do we choose, why, and when will we review it? | An ADR |
The order matters. The most widespread mistake is to start at step 3, with a tool already in mind, and then go through the rest looking for arguments.
Requirements and constraints
A useful requirement carries a figure and a source. "Real time" is not a requirement; "the alert must arrive in under a minute, because orders are picked after fifteen" is.
| Dimension | Question | NovaMarket: stream processing |
|---|---|---|
| Volume | How much today, and in three years' time? | 40 million events/day, about 460 per second on average; peaks of ×10 during campaigns |
| Latency | How soon must the result be available? | Fraud alert in under 1 minute; dashboard to the minute |
| Variety | What types and formats of data? | JSON from the web_events topic |
| Concurrency | How many users or processes at once? | Three consumers of the topic; a dashboard for three people |
| Query types | What operations? | Aggregations by window and by key, using event time |
| Service level | What availability is promised? | Recovery without loss in under 5 minutes; no night-time on-call |
| Budget | How much can be spent, including people's time? | Within the platform's €6,500/year (lesson 05-03) |
| Team | What can it do today? | Laura and Marc: Python, SQL and Spark. Nobody programs in Java |
| Regulation | What does the law require? | Personal data: EU region, controlled access |
Constraints are the requirements that eliminate candidates without discussion. At NovaMarket: it must run on AWS, in the Spain region (lesson 06-04); it must read from Kafka; and it must not require hiring anyone. A tool that breaks a constraint does not enter the matrix, however brilliant it is.
Two tips from someone who has gathered requirements many times:
- Ask about the decision, not the technology. "What would you do differently if you knew in one second rather than in one minute?" If the answer is "nothing", the requirement is one minute.
- Size for three years, not thirty. NovaMarket's 460 events per second are three orders of magnitude below what justifies the architectures of the big tech companies.
Evaluation criteria
The candidates that pass the constraints are compared against criteria. These eight cover almost any data decision:
| Criterion | What is asked | How to check it |
|---|---|---|
| Maturity | Has it been in production for years at similar companies? | Age, published case studies, stability of releases |
| Community and continuity | Who maintains it, and will they keep doing so? | Repository activity, diversity of contributing companies, status at the foundation (lesson 06-01) |
| Total cost of ownership (TCO) | How much does it cost over three years, including people? | Licences, infrastructure, operation, training (lesson 05-03) |
| Learning curve | How long will the current team take to become productive? | Languages and concepts it already masters |
| Operability | Who keeps it running on a Sunday? | Availability of a managed service, ease of monitoring and upgrading |
| Interoperability | Does it talk to the rest of the stack through open formats and protocols? | Parquet, table formats, standard SQL, connectors |
| Vendor lock-in | How much would it cost to leave? | What would have to be rewritten and what data would have to be converted |
| Security | Does it support the controls the organisation requires? | Encryption, access control, auditing (Module 7) |
The criteria are weighted according to the context. For a three-person team, skills and operability carry more weight than for a company with a forty-strong platform department.
The weighted decision matrix
A decision matrix crosses options with criteria. Each option receives a score on each criterion, each criterion has a weight, and the final score is the weighted sum. It does not replace judgement: it makes it explicit and, above all, open to discussion.
The decision. The stream processing engine for fraud detection and the live dashboard. The three candidates are those from the table in lesson 03-05: Spark Structured Streaming, Flink and Kafka Streams. All three pass the constraints.
Create ~/novamarket/decision_matrix.py:
"""Weighted decision matrix: NovaMarket's stream processing engine."""
# Criteria and weights (must add up to 100). The team sets them BEFORE scoring.
WEIGHTS = {
"team_skills": 25,
"operability": 20,
"total_cost": 15,
"latency_and_state": 15,
"maturity_community": 10,
"lake_integration": 10,
"low_lock_in": 5,
}
# Scores from 1 (very poor) to 5 (very good), justified in the ADR.
OPTIONS = {
"Spark Structured Streaming": {
"team_skills": 5, "operability": 4, "total_cost": 4, "latency_and_state": 3,
"maturity_community": 5, "lake_integration": 5, "low_lock_in": 4,
},
"Flink": {
"team_skills": 2, "operability": 3, "total_cost": 3, "latency_and_state": 5,
"maturity_community": 4, "lake_integration": 4, "low_lock_in": 4,
},
"Kafka Streams": {
"team_skills": 1, "operability": 3, "total_cost": 4, "latency_and_state": 5,
"maturity_community": 4, "lake_integration": 2, "low_lock_in": 3,
},
}
def validate(weights, options):
assert sum(weights.values()) == 100, "Weights must add up to 100"
for name, scores in options.items():
assert set(scores) == set(weights), f"Missing or extra criteria in {name}"
assert all(1 <= s <= 5 for s in scores.values()), f"Score outside 1-5 in {name}"
def score(weights, options):
"""Returns {option: weighted score out of 5}."""
total = sum(weights.values())
return {
name: sum(weights[c] * scores[c] for c in weights) / total
for name, scores in options.items()
}
def change_weight(weights, criterion, new):
"""Sets the weight of one criterion and shares out the rest in the same proportion."""
rest = sum(w for c, w in weights.items() if c != criterion)
return {
c: (new if c == criterion else w * (100 - new) / rest)
for c, w in weights.items()
}
validate(WEIGHTS, OPTIONS)
# 1. The matrix
print(f"{'Criterion':<22}{'Weight':>6}" + "".join(f"{n[:14]:>16}" for n in OPTIONS))
for criterion, weight in WEIGHTS.items():
print(f"{criterion:<22}{weight:>6}" + "".join(f"{OPTIONS[n][criterion]:>16}" for n in OPTIONS))
# 2. The result
result = score(WEIGHTS, OPTIONS)
print("\nWeighted score (out of 5)")
for name, value in sorted(result.items(), key=lambda pair: -pair[1]):
print(f" {name:<28}{value:5.2f}")
# 3. Sensitivity analysis: what if latency carried more weight?
print("\nSensitivity to the weight of 'latency_and_state'")
for weight in (15, 30, 40, 45, 60):
scores = score(change_weight(WEIGHTS, "latency_and_state", weight), OPTIONS)
winner = max(scores, key=scores.get)
detail = " ".join(f"{n.split()[0]} {v:.2f}" for n, v in scores.items())
print(f" weight {weight:>2}%: winner {winner:<28}({detail})")WEIGHTSandOPTIONSare the data; everything else is generic and works for any other decision. "Maturity" and "community" have been merged, and "learning curve" is captured inteam_skills; security does not appear because the three candidates offer equivalent controls, and a criterion that does not discriminate adds nothing.validatechecks that the weights add up to 100 and that no option has missing criteria or scores out of range. It is the same "validate before you trust" idea that you apply to data.scorecalculates, for each option, the sum of weight × score divided by the total of the weights.change_weightenables sensitivity analysis: it sets a new weight for one criterion and shares out the rest proportionally, to see whether the winner changes.
It needs neither Spark nor any library:
Criterion Weight Spark Structur Flink Kafka Streams team_skills 25 5 2 1 operability 20 4 3 3 total_cost 15 4 3 4 latency_and_state 15 3 5 5 maturity_community 10 5 4 4 lake_integration 10 5 4 2 low_lock_in 5 4 4 3 Weighted score (out of 5) Spark Structured Streaming 4.30 Flink 3.30 Kafka Streams 2.95 Sensitivity to the weight of 'latency_and_state' weight 15%: winner Spark Structured Streaming (Spark 4.30 Flink 3.30 Kafka 2.95) weight 30%: winner Spark Structured Streaming (Spark 4.07 Flink 3.60 Kafka 3.31) weight 40%: winner Spark Structured Streaming (Spark 3.92 Flink 3.80 Kafka 3.55) weight 45%: winner Flink (Spark 3.84 Flink 3.90 Kafka 3.67) weight 60%: winner Flink (Spark 3.61 Flink 4.20 Kafka 4.04)
How to read it:
- Structured Streaming wins clearly (4.30 against 3.30), and not because it is "better": it wins because the team already masters it, it shares code with the batch jobs and it meets the one-minute requirement. Flink and Kafka Streams beat it on the only criterion where NovaMarket does not need more.
- The sensitivity tells you when the decision would change. Flink only comes out on top if latency carries more than roughly 43% of the weight. That has a business translation: if one day the payment had to be blocked before authorising it, latency would become the dominant criterion and the decision would have to be reopened. That is the review condition that will go into the ADR.
- The scores are opinions formatted as numbers. A 4.30 against a 4.25 decides nothing. The matrix is useful when the gap is wide and survives changes in the weights; if not, it is a tie and the proof of concept decides.
Common trap: tweaking weights and scores until the preferred option wins. That is why the weights are set before scoring, and every score must be justifiable in one sentence.
Build or buy; open source or managed
Two dilemmas run through every layer.
Build or buy. You build what differentiates the business; you buy what is the same for everyone. NovaMarket's fraud rules and KPI calculations are its own; a connector that copies tables from PostgreSQL to a bucket is identical at a thousand companies. Before programming a component, ask three questions: does it already exist? Who will maintain it two years from now? What is the team's time worth compared with the product's price?
Open source or managed service. They are not opposites: the most common combination is open technology operated by someone else (Spark on EMR, Kafka on MSK).
| Open source, operated by you | Open source, managed | Proprietary, managed | |
|---|---|---|---|
| Licence cost | None | Included in the service | Included in the service |
| Operating cost | High: people | Low | Minimal |
| Control and customisation | Total | Partial | Limited |
| Exit cost | Low | Low or medium | High |
| A fit for… | Large platform teams; special requirements | Most small and medium-sized teams | When the product saves a lot and the dependency is consciously accepted |
The most effective protection against lock-in is not avoiding managed services but keeping data in open formats and logic in portable languages (SQL, Python). What you change then is the engine, not the content.
Reference stacks by size of organisation
| Small | Medium | Large | |
|---|---|---|---|
| Data | Up to tens of GB | From hundreds of GB to a few TB | Tens of TB or more; significant streaming |
| Data team | One person, part-time | 2 to 10 | Several teams |
| Storage and query | PostgreSQL, or DuckDB on Parquet | Cloud data warehouse, or a lake with a serverless SQL engine | Lakehouse with an open table format |
| Ingestion | Scripts; an integration tool | Managed integration tool; CDC if needed | Kafka, CDC, connectors |
| Transformation | SQL; dbt if it grows | dbt, or Spark if there is non-tabular data | Spark and dbt; streaming with Structured Streaming or Flink |
| Orchestration | cron |
A managed orchestrator | Self-operated orchestrator |
| BI | A BI tool | BI with a semantic layer | BI, semantic layer, formal catalogue and governance |
| Motto | "You don't need Big Data" | "Buy the standard, look after the model" | "Platform as an internal product" |
The first column is the most important and the least glamorous. A well-indexed relational database, or DuckDB on a few Parquet files, handles the analytics of most companies, and doing it that way is not falling behind: it is the rule from lesson 05-01, first check whether the problem is a Big Data problem.
The "modern data stack" and over-engineering. A recipe became popular under that name: managed integration, a cloud data warehouse, dbt, BI and, around them, a specialised tool for every need (observability, catalogue, reverse ETL, semantic layer). The recipe works; its excess does not. Ten products with ten contracts and ten integrations to move a few gigabytes is over-engineering: complexity with no requirement to justify it. The reaction in recent years has gone the other way: fewer pieces, more integrated platforms, single-machine tools. A good test: if you cannot name the requirement, with a figure, that justifies each box in the diagram, the box should go.
Where does NovaMarket sit? Between medium and large: 2.79 TB of events a year and a stream with a real requirement, but a team of three. That is why its stack is a lakehouse, but with as much as possible managed.
The proof of concept
The matrix is filled in with opinions; the proof of concept (PoC) replaces them with measurements. It is a bounded experiment to check that the best-placed option meets the critical requirements with your own data and conditions.
How to design one:
- A hypothesis that can fail. Not "try Flink", but "Structured Streaming delivers the alert in under a minute at the campaign peak".
- Success criteria written before you start, with their threshold. If they are set afterwards, any result will look good.
- Representative data: real or scaled-up volume, with its flaws (duplicates, late arrivals, nulls). The clean data of a demo proves nothing.
- Bounded time: one or two weeks. A PoC that lasts three months is already the project, without anyone having decided so.
- Test failure, not just functioning: kill a process, cut the network, send a corrupt message.
- Measure the effort too: hours spent, unresolved questions, quality of the documentation.
- Throwaway code. The PoC answers a question; it is not the first version of the system.
Laura's two-week PoC. The result figures are a fictitious example of how it is presented:
| Criterion | Threshold set | How it is measured | Result |
|---|---|---|---|
| Alert latency (95th percentile) | < 60 s | Event timestamp against alert timestamp, replaying June at ×10 speed | 14 s |
| Recovery after failure | < 5 min, with no losses or duplicates | The process is stopped halfway; the total number of alerts is compared with the batch calculation | 2 min; identical totals |
| Cost | ≤ €4,200/year of streaming compute | Measured consumption, extrapolated | Within budget |
| Effort | ≤ 5 person-days | Time log | 4 days |
The second criterion takes advantage of something you already know: the rule can be calculated in batch on silver/web_events (32 customers in June, lesson 03-05), so there is an independent figure against which to validate the stream. Had any threshold not been met, the method would have gone back to step 3 with the next candidate.
Putting the decision in writing: the ADR
Two years from now, someone will ask why NovaMarket does not use Flink. If the answer exists only in Laura's memory, it will be lost, and with it the chance of knowing whether the reason still holds. An Architecture Decision Record (ADR) is a short document, one per decision, numbered and versioned alongside the code, in docs/adr/ (the docs/ folder from lesson 05-01).
Its rules: one per decision; immutable (if the decision changes, a new ADR is written that supersedes the previous one, which becomes "superseded"); and short, one page. The template:
# ADR-NNNN: Title, phrased as a decision
- Status: proposed | accepted | superseded by ADR-XXXX
- Date: YYYY-MM-DD
- Participants: who decides and who was consulted
## Context
What the problem is, which requirements and constraints apply.
## Options considered
Each alternative, with its advantages and drawbacks.
## Decision
What is chosen and why.
## Consequences
What is gained, what is lost, what work it creates.
## Review conditions
What would have to change for the decision to be reopened.And NovaMarket's ADR, docs/adr/0007-streaming-engine.md:
# ADR-0007: Use Spark Structured Streaming as the stream processing engine
- Status: accepted
- Date: 2026-09-14
- Participants: Laura (proposes), Irene (approves), Marc and the web team (consulted)
## Context
Fraud detection and the live dashboard consume the `web_events` topic
(40 million events/day; peaks of x10). Requirements: alert in under 1 minute,
recovery without loss in under 5 minutes, cost within the platform budget
(EUR 6,500/year). Constraints: AWS in the Spain region, reading from Kafka,
a three-person team with Python, SQL and Spark, no experience in Java.
## Options considered
1. Spark Structured Streaming: same engine and same API as the batch jobs;
micro-batches, latency of seconds. Weighted score: 4.30.
2. Apache Flink: event by event, milliseconds, better state management; a second
engine to learn and operate. Score: 3.30.
3. Kafka Streams: easy to deploy, but Java only and Kafka only. Score: 2.95.
Full matrix and weights in `decision_matrix.py`.
## Decision
Structured Streaming, on the managed Spark service already used for batch.
It meets the latency requirement with room to spare (proof of concept: 95th
percentile of 14 s) and avoids introducing a second engine into a three-person team.
## Consequences
- For: a single engine; rules are tested in batch before being deployed;
the transformations in `pipelines/` are reused.
- Against: minimum latency of seconds; a small cluster running permanently
(the most expensive compute item on the platform).
- Follow-up work: stream restart runbook and consumer lag alert.
## Review conditions
To be reopened if the business requires deciding before authorising the payment
(latency under 1 second), if per-customer state exceeds what the cluster handles
comfortably, or if the team gains experience in Flink. In the sensitivity
analysis, Flink comes out on top when latency carries more than 43% of the weight.Notice what makes this document good: it records the rejected options and the reason, it admits the drawbacks of the chosen one and it says when it will stop being valid. An ADR that only praises the decision is no use to whoever comes next.
Typical mistakes when choosing
| Mistake | How to recognise it | Antidote |
|---|---|---|
| Choosing by fashion | "It's what everyone uses now" | A requirement with a figure, or it does not get in |
| Choosing for the CV | Whoever proposes the tool wants to learn it | Separate who proposes from who weights; the matrix in full view of everyone |
| Copying the big tech companies | "That's how Netflix does it" | Compare your own volume with theirs |
| Ignoring the team | The tool is excellent and nobody knows how to use it | Skills are a criterion with a high weight |
| Not planning the exit | Nobody knows what it would cost to switch | Open formats; ask "how would we get out?" before getting in |
| Evaluating with the vendor's demo | Clean data, ideal case | A PoC with your own data and failure tests |
| Looking only at the list price | Operation, training and exit are forgotten | Total cost over three years |
| Not deciding | Evaluations that last a year | A deadline for the PoC and a date for the ADR |
| Deciding everything at once | A "grand design" with twenty new tools | One decision per layer, starting with the one that hurts most |
NovaMarket's final stack
This diagram brings together what has been decided throughout the course. Behind every box there is a lesson and a reason:
flowchart TB
subgraph F[Sources]
F1[Shop database<br/>PostgreSQL]
F2[Website and app<br/>web_events]
F3[Reviews]
end
subgraph I[Ingestion]
I1[Nightly JDBC load<br/>with Spark]
I2[Managed Kafka<br/>+ Kafka Connect]
end
subgraph A[Storage: lakehouse]
A1[Object storage, Spain region<br/>bronze / silver / gold / quarantine]
A2[Parquet with an open table format<br/>+ technical catalogue]
end
subgraph P[Processing]
P1[Batch Spark<br/>ephemeral or serverless cluster]
P2[Structured Streaming<br/>fraud and dashboard · ADR-0007]
P3[MLlib<br/>segmentation, prediction]
end
subgraph S[Serving and consumption]
S1[Serverless SQL engine<br/>+ DuckDB and pandas locally]
S2[BI: KPI dashboard]
S3[Redis: live<br/>counters]
end
subgraph T[Cross-cutting]
T1[Airflow: novamarket_daily]
T2[Quality as code<br/>and data contracts]
T3[Governance: catalogue, glossary, roles]
T4[Git, tests, CI, IaC, ADR]
T5[FinOps: budget and alerts]
end
F1 --> I1 --> A
F2 --> I2 --> A
F3 --> I1
I2 --> P2 --> S3
A --> P1 --> A
A --> P3
A --> S1 --> S2
T -.-> I
T -.-> A
T -.-> P
T -.-> S
| Layer | Choice | Decided in |
|---|---|---|
| Architecture | Batch for almost everything; streaming only for fraud and the dashboard | 01-04 |
| Storage | Medallion lakehouse on objects, in Parquet with an open table format (Delta Lake, the one practised) | 02-04, 02-05 |
| Batch processing | Spark, on ephemeral clusters | 03-02, 05-03 |
| Messaging | Kafka, managed | 03-05, 06-03 |
| Streaming | Spark Structured Streaming | 03-05, ADR-0007 |
| Orchestration | Airflow | 03-06 |
| Analysis | Serverless SQL over the lake; DuckDB and pandas for small data | 04-01 |
| Quality and governance | Rules as code, quarantine, data contract, roles | 05-02 |
| Cloud and cost | AWS, Spain region; option C, €6,500/year | 05-03, 06-04 |
| Ruled out for now | Flink, real-time analytical database, in-house cluster, separate data warehouse | 06-03, 06-05 |
The last row is as much a part of the stack as the others. A good stack is recognised less by what it includes than by what it has had the sense to leave out.
Common Mistakes and Tips
- Starting with the candidates. If the meeting opens with the name of a tool, go back to step 1.
- Requirements without figures. "Fast", "scalable" and "real time" do not let you rule anything out.
- Giving all criteria the same weight. It amounts to not weighting at all. Make the team share out 100 points: the discussion it sparks is the most valuable part of the exercise.
- Taking the final score as the truth. It is a summary of opinions. Always complement it with the sensitivity analysis and the PoC.
- Leaving out the "do nothing" or "what we already have" option. It is often the best one, and it is almost never evaluated.
- Writing the ADR months later. It is written at the time of deciding, while the rejected alternatives are still remembered.
- Considering the decision eternal. A stack is reviewed when the requirements change, not when a new tool comes out.
Exercises
Exercise 1: three companies, three stacks
Propose, with a one-line justification, the stack for: a) an accounting and tax advisory firm with 12 employees, 4 GB of data in a relational database and one person who knows SQL; b) a chain of 80 clinics with 600 GB, five analysts who know SQL, and health data; c) a telecoms operator with 30 TB a day of network logs and a requirement to detect faults within seconds.
Exercise 2: reopening the decision
NovaMarket hires an engineer with three years' experience of Flink, and AWS offers managed Flink. Laura raises Flink's scores to team_skills = 4 and operability = 4. Calculate Flink's new score by hand and check it by modifying the script. Does the winner change? What else would have to happen?
Exercise 3: reviewing a proof of concept
A vendor presents Irene with this PoC of its analytical database: "In three days we loaded a sample of 10,000 orders and the queries responded in 20 milliseconds. We recommend signing the contract". List at least four flaws and write two well-formulated success criteria.
Solutions
Exercise 1
a) No Big Data at all. The relational database it already has, a reporting replica if needed and a BI tool. With 4 GB, anything else is over-engineering. b) Medium stack: cloud data warehouse (or a lake with serverless SQL), managed integration, dbt and a managed orchestrator. The analysts know SQL, so Spark is not needed. Health data is a special category: an EU region, strict access control and a prior regulatory compliance review are constraints, not criteria. c) Large stack: a lakehouse on object storage, Kafka for ingestion, Spark for batch and Flink for detection within seconds with per-network-element state; an in-house platform team. Here the volume and latency really do justify the complexity.
Exercise 2
Flink's score rises by (4 − 2) × 25 + (4 − 3) × 20 = 70 points out of 100, that is, 0.70: from 3.30 to 4.00. Structured Streaming stays at 4.30 and wins all the same. When you change the two scores in OPTIONS and run the script again, it shows Flink 4.00.
For the winner to change, a requirement would also have to change: sub-second latency would raise the weight of latency_and_state. And there is a factor the matrix does not capture: a single person who knows Flink is a single point of failure; the day she leaves, the team will inherit an engine that nobody masters. Hiring does not turn an individual skill into a team capability.
Exercise 3
Flaws: 1) unrepresentative data (10,000 orders against 40 million events a day); 2) no success criteria set in advance: 20 ms is not compared with any threshold; 3) concurrency was not measured, even though it is the whole point of that type of product; 4) no failure tests and no sustained-load tests; 5) no cost or operating effort; 6) the vendor ran it, not the team; 7) there is no requirement: nobody has explained what NovaMarket need calls for 20 ms; 8) it was not compared with the alternative of what already exists.
Two well-formulated criteria: "With June's events replayed at ×10 speed and 50 simultaneous queries, the 95th percentile of the dashboard's response time is below 500 ms" and "An event can be queried less than 10 seconds after being published to the topic, measured over 24 consecutive hours, including a forced shutdown of one node".
Conclusion
Choosing technology is a method, not an inspiration: requirements with figures, constraints that eliminate, a few candidates per layer, an evaluation with weighted criteria (maturity, community, total cost, learning, operability, interoperability, lock-in and security), a proof of concept that measures what the matrix only gives an opinion on, and a written decision in an ADR that explains the why and says when to review it. You have applied the method to NovaMarket: Spark Structured Streaming beats Flink and Kafka Streams with 4.30 out of 5, not because it is superior, but because it fits a three-person team and a one-minute requirement; and you know what change in requirements would make it stop winning. You have also seen when the right answer is "you don't need Big Data" and why what a stack leaves out is part of its design.
This lesson brings Module 6 to a close. It began at the origin, with the Hadoop ecosystem and what remains of it; it continued with Spark as a platform, and its limits; it presented the specialised tools that cover those limits; it translated the map into the three major clouds; and it has finished with the method for deciding. You have the catalogue and the judgement.
NovaMarket's platform is, at last, chosen and running: the events arrive, the loads run every night, the KPIs are ready before seven in the morning and the fraud alerts fire within seconds. But in that lake there are the names, provinces, purchase histories and browsing histories of two million customers, and so far you have only asked yourself how to process them, not how to protect them. Who can read the customers table? What happens if a credential ends up in a repository, or if a bucket is left open by mistake? Module 7, Security and Ethics in Big Data, deals with the responsibility that comes with everything you have built. Its first lesson, Data Security, starts with the most basic questions: who can access what, how data is encrypted and how you find out what happened when something goes wrong.
