Volume 11 · Chapter 6 — Advanced Cloud Architecture, Azure Solution Architect & Enterprise Platform Engineering

Enterprise Data Architecture

Goutham Mayaluri 7 min read .NETC#Azure

6.1 Introduction

Data is an enterprise’s most valuable and most regulated asset, and its architecture spans two distinct worlds: operational (transactional) systems that run the business, and analytical systems that derive insight from it. A modern data architecture connects them - moving data from operational stores into lakes and warehouses for analytics - while enforcing governance, security, and cost control. The architect chooses the right store for each job (polyglot persistence) and designs the pipelines that move and transform data between them.

6.2 Operational Data Stores

Operational workloads use the stores covered in Volume 8: Azure SQL for relational, ACID, strongly-consistent transactions; Cosmos DB for globally distributed, horizontally scaled, low-latency NoSQL access; and PostgreSQL/MySQL for open-source relational needs. The architect matches the store to the access pattern and consistency requirement, and uses polyglot persistence - strong consistency where money moves, scale where users read.

6.3 The Analytical Plane: Lakes and Warehouses

Analytics needs a different architecture. Adata lake(Azure Data Lake Storage) stores raw and refined data of any shape cheaply at massive scale; adata warehousestores structured, modeled data optimized for fast SQL analytics and BI. The modern convergence is thelakehouse(Microsoft Fabric, Synapse, Databricks), which brings warehouse-like structure and performance to the lake. The medallion architecture organizes lake data in progressive quality tiers.

flowchart LR
  Sources["Operational sources\n(SQL, Cosmos, events)"] --> Ingest["Ingestion\n(ADF, Event Hubs, CDC)"]
  Ingest --> Bronze["Bronze\n(raw)"]
  Bronze --> Silver["Silver\n(cleaned, conformed)"]
  Silver --> Gold["Gold\n(business aggregates)"]
  Gold --> BI["BI / ML / reports"]

6.4 Data Integration and Pipelines

Data moves through pipelines: batch (Azure Data Factory / Synapse pipelines) for scheduled bulk movement and transformation, and streaming (Event Hubs + Stream Analytics or Structured Streaming) for real-time processing. Change Data Capture propagates operational changes into the analytical plane. Event-driven pipelines let analytics react to business events in near real time - for example, streaming transactions into a fraud model.

6.5 Data Governance and Security

At enterprise scale, governance is essential: data classification and cataloging (Microsoft Purview), lineage tracking, quality controls, and ownership. Security layers encryption at rest and in transit, private connectivity, fine-grained access control (row/column-level, dynamic data masking), and full auditing. For a bank, governance is not optional - it is how you satisfy regulators about where sensitive data lives, who can access it, and how it flows.

Senior Architect Question

What is the difference between a data lake and a data warehouse, and how do they work together?

A data lake is cheap, massively scalable storage for data of any shape - raw, semi-structured, or structured - stored as files, with schema applied on read; it is flexible and inexpensive, ideal for landing everything and for data science and ML, but not optimized for fast structured queries by itself. A data warehouse stores cleaned, modeled, structured data optimized for high-performance SQL analytics and business intelligence, with schema enforced on write; it is fast and governed for reporting but more rigid and expensive per terabyte. They work together in a modern architecture: raw data lands in the lake (bronze), is cleaned and conformed (silver), and business-level aggregates are curated (gold) for consumption, with the warehouse (or the warehouse-like “gold” layer of a lakehouse) serving fast BI queries while the lake retains the full-fidelity history for ML and reprocessing. The convergence is the lakehouse (Fabric, Synapse, Databricks), which adds warehouse structure, transactions, and performance directly on the lake, reducing the need to move data between two systems. So the lake gives flexible, cheap, comprehensive storage and the warehouse gives fast, governed structured analytics, and the medallion/lakehouse pattern connects them into a single refined pipeline from raw to business-ready.

Senior Architect Question

