In the previous lesson we drew the map of the components of a data architecture and DataCorp's current state. The temptation at this point is to start choosing tools. That is a mistake: you cannot choose a storage system or a processing mode well without first knowing what will be demanded of it. How much data will need to be stored? What is the maximum delay with which it must be available? How long does it have to be kept? How much can be spent?
This lesson teaches you to walk that preliminary path: starting from the business questions, turning them into measurable requirements, relying on a set of design principles to decide, recognizing the trade-offs every decision involves and leaving a written record of what was decided. The result will be the DataCorp requirements table, which we will come back to again and again for the rest of the course.
From business needs to use cases
A data architecture is designed from right to left: you start with consumption and work back to the sources. The starting point is not "what data do we have", but "what does the business need to decide".
flowchart LR
A["Business<br/>goal"] --> B["Business<br/>questions"]
B --> C["Use<br/>cases"]
C --> D["Data<br/>requirements"]
D --> E["Architecture<br/>decisions"]
- A business goal is what the organization wants to achieve: "reduce stockouts".
- A business question is what you need to know to achieve it: "which products are going to run out in the next few days?".
- A use case describes who needs what, with which data and for which decision.
- The data requirements translate the use case into concrete, measurable demands.
How they are gathered: the interview
Marta interviews the heads of each area. Business people rarely state technical requirements, so these have to be deduced from their answers. These are the questions she uses:
| Question to the user | Which requirement it lets you deduce |
|---|---|
| What decision do you make with this data? | The use case and its priority |
| What would you do differently if you had it an hour earlier? And a day earlier? | The freshness that is really needed |
| How far back do you need to look? | Retention and depth of history |
| At what level of detail? By product, by day, by order? | Granularity |
| What happens if the data is not available one morning? | Availability |
| Who else should see it, and who should not? | Security |
The second question is the most valuable one. Almost every user asks for data "in real time"; when asked what they would do differently, most admit that the previous day's data is enough.
DataCorp's use cases
Six use cases come out of the interviews, which Marta ranks by priority together with Sergio:
| Id | Use case | Requester | Business question | Sources needed | Priority |
|---|---|---|---|---|---|
| UC-01 | Daily net sales | Management and Finance | How much did we sell yesterday, by category and by city? | Orders | High |
| UC-02 | Campaign profitability | Marketing | How much revenue does each euro invested in each campaign bring in? | Marketing, orders | High |
| UC-03 | Stockout alert | Logistics | Which products are about to run out? | Inventory, orders | High |
| UC-04 | Conversion funnel | Marketing and Product | At which step of the purchase do visitors drop off? | Clickstream, orders | Medium |
| UC-05 | Issue reasons | Customer Support | Which products generate the most complaints, and why? | Tickets, orders | Medium |
| UC-06 | Demand forecast | Logistics (future) | How much of each product will we sell next month? | Orders, inventory, marketing | Low (medium term) |
Notice that orders appears in all six use cases. It is the most widely shared data and, therefore, the first that has to be properly sorted out.
Functional and non-functional data requirements
Requirements fall into two broad families.
- Functional requirements describe what must be possible to do with the data: which data, which metrics, at what level of detail, for whom.
- Non-functional requirements describe how well it must be done: how fast, how reliably, at what cost.
An example with use case UC-01:
| Type | Requirement |
|---|---|
| Functional | Have net sales available by day, product category and customer city |
| Functional | Be able to compare any period with the same period of the previous year |
| Non-functional | A day's data is available before 07:00 the following day |
| Non-functional | The dashboard responds in less than 5 seconds |
Functional requirements determine the content; non-functional ones determine almost the entire architecture. It is the latter that make one solution ten times more expensive or more complex than another. There are eight main ones:
| Requirement | Question it answers | Usual unit |
|---|---|---|
| Volume | How much data is there and how fast does it grow? | GB or TB; rows per day; % annual growth |
| Velocity and latency | At what rate does the data arrive? How long does a query take to respond? | Events per second; seconds |
| Variety | What shapes does the data come in? | List of types and formats |
| Freshness | What is the maximum age a piece of data can have when it is used? | Minutes, hours or days |
| Availability | What percentage of the time must the system be working? How long does it take to recover it? | % of time; hours |
| Retention | How long is each piece of data kept? | Months or years |
| Security | Who accesses what, and how is sensitive data protected? | Rules by role and by type of data |
| Cost | How much can be spent? | Euros per month |
Volume, velocity and variety are known as the "three Vs" and are the usual starting point for describing a data problem.
Latency and freshness are not the same thing
This is a common confusion:
- Query latency is the time the system takes to respond when it is asked something.
- Freshness is the age of the data it returns.
A dashboard can respond in one second (excellent latency) with data from the day before yesterday (poor freshness). And a system can hold data from the last minute (excellent freshness) and take three minutes to resolve a query (poor latency). They are independent requirements and are met by different means.
How to quantify requirements
A requirement that cannot be measured can be neither met nor missed, so it is useless for design. Compare:
| Vague requirement | Quantified requirement |
|---|---|
| "Reports must be fast" | "95% of dashboard queries respond in less than 5 seconds" |
| "We need up-to-date data" | "A day's sales are available before 07:00 the following day" |
| "The system cannot fail" | "99.5% availability during business hours" |
| "We have to keep the history" | "Orders are kept for 6 years; detailed clickstream, for 13 months" |
| "Make it secure" | "Analysts cannot see customers' names or email addresses" |
Some guidelines for quantifying each requirement:
- Volume. It is calculated by multiplying the number of records by their average size and applying the expected growth. We will do this in the next section.
- Freshness. It is deduced from the decision made with the data, not from the user's wishes. Restocking a warehouse can live with minutes; a management report, with a day.
- Latency. It is best expressed with percentiles: "95% of queries in less than 5 seconds" (abbreviated as p95) is more useful than an average, because the average hides the slow cases, which are the ones that generate complaints.
- Availability. Each additional "nine" makes the system considerably more expensive, so it is worth translating the percentage into allowed downtime:
| Availability | Allowed downtime per year |
|---|---|
| 99% | 3.65 days |
| 99.5% | 1.83 days (about 44 hours) |
| 99.9% | 8.76 hours |
| 99.99% | 52.6 minutes |
- Recovery. It is measured with two indicators. The RPO (recovery point objective) is the maximum amount of data you accept losing, measured in time: an RPO of 24 hours means that, after a disaster, at most the last day's data can be lost. The RTO (recovery time objective) is the maximum time to be back in service.
- Retention. It is set by three factors: legal obligations (business records must be kept for six years), analysis needs (comparing with previous years) and data protection, which requires not keeping personal data longer than necessary.
- Cost. It must include not only the platform, but also the people who operate it.
Volume estimation for DataCorp with Python
Marta does not need an exact figure, but an order of magnitude: designing for 10 GB is not the same as designing for 10 TB. Together with Íñigo she gathers, for each source, how many records are generated per day and roughly how much space each one takes up.
| Source | Records per day | Average size per record | Where the figure comes from |
|---|---|---|---|
orders |
1,500 | 0.5 KB | Daily average of orders |
order_lines |
3,750 | 0.2 KB | 2.5 lines per order on average |
inventory |
45,000 | 0.1 KB | One daily snapshot: 15,000 products × 3 warehouses |
| Marketing | 5,000 | 0.3 KB | Daily results by campaign and ad |
| Clickstream | 2,000,000 | 1 KB | JSON events from the website and the app |
| Tickets | 400 | 2 KB | Includes the text of the conversation |
The calculation is simple, but it is worth putting it in a script: that way the assumptions are in plain sight and can be changed.
# Estimate of DataCorp's data volume
# For each source: records generated per day and average size of a record in KB
sources = {
"orders": {"records_per_day": 1_500, "kb_per_record": 0.5},
"order_lines": {"records_per_day": 3_750, "kb_per_record": 0.2},
"inventory": {"records_per_day": 45_000, "kb_per_record": 0.1},
"marketing": {"records_per_day": 5_000, "kb_per_record": 0.3},
"clickstream": {"records_per_day": 2_000_000, "kb_per_record": 1.0},
"tickets": {"records_per_day": 400, "kb_per_record": 2.0},
}
KB_PER_GB = 1_000_000 # we use decimal units to keep things simple
ANNUAL_GROWTH = 0.20 # assumption: the business grows 20% every year
YEARS = 3 # horizon of the estimate
# 1) Daily and annual volume of each source
total_annual_gb = 0
print(f"{'Source':<15}{'GB/day':>10}{'GB/year':>10}")
for name, s in sources.items():
gb_per_day = s["records_per_day"] * s["kb_per_record"] / KB_PER_GB
gb_per_year = gb_per_day * 365
total_annual_gb += gb_per_year
print(f"{name:<15}{gb_per_day:>10.4f}{gb_per_year:>10.2f}")
print(f"{'TOTAL':<15}{'':>10}{total_annual_gb:>10.2f}")
# 2) Projection over several years, applying the growth
cumulative_gb = 0
for year in range(1, YEARS + 1):
year_volume = total_annual_gb * (1 + ANNUAL_GROWTH) ** (year - 1)
cumulative_gb += year_volume
print(f"Year {year}: {year_volume:8.1f} GB new | cumulative: {cumulative_gb:8.1f} GB")
print(f"Raw volume over {YEARS} years: {cumulative_gb / 1000:.2f} TB")Output:
Source GB/day GB/year orders 0.0008 0.27 order_lines 0.0008 0.27 inventory 0.0045 1.64 marketing 0.0015 0.55 clickstream 2.0000 730.00 tickets 0.0008 0.29 TOTAL 733.03 Year 1: 733.0 GB new | cumulative: 733.0 GB Year 2: 879.6 GB new | cumulative: 1612.7 GB Year 3: 1055.6 GB new | cumulative: 2668.2 GB Raw volume over 3 years: 2.67 TB
The script, step by step
- The
sourcesdictionary holds the two assumptions for each source. To add a source, you only need to add one line. - In the first loop,
records_per_day * kb_per_recordgives the daily KB; dividing byKB_PER_GByields GB, and multiplying by 365, the annual volume. - In the second loop,
(1 + ANNUAL_GROWTH) ** (year - 1)applies compound growth: the first year is multiplied by 1, the second by 1.2 and the third by 1.44. cumulative_gbadds up what is stored year after year, assuming nothing is deleted.
What the result tells us
- The order of magnitude is a few terabytes. About 733 GB in the first year and about 2.7 TB accumulated over three. It is a moderate volume: it rules out from the start the solutions designed for hundreds of terabytes, which would add cost and complexity needlessly.
- Clickstream is 99.6% of the volume. All the transactional data together (orders, lines, inventory, marketing and tickets) does not reach 3 GB a year. This asymmetry is common and has a design consequence: transactional data and clickstream pose different problems and may require different treatment.
- Retention changes the figure. If detailed clickstream is only kept for 13 months, the stored volume levels off instead of growing indefinitely.
- It is a raw volume. It does not include the copies in the different storage zones or the backups (which increase it), nor compression (which reduces it considerably, as we will see in Module 2).
The estimate does not aim to be exactly right; it aims to avoid errors of an order of magnitude and to point out where the problem lies. Here it points it out clearly: in the clickstream.
Design principles
Requirements say what the architecture must fulfill. Design principles are stable criteria that guide decisions when there are several valid options. They work like a constitution: they do not settle every case, but they set the direction. Marta proposes seven for DataCorp.
- Data is an asset
Data has value, costs money and must be managed like any other company asset: with an inventory, an owner and maintenance.
- At DataCorp: every dataset will have a named owner. Clickstream, which today is paid for and not used, is an idle asset.
- Single source of truth
Every piece of data and every metric has a single official version, implemented in one place only.
- At DataCorp: net sales are calculated once and every report reads them from there. Nobody recalculates them in a spreadsheet.
- Decouple storage and compute
Storing data and processing it are needs that grow at different rates. If they are tied to the same machine, both have to be expanded at once even when only one is running short. Separating them makes it possible to size and pay for each one separately. In a broader sense, the principle asks that components depend on one another as little as possible.
- At DataCorp: keeping three years of clickstream requires a lot of space, but it is analyzed only occasionally. It makes no sense to pay for permanent computing capacity for data that is rarely queried.
- Design for change
Sources change, the business changes and tools change. A good architecture lets you replace one piece without redoing the others.
- At DataCorp: keeping a raw copy of the source data makes it possible to recalculate everything if the definition of net sales changes tomorrow. Using open formats avoids being locked in to a vendor.
- Security and governance by design
Data protection and the responsibilities over the data are defined at the beginning, not added at the end.
- At DataCorp: customers' personal data is identified and protected at the moment it enters the platform, so that it cannot end up uncontrolled in a spreadsheet.
- Simplicity
Between two solutions that meet the requirements, the simpler one is chosen. Every additional component has to be operated, monitored, paid for and explained.
- At DataCorp: the data team is, for now, two people. An architecture that requires ten different technologies cannot be maintained.
- Automation
Everything that is repeated gets automated: loads, transformations, checks and deployments. Manual work does not scale and depends on specific people.
- At DataCorp: the manual download of the marketing CSV files will be replaced by an automated process that does not depend on someone being in the office.
| Principle | Current DataCorp problem it tackles |
|---|---|
| Data as an asset | Nobody is accountable for the data; untapped sources |
| Single source of truth | Sales figures that don't match |
| Decoupling | Reports that bring down the transactional database |
| Design for change | Rules hidden in spreadsheets, impossible to modify safely |
| Security and governance by design | Personal data in open folders |
| Simplicity | Duplicated tools across departments |
| Automation | Manual processes that depend on one person |
Typical trade-offs
There is no architecture that is at once the fastest, the cheapest, the most flexible and the simplest. To design is to choose, and each choice improves some things at the expense of others. These sacrifices are called trade-offs.
| Trade-off | If you prioritize the first... | If you prioritize the second... |
|---|---|---|
| Freshness versus cost and complexity | Up-to-the-minute data, but systems that are more expensive and harder to operate | Previous-day data, with simple, cheap processes |
| Flexibility versus performance | Any data and any question is accepted, with slower queries | Very fast queries on structures fixed in advance |
| Detail versus storage cost | Any future question can be answered, at the price of storing everything | Lower cost, but unforeseen questions go unanswered |
| Security versus ease of access | Highly protected data, users waiting for permissions | Agile access, with more risk of exposure |
| Centralization versus autonomy | Consistency and control, with a central team that can become a bottleneck | Speed for each area, with the risk of going back to silos |
| Build versus buy | A tailor-made solution that has to be maintained | Fast start-up, with dependence on the vendor |
| Simplicity versus future-proofing | Easy to operate today; something may have to be redone if there is a lot of growth | Ready to scale, paying today for complexity that may never be used |
How to resolve a trade-off
Quantified requirements are what break the tie. Three examples from DataCorp:
- Freshness. Marketing asks for net sales "in real time". To the question "what would you do differently if you had it every minute?", the answer is "nothing; campaigns are adjusted once a day". The requirement stays at daily freshness, and the solution, at a simple nightly process. The stockout alert, on the other hand, does justify a freshness of 15 minutes, because it allows restocking in time.
- Detail. Keeping all the clickstream forever would cost more every year. The decision is to keep the detail for 13 months (enough to compare with the same month of the previous year) and to keep only the daily summaries indefinitely.
- Simplicity. With 2.7 TB over three years and a team of two people, simplicity outweighs being ready for volumes that are not expected.
The general rule: you do not pay for a level of service that no use case needs.
How to document decisions: the ADR
A year from now, someone will wonder why DataCorp did things a certain way. If the answer exists only in Marta's memory, it will be lost. Worse still: without knowing the reasons, someone may undo a sound decision or keep one that no longer makes sense.
An ADR (Architecture Decision Record) is a short document that puts a significant decision on record. Its characteristics:
- One per decision. Short: it should be readable in two minutes.
- Numbered and dated. The set forms the history of the architecture.
- Immutable. If a decision changes, the old ADR is not rewritten: a new one is written to replace it and the previous one is marked as "superseded".
- Stored alongside the rest of the technical documentation, usually in the same repository as the code.
Its usual structure has five sections:
| Section | Content |
|---|---|
| Title and status | What is being decided and whether it is proposed, accepted or superseded |
| Context | The problem and the requirements or constraints that shape the decision |
| Decision | What has been decided, in affirmative sentences |
| Alternatives considered | Which other options were weighed and why they were rejected |
| Consequences | What is gained, what is lost and what new work it generates |
DataCorp's first ADR
Marta's first decision tackles the most serious problem. Notice that it does not choose any technology: it establishes an architecture rule. The choice of the specific system will come in the following modules and will have its own ADR.
ADR-001: Separate the analytical workload from the transactional database Status: Accepted Date: 2026-11-16 Author: Marta (data architect) Approved by: Sergio (CTO) CONTEXT The nightly reports and the reporting tools of Marketing and Finance query the production PostgreSQL database directly. The reports take between 4 and 6 hours and, when they overlap with the morning traffic, they degrade the online store. In the last year they have caused about 6 outages. The six analytical use cases identified (UC-01 to UC-06) need the orders data, so the analytical workload is going to increase. DECISION 1. No analytical query will run against the production database. 2. The data from the sources will be copied to a separate analytical platform, and all analysis will be done on that copy. 3. Extraction from PostgreSQL will be done from a read replica and incrementally, to minimize the impact on the store. 4. The reporting tools of Marketing and Finance will no longer have access credentials to production. ALTERNATIVES CONSIDERED A. Scale up the PostgreSQL server. Rejected: it postpones the problem without solving it, and operations and analysis would keep competing for resources. B. Restrict the reports to a strict nighttime window. Rejected: it does not eliminate the risk and makes it impossible to meet the freshness requirements of UC-03. C. Point the reports at the read replica, with no separate platform. Rejected as a final solution: it avoids the outages, but does not allow integrating the other sources or keeping history. It is accepted as an interim measure. CONSEQUENCES Positive: - The main cause of store outages disappears. - The analytical platform can be sized and can evolve without affecting operations. Negative: - Analytical data will lag behind production, and that lag will have to be adjusted to the freshness required by each use case. - A new system appears that has to be operated, monitored and paid for. - The copy processes have to be built and maintained. Follow-up work: - Choose the analytical storage system (decision pending). - Migrate the current reports and remove the access to production.
The negative consequences section is what sets a good ADR apart. A decision presented with no downsides has not been analyzed thoroughly.
The DataCorp requirements table
With the interviews, the volume estimate and the trade-offs resolved, Marta consolidates the non-functional requirements. Sergio approves them. This table is the reference for the rest of the course: every decision in the following modules will have to be justified against it.
| Id | Category | Requirement | Target value |
|---|---|---|---|
| RQ-01 | Volume | Storage capacity | About 733 GB raw in the first year and about 2.7 TB accumulated over 3 years, with 20% annual growth. Clickstream accounts for 99.6% |
| RQ-02 | Velocity | Data arrival rate | 1,500 orders per day; 2 million clickstream events per day (about 23 per second on average, with peaks during campaigns) |
| RQ-03 | Variety | Types of data that must be supported | Relational (orders and inventory), CSV and API JSON (marketing), JSON events (clickstream) and free text (tickets) |
| RQ-04 | Freshness | Maximum age of the data | Sales, campaigns and tickets: previous day, available before 07:00. Inventory: 15 minutes at most. Clickstream: 1 hour at most |
| RQ-05 | Query latency | Dashboard response time | Less than 5 seconds for 95% of queries, with about 40 analytical users and up to 10 concurrent |
| RQ-06 | Availability | Uptime of the analytical platform | 99.5% during business hours (Monday to Friday, 08:00 to 20:00) |
| RQ-07 | Isolation | Impact on the operational systems | No analytical query against the production database (ADR-001) |
| RQ-08 | Recovery | Acceptable data loss and recovery time | RPO of 24 hours and RTO of 8 hours |
| RQ-09 | Retention | Retention period | Orders and order lines: 6 years. Detailed clickstream: 13 months; its daily summaries, no limit. Tickets: 3 years. Daily inventory: 3 years |
| RQ-10 | Security and privacy | Protection of personal data | GDPR compliance. Customers' names and email addresses masked for analysts. Role-based access, with individual credentials |
| RQ-11 | Consistency | Metric definitions | A single documented definition of each business metric, starting with net sales and gross sales, implemented in one place only |
| RQ-12 | Cost | Platform budget | €4,000 a month at most during the first year, in addition to an initial investment of €60,000 |
| RQ-13 | Operation | Team capacity | The platform must be operable by a team of 2 people (Marta and Íñigo) |
Three comments on the table:
- All the values are measurable. At any time you can check whether a requirement is being met or not.
- RQ-12 and RQ-13 are constraints. They do not describe what the business wants, but the limits within which it has to be achieved. They are as decisive as the others, and often more so.
- The table is not final. Requirements are reviewed when the business changes. What matters is that every change is explicit and recorded.
Common Mistakes and Tips
- Starting with the technology. "Let's set up such-and-such a tool" before having requirements is choosing the answer before knowing the question.
- Accepting "real time" without questioning it. It is the most expensive requirement and the one most often requested without being needed. Always ask what decision would change with fresher data.
- Designing for an imaginary volume. Adopting solutions designed for tech giants when you have a few terabytes multiplies cost and complexity. Estimate before you decide.
- Leaving requirements as adjectives. "Fast", "secure" and "scalable" are not requirements until they carry a number.
- Forgetting the team's constraints. The best architecture on paper fails if the people who must operate it cannot keep up or have not mastered it.
- Not writing decisions down. Undocumented decisions get re-argued again and again, or undone because nobody knows the reasons behind them.
- Tip: write the ADR before carrying out the decision, not after. Forcing yourself to write out the alternatives and the negative consequences brings to light problems that had not been considered.
- Tip: present estimates as ranges and state the assumptions. A figure with its assumptions in plain sight inspires more confidence than an apparently exact figure.
Exercises
Exercise 1: From vague to measurable
The head of Customer Support states their needs for use case UC-05 as follows:
- "I want to see which products cause the most problems."
- "The data has to be up to date."
- "I need to be able to look back quite a long way."
- "Conversations with customers are sensitive; not just anyone should see them."
For each sentence, state whether it expresses a functional or a non-functional requirement and which category it belongs to, and rewrite it in quantified form. Indicate which question you would ask him in order to quantify it.
Exercise 2: Recalculating the volume
DataCorp plans to launch a new mobile app that will double clickstream to 4 million events per day, keeping 1 KB per event. Using the script from the lesson:
- Which line needs to be modified?
- What is the new total volume for the first year?
- What would have happened to the total if, instead of clickstream, orders and their lines had doubled?
- What conclusion do you draw for the design?
Exercise 3: Writing an ADR
Marta wants all the data entering the platform to be stored first exactly as it arrives from the source, unmodified, before any transformation is applied to it. Write ADR-002 with its five sections. Include at least one rejected alternative and at least one negative consequence.
Solutions
Exercise 1
| Sentence | Type and category | Question to quantify it | Rewritten requirement (example) |
|---|---|---|---|
| 1 | Functional | How do you measure "problems"? By number of tickets, or relative to units sold? | "Number of tickets by product and by reason, and ticket rate per 100 units sold" |
| 2 | Non-functional: freshness | What would you do differently if you had it every hour instead of every day? | "A day's tickets are available before 07:00 the following day" |
| 3 | Non-functional: retention | Which earlier period do you need to compare against? | "Tickets are kept for 3 years" |
| 4 | Non-functional: security | Who needs to read the text of the conversation and who needs only the figures? | "The text of the tickets is visible only to the Customer Support role; the other roles see aggregated data only" |
Remark: in the first sentence, measuring only the number of tickets would always point to the best-selling products. The rate per units sold is the metric that truly answers the question, and it requires joining tickets with orders. A good question to the user can change which sources are needed.
Exercise 2
- The clickstream line in the
sourcesdictionary:
- Clickstream goes from 730 to 1,460 GB a year. The total for the first year is 1,460 + 3.03 = 1,463.03 GB, practically double.
- Orders and their lines add up to about 0.55 GB a year. Doubling them would add only 0.55 GB: the total would go from 733.03 to 733.58 GB, a negligible change.
- The volume of the platform depends almost exclusively on clickstream. The decisions about that source (how long it is kept, at what level of detail, in which format) are the ones that determine the storage cost, whereas transactional data can grow a lot without affecting sizing. In addition, any change to the website or the app must be communicated to the data team, because it directly affects RQ-01.
Common mistake: spreading the optimization effort equally across all sources. It pays to estimate first and concentrate where the volume is.
Exercise 3
One possible wording:
ADR-002: Keep a raw, immutable copy of the ingested data Status: Proposed Date: 2026-11-18 Author: Marta (data architect) CONTEXT DataCorp's business rules are still being agreed (for example, the definition of net sales) and are likely to change. The sources can modify their structure without notice. If the data is transformed at the moment it is extracted, it is not possible to recalculate the past when a rule changes or to investigate the origin of an error. DECISION 1. Every piece of data entering the platform will first be stored exactly as it arrives from the source, untransformed, in a raw data zone. 2. The data in that zone is neither modified nor overwritten: it is only appended. 3. All transformations start from the raw zone and write their result to different zones. ALTERNATIVES CONSIDERED A. Transform during extraction and store only the result. Rejected: it takes up less space, but prevents reprocessing and leaves no trace of the original data. B. Re-extract from the source whenever reprocessing is needed. Rejected: the sources do not keep the full history, and re-extraction would put load on the operational systems again, contrary to ADR-001. CONSEQUENCES Positive: - Any calculation can be redone from the origin if a rule changes. - Errors can be investigated by comparing the result with the original data. Negative: - The stored volume increases, mainly because of clickstream (RQ-01). - The raw zone contains unmasked personal data, so access to it must be tightly restricted (RQ-10). - The retention policies have to be applied to this zone as well (RQ-09).
What a good answer must have: a context that explains the problem without anticipating the solution, a decision stated as verifiable assertions, real alternatives with the reason each was rejected, and acknowledged negative consequences. Linking the ADR to the requirements and to earlier ADRs is a plus, as is done here with RQ-01, RQ-09, RQ-10 and ADR-001.
Conclusion
A data architecture is designed starting from the business questions, not from the technology. In this lesson we have walked that whole path: from goals to use cases, from these to functional and non-functional requirements (volume, velocity, variety, freshness, availability, retention, security and cost) expressed in figures, and from there to decisions, guided by seven design principles and by the awareness that every choice involves a trade-off. DataCorp leaves this lesson with six prioritized use cases, a volume estimate of about 2.7 TB over three years dominated by clickstream, a table of thirteen measurable requirements (RQ-01 to RQ-13) and its first documented architecture decision, ADR-001, which separates the analytical workload from the transactional database.
This brings the introductory module to a close: we know what a data architecture is, why it matters, what components it consists of and what is demanded of DataCorp's. ADR-001 leaves the first big question open: if analytical data is not going to live in the transactional database, where and how will it be stored? In Module 2 we will tackle the design of the storage infrastructure, starting with the types of data storage available and the criteria for choosing among them in light of the requirements we have just set.
