सामग्री पर जाएँ

लेसन 6 · Data Architecture and Storage

Data Architecture Basics

Learn what data architecture covers: systems of record, OLTP and analytics, data warehouses, lakes, lakehouses, data mesh and fabric, and how to choose.

Data architecture describes the big picture: which systems hold which data, how data flows between them and which principles guide new choices. It is not a drawing of every table. Think of it as a city map that shows districts and main roads, not every room in every house.

You need architecture because data spreads. An order is typed in a web shop, copied to a warehouse, exported to a spreadsheet and sent to a shipping partner. Without a map, nobody can say which copy is correct.

Systems of record

A system of record is the authoritative source for a piece of data. If two systems disagree about a customer's address, the system of record wins, and the other system should be corrected from it. Name the system of record for each important data domain. Sometimes different attributes of the same entity have different sources: sales owns the contact name while finance owns the credit limit.

Operational and analytical workloads

Operational (OLTP) Analytical (OLAP)
Purpose Run daily transactions Answer questions over history
Typical query One order by ID Revenue by region and month
Writes Frequent, small Often batch or streamed loads
Design Normalized for integrity Often denormalized for reading

Running heavy reports directly on a busy operational database can slow customers down. This is why analytical copies exist, and why you must manage their freshness. For more on the technical side, read about OLTP and OLAP.

Common architecture styles

Stores for analytics

Warehouse Modeled, structured data
Data lake Raw files of any shape
Lakehouse Table features on lake files
1 / 2

A data warehouse stores cleaned, modeled data for reporting. A data lake stores large amounts of raw data, often as files, which gives flexibility but can become a "data swamp" if nobody documents it. A lakehouse adds table features, such as transactions and schema control, on top of lake storage.

Data mesh is mainly an organizational idea: business domains publish data products with clear owners, supported by a shared platform and shared governance rules. Data fabric usually refers to using metadata and integration tooling to connect data across many places. Vendors use both terms in different ways, so ask what a speaker means.

Layers in an analytical flow

Many teams organize analytical data in layers. Names differ, but the idea repeats:

flowchart LR
  S["Source systems"] --> R["Raw layer"]
  R --> C["Cleaned layer"]
  C --> B["Business-ready layer"]
  B --> U["Reports and apps"]

Each layer has clearer meaning and stronger guarantees than the one before it.

Keep the raw layer unchanged so you can rebuild later layers after fixing a bug. Apply access controls at every layer, because raw data often contains the most sensitive details.

Recording architecture decisions

Architecture is a series of trade-offs. A short decision record captures them:

TEXT
Decision : Store customer events in the lake, summarized daily
           in the warehouse.
Context  : Event volume is large; most reports need daily totals.
Options  : (a) everything in warehouse (b) lake plus summaries
Chosen   : (b)
Trade-off: Detailed event questions need a separate query engine.
Owner    : Data architect.  Revisit: in 12 months.

Which copy is allowed to feed which?

A useful architecture rule is that data flows from authoritative sources outward, and corrections go back to the source. The stand-in below finds bad flows, where a copy is used to update the system of record.

Python Stand-in: detect flows that write back into a system of record

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A flagged flow is not always wrong. Some designs allow controlled write-back, for example a validated correction service. The point is that it must be a deliberate, documented decision.

Choosing sensibly

Start from needs: which questions must be answered, how fresh data must be, how much there is, who will operate it and which legal constraints apply (for example, where data may be stored). A small organization can do very well with one operational database, one reporting database and a documented nightly copy. Complexity has an ongoing cost in skills, monitoring and security.

Do not adopt an architecture style because it is popular. Adding a lake or a mesh without owners, metadata and quality checks moves the mess to a new place.

A worked example: a small business

A fictional bike rental company has a booking application, a payment service and an accounting package. Staff download spreadsheets from each to build a weekly report. A simple architecture improvement could be:

  1. Declare the booking application the system of record for rentals and the payment service the record for payments.
  2. Copy both into one reporting database every night.
  3. Build the weekly report from that database instead of from downloads.
  4. Show the time of the last successful load on the report.

This is not fashionable, but it removes manual steps, gives one place to apply quality checks and makes the freshness visible. If the company later needs live dashboards or much larger data, it can change the design with a clear starting map.

Principles that guide decisions

Architecture principles are short statements that help teams make consistent choices without asking permission each time. Examples include:

  • Each important data element has one named system of record.
  • Data is copied only for a stated purpose, and each copy has an owner.
  • Integrations use documented interfaces rather than direct changes to another system's tables.
  • Sensitive data is protected in every layer, including test environments.
  • New datasets are added to the inventory before other teams depend on them.

A principle is useful when it rules something out. "We value good data" rules out nothing. Review principles when real projects keep needing exceptions to them.

Try it yourself

Draw one flow you know on a single page. Mark the system of record, every copy, how often each copy is refreshed and who owns it. Circle any copy whose purpose you cannot state.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. What is a system of record?

    When copies disagree, the system of record is the one to trust and correct from.
  2. 2. Which describes a data mesh best?

    Mesh is mostly about distributed ownership supported by common rules and tooling.
  3. 3. Why keep raw data unchanged in an analytical flow?

    An unchanged raw layer lets you replay processing. It still needs protection.

Summary

  • Data architecture maps systems, flows and guiding principles.
  • Name a system of record for each important data domain or attribute.
  • Operational and analytical workloads have different needs.
  • Warehouses, lakes, lakehouses, mesh and fabric are tools and ideas, not goals.
  • Record trade-offs and review them.

Next: Data Modeling Essentials

आपकी प्रगति इसी ब्राउज़र में सेव होती है। खाते की ज़रूरत नहीं है।