# shreyakm21/retail-sales-azure-data-pipeline architecture

> Architecture diagram of the GitHub repository shreyakm21/retail-sales-azure-data-pipeline, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shreyakm21/retail-sales-azure-data-pipeline
- Repository: https://github.com/shreyakm21/retail-sales-azure-data-pipeline

## Overview

This repository documents an Azure retail analytics pipeline: source data is ingested, transformed through Bronze/Silver/Gold stages, and served to a Power BI dashboard. The notebook and dashboard artifact are present; ADF, ADLS, Unity Catalog, and serving infrastructure are described in the README but have no corresponding source files in the tree. Relationships below follow that documentation, not inspected runtime code.

Main entry points: [`databricks/retailProject_clean.ipynb`](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb) (Databricks notebook), [`powerbi/Retail_Sales_Analytics.pbix`](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/powerbi/Retail_Sales_Analytics.pbix) (Power BI dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data ingestion"]
  node_adf["Data Factory"]
  node_bronze[("Bronze data")]
  node_table_ddl["Retail table DDL"]
end

subgraph group_lake["Lake processing"]
  node_databricks["Databricks notebook"]
  node_silver_transform["Silver transforms"]
  node_quality["Data quality checks"]
  node_silver[("Silver Delta")]
  node_gold_aggregation["Gold aggregation"]
  node_gold[("Gold Delta")]
end

subgraph group_governance["Governance and serving"]
  node_managed_identity["Managed identity"]
  node_access_connector["Access connector"]
  node_storage_credential["Storage credential"]
  node_external_location["External location"]
  node_unity_catalog["Unity Catalog"]
  node_sql_warehouse["SQL Warehouse"]
end

subgraph group_analytics["BI analytics"]
  node_powerbi["Power BI dashboard"]
end

node_sql_source[("Azure SQL")]
node_customer_source["Customer dataset"]
node_report_viewer(("Report viewer"))

node_sql_source -->|"supplies data"| node_adf
node_customer_source -->|"supplies data"| node_adf
node_adf -->|"loads raw data"| node_bronze
node_bronze -->|"reads data"| node_databricks
node_databricks -->|"runs"| node_silver_transform
node_silver_transform -->|"validates"| node_quality
node_quality -->|"persists cleaned data"| node_silver
node_silver -->|"aggregates"| node_gold_aggregation
node_gold_aggregation -->|"stores summary"| node_gold
node_managed_identity -->|"authenticates"| node_access_connector
node_access_connector -->|"uses"| node_storage_credential
node_storage_credential -->|"governs access"| node_external_location
node_external_location -->|"accesses storage"| node_bronze
node_external_location -->|"accesses storage"| node_silver
node_external_location -->|"accesses storage"| node_gold
node_silver -->|"registers table"| node_unity_catalog
node_gold -->|"registers table"| node_unity_catalog
node_unity_catalog -->|"exposes Gold"| node_sql_warehouse
node_sql_warehouse -->|"serves data"| node_powerbi
node_powerbi -->|"presents reports"| node_report_viewer

click node_databricks "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb"
click node_silver_transform "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb"
click node_quality "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb"
click node_gold_aggregation "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb"
click node_powerbi "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/powerbi/Retail_Sales_Analytics.pbix"
click node_table_ddl "https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/sql/create_retail_tables.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_adf,node_bronze,node_table_ddl,node_report_viewer toneBlue
class node_databricks,node_silver_transform,node_quality,node_silver,node_gold_aggregation,node_gold,node_sql_source toneAmber
class node_managed_identity,node_access_connector,node_storage_credential,node_external_location,node_unity_catalog,node_sql_warehouse toneMint
class node_powerbi toneRose
class node_customer_source toneIndigo
```

## Components

### Data ingestion

- **Data Factory**
- **Bronze data**
- [Retail table DDL](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/sql/create_retail_tables.sql): `sql/create_retail_tables.sql`

### Lake processing

- [Databricks notebook](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb): `databricks/retailProject_clean.ipynb`
- [Silver transforms](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb): `databricks/retailProject_clean.ipynb`
- [Data quality checks](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb): `databricks/retailProject_clean.ipynb`
- **Silver Delta**
- [Gold aggregation](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/databricks/retailProject_clean.ipynb): `databricks/retailProject_clean.ipynb`
- **Gold Delta**

### Governance and serving

- **Managed identity**
- **Access connector**
- **Storage credential**
- **External location**
- **Unity Catalog**
- **SQL Warehouse**

### BI analytics

- [Power BI dashboard](https://github.com/shreyakm21/retail-sales-azure-data-pipeline/blob/main/powerbi/Retail_Sales_Analytics.pbix): `powerbi/Retail_Sales_Analytics.pbix`

### Other components

- **Azure SQL**
- **Customer dataset**
- **Report viewer**

## Connections

- Azure SQL → Data Factory: supplies data (evidence: `README.md`)
- Customer dataset → Data Factory: supplies data (evidence: `README.md`)
- Data Factory → Bronze data: loads raw data (evidence: `README.md`)
- Bronze data → Databricks notebook: reads data (evidence: `README.md`)
- Databricks notebook → Silver transforms: runs (evidence: `README.md`)
- Silver transforms → Data quality checks: validates (evidence: `README.md`)
- Data quality checks → Silver Delta: persists cleaned data (evidence: `README.md`)
- Silver Delta → Gold aggregation: aggregates (evidence: `README.md`)
- Gold aggregation → Gold Delta: stores summary (evidence: `README.md`)
- Managed identity → Access connector: authenticates (evidence: `README.md`)
- Access connector → Storage credential: uses (evidence: `README.md`)
- Storage credential → External location: governs access (evidence: `README.md`)
- External location → Bronze data: accesses storage (evidence: `README.md`)
- External location → Silver Delta: accesses storage (evidence: `README.md`)
- External location → Gold Delta: accesses storage (evidence: `README.md`)
- Silver Delta → Unity Catalog: registers table (evidence: `README.md`)
- Gold Delta → Unity Catalog: registers table (evidence: `README.md`)
- Unity Catalog → SQL Warehouse: exposes Gold (evidence: `README.md`)
- SQL Warehouse → Power BI dashboard: serves data (evidence: `README.md`)
- Power BI dashboard → Report viewer: presents reports (evidence: `README.md`)
