# databricks-industry-solutions/pos-dlt architecture

> Architecture diagram of the GitHub repository databricks-industry-solutions/pos-dlt, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/databricks-industry-solutions/pos-dlt
- Repository: https://github.com/databricks-industry-solutions/pos-dlt

## Overview

This repository is a Databricks POS streaming solution accelerator. Its main workflow replays simulated transaction events to Azure IoT Hub, ingests and refines event and snapshot data into Silver tables with Delta Live Tables (DLT), then derives current inventory in Gold. Environment setup supplies configuration; scheduling and the companion notebook deploy the DLT pipeline and job. The Silver-to-Gold implementation is documented but not excerpted, so that stage is represented at its documented notebook path; other unsampled details are not inferred.

Main entry points: [`03_Bronze-to-Silver ETL.py`](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py) (Bronze-to-Silver), [`02_Data Generation.py`](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/02_Data%20Generation.py) (POS Replay), [`04_Silver-to-Gold ETL.sql`](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/04_Silver-to-Gold%20ETL.sql) (Silver-to-Gold), [`01_Environment Setup.py`](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/01_Environment%20Setup.py) (Cloud Setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Environment"]
  node_environment["Cloud Setup"]
  node_blob[("Azure Blob Storage")]
end

subgraph group_generation["Data Generation"]
  node_simulation["POS Replay"]
  node_source_data["Simulated POS Data"]
  node_iot["Azure IoT Hub"]
end

subgraph group_etl["Streaming ETL"]
  node_bronze_silver["Bronze-to-Silver"]
  node_raw_events[("Raw Events")]
  node_silver_events[("Silver Event Tables")]
  node_silver_static[("Silver Static Tables")]
  node_gold_etl["Silver-to-Gold"]
  node_gold_inventory[("Current Inventory")]
end

subgraph group_orchestration["Orchestration"]
  node_dlt{{"DLT Pipeline"}}
  node_scheduling_guide["DLT Scheduling Guide"]
  node_job_deployer["Job Deployment<br/>[RUNME.py]"]
end

node_user(("Accelerator Operator"))

node_user -->|"configures"| node_environment
node_user -->|"starts replay"| node_simulation
node_environment -->|"configures"| node_simulation
node_source_data -->|"reads"| node_simulation
node_simulation -->|"sends events"| node_iot
node_simulation -->|"writes snapshots"| node_blob
node_iot -->|"streams events"| node_raw_events
node_blob -.->|"provides snapshots"| node_bronze_silver
node_bronze_silver -->|"defines source"| node_raw_events
node_bronze_silver -->|"transforms events"| node_silver_events
node_bronze_silver -->|"loads static data"| node_silver_static
node_silver_events -->|"provides Silver data"| node_gold_etl
node_silver_static -->|"provides Silver data"| node_gold_etl
node_gold_etl -->|"derives inventory"| node_gold_inventory
node_user -->|"schedules pipeline"| node_scheduling_guide
node_scheduling_guide -->|"configures"| node_dlt
node_job_deployer -->|"deploys pipeline"| node_dlt
node_dlt -->|"orchestrates"| node_bronze_silver
node_dlt -->|"orchestrates"| node_gold_etl

click node_environment "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/01_Environment%20Setup.py"
click node_simulation "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/02_Data%20Generation.py"
click node_bronze_silver "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py"
click node_raw_events "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py"
click node_silver_events "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py"
click node_silver_static "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py"
click node_gold_etl "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/04_Silver-to-Gold%20ETL.sql"
click node_gold_inventory "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/04_Silver-to-Gold%20ETL.sql"
click node_scheduling_guide "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/05_DLT%20Job%20Scheduling.py"
click node_job_deployer "https://github.com/databricks-industry-solutions/pos-dlt/blob/main/RUNME.py"

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_environment,node_blob toneBlue
class node_simulation,node_source_data,node_iot toneAmber
class node_bronze_silver,node_raw_events,node_silver_events,node_silver_static,node_gold_etl,node_gold_inventory toneMint
class node_dlt,node_scheduling_guide,node_job_deployer toneRose
class node_user toneIndigo
```

## Components

### Environment

- [Cloud Setup](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/01_Environment%20Setup.py): `01_Environment Setup.py`
- **Azure Blob Storage**

### Data Generation

- [POS Replay](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/02_Data%20Generation.py): `02_Data Generation.py`
- **Simulated POS Data**
- **Azure IoT Hub**

### Streaming ETL

- [Bronze-to-Silver](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py): `03_Bronze-to-Silver ETL.py`
- [Raw Events](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py): `03_Bronze-to-Silver ETL.py`
- [Silver Event Tables](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py): `03_Bronze-to-Silver ETL.py`
- [Silver Static Tables](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/03_Bronze-to-Silver%20ETL.py): `03_Bronze-to-Silver ETL.py`
- [Silver-to-Gold](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/04_Silver-to-Gold%20ETL.sql): `04_Silver-to-Gold ETL.sql`
- [Current Inventory](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/04_Silver-to-Gold%20ETL.sql): `04_Silver-to-Gold ETL.sql`

### Orchestration

- **DLT Pipeline**
- [DLT Scheduling Guide](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/05_DLT%20Job%20Scheduling.py): `05_DLT Job Scheduling.py`
- [Job Deployment](https://github.com/databricks-industry-solutions/pos-dlt/blob/main/RUNME.py): `RUNME.py`

### Other components

- **Accelerator Operator**

## Connections

- Accelerator Operator → Cloud Setup: configures (evidence: `01_Environment Setup.py`)
- Accelerator Operator → POS Replay: starts replay (evidence: `02_Data Generation.py`)
- Cloud Setup → POS Replay: configures (evidence: `02_Data Generation.py`)
- Simulated POS Data → POS Replay: reads (evidence: `02_Data Generation.py`)
- POS Replay → Azure IoT Hub: sends events (evidence: `02_Data Generation.py`)
- POS Replay → Azure Blob Storage: writes snapshots (evidence: `02_Data Generation.py`)
- Azure IoT Hub → Raw Events: streams events (evidence: `README.md`)
- Azure Blob Storage → Bronze-to-Silver: provides snapshots
- Bronze-to-Silver → Raw Events: defines source (evidence: `03_Bronze-to-Silver ETL.py`)
- Bronze-to-Silver → Silver Event Tables: transforms events (evidence: `03_Bronze-to-Silver ETL.py`)
- Bronze-to-Silver → Silver Static Tables: loads static data (evidence: `03_Bronze-to-Silver ETL.py`)
- Silver Event Tables → Silver-to-Gold: provides Silver data (evidence: `README.md`)
- Silver Static Tables → Silver-to-Gold: provides Silver data (evidence: `README.md`)
- Silver-to-Gold → Current Inventory: derives inventory (evidence: `README.md`)
- Accelerator Operator → DLT Scheduling Guide: schedules pipeline (evidence: `05_DLT Job Scheduling.py`)
- DLT Scheduling Guide → DLT Pipeline: configures (evidence: `05_DLT Job Scheduling.py`)
- Job Deployment → DLT Pipeline: deploys pipeline (evidence: `RUNME.py`)
- DLT Pipeline → Bronze-to-Silver: orchestrates (evidence: `README.md`)
- DLT Pipeline → Silver-to-Gold: orchestrates (evidence: `README.md`)