How do you decide between batch and streaming data pipelines?

I decide based on how fresh the data needs to be for the business decision it supports, weighed against cost and complexity. Batch pipelines (Azure Data Factory / Synapse) process data on a schedule in bulk - simpler, cheaper, and perfectly adequate when the consumers can tolerate latency of minutes to hours, such as daily reporting, periodic aggregations, and most BI. Streaming pipelines (Event Hubs plus Stream Analytics or Structured Streaming) process events continuously in near real time - more complex and costly to build and operate, justified when the business genuinely needs immediate insight or action, such as fraud detection on live transactions, real-time dashboards, or event-driven reactions. I match the pattern to the requirement: I do not build streaming infrastructure for data that is consumed once a day, because it adds cost and operational burden for freshness no one uses; and I do not force real-time needs through slow batch cycles. Many architectures use both - streaming for the time-sensitive path and batch for heavy historical processing - and Change Data Capture bridges operational changes into either. The deciding question is the required data freshness for the decision at hand, and I choose the simplest pipeline that meets it.

Principal Architect Question

How do you design an enterprise data architecture that balances performance, security, cost, and governance for a regulated bank?

I design it as two connected planes - operational and analytical - with polyglot persistence and governance woven through both. On the operational side I match each store to its access pattern and consistency need: a strongly consistent Azure SQL (or event-sourced) ledger for money movement, Cosmos DB for globally distributed low-latency customer reads, keeping strong consistency where correctness of the latest value is non-negotiable and accepting eventual consistency where scale matters. Operational changes flow via CDC and events into the analytical plane - a lakehouse organized in medallion tiers (raw to cleaned to business-ready) - where data science, fraud models, and BI consume refined data, using streaming pipelines for the time-sensitive paths (fraud) and batch for heavy historical processing, choosing the simplest pipeline that meets each freshness requirement to control cost. Governance is first-class because regulation demands it: data is classified and cataloged with lineage (Purview), so we can prove where sensitive data lives and how it flows; access is least-privilege and fine-grained (row/column-level security, dynamic masking); everything is encrypted in transit and at rest with vault-managed (optionally customer-managed) keys and reached over private endpoints; and all access is audited. Cost is managed through storage tiering and lifecycle policies on the lake, right-sized and pausable analytics compute, and choosing batch over streaming where freshness is not needed. Performance comes from serving fast structured queries from the curated gold/warehouse layer and caching hot reads, while the lake retains full history for ML and reprocessing. The through-line is: right store for each job, refine data through governed tiers, enforce security and lineage everywhere for compliance, and control cost by matching freshness and compute to actual need - so the architecture is performant, secure, auditable, and cost-efficient rather than optimizing one dimension at the others’ expense.

6.6 Banking Enterprise Scenario

A bank runs its ledger on strongly consistent Azure SQL and customer-facing reads on Cosmos DB. Change Data Capture and transaction events stream into a lakehouse organized in medallion tiers: raw transactions land in bronze, are cleaned and conformed in silver, and are aggregated into gold tables that power BI and regulatory reporting. A streaming path feeds live transactions to a fraud model in near real time, while heavy historical analytics run in batch to control cost. Microsoft Purview classifies and tracks the lineage of sensitive data, access is row/column-restricted and masked, everything is encrypted and reached over private endpoints, and all access is audited - satisfying regulators that sensitive financial data is governed, protected, and traceable end to end.

Chapter Revision Notes

  • Data architecture spans operational (transactional) and analytical (insight) planes.
  • Use polyglot persistence operationally; match the store to access pattern and consistency.
  • Lakes store cheap raw data of any shape; warehouses serve fast structured analytics; lakehouses converge them.
  • Organize lake data in medallion tiers (bronze/silver/gold); connect planes via CDC and events.
  • Choose batch vs streaming by required data freshness; use the simplest pipeline that meets it.
  • Governance (classification, lineage, fine-grained access, audit) is mandatory in regulated data.