Skip to content

About

Real-time Banking Analytics Pipeline using Delta Live Tables, Spark, and Databricks with operational KPIs, platform KRIs, and Genie-powered insights.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

🏦 Bank of America Real-Time Banking Analytics with Delta Live Tables

This project simulates an end-to-end real-time data pipeline and dashboarding system for a large bank (Bank of America) using synthetic data, Apache Spark, and Delta Live Tables (DLT) on Databricks.

It showcases how to monitor and optimize branch performance, operational costs, digital platform health, and employee efficiency using robust data engineering and analytics workflows.


📌 Objectives

  • Build a synthetic but realistic simulation of banking operations.
  • Use Delta Live Tables to create a Bronze → Silver → Gold data pipeline.
  • Compute meaningful KPIs (Key Performance Indicators) and KRIs (Key Risk Indicators).
  • Visualize insights with an interactive Databricks dashboard.
  • Provide a curated data access layer using Genie Data Room.

⚙️ Tech Stack

  • Apache Spark (Structured Streaming)
  • Delta Lake & Delta Live Tables (DLT)
  • Python (pandas, Faker)
  • Databricks Notebooks & Dashboard
  • Genie Data Room (Databricks SQL / Curated Access)

🧬 Data Entities

  • Branches – location, region, staff, geo-coordinates
  • Customers – demographics, account types, balances
  • Transactions – timestamped activity by type & amount
  • Digital Platforms – usage and issues across online systems
  • Employee Performance – efficiency and feedback metrics
  • Operational Costs – expenses tied to branches or platforms

🪄 Pipeline Flow

Pipeline Flow

  1. Synthetic Data Generation – via Python script (data_generator.py)
  2. Bronze Layer – Ingest raw JSON via Databricks Autoloader
  3. Silver Layer – Cleaned & typed tables with basic filters
  4. Gold Layer – Final KPIs and KRIs using business logic
  5. Genie Room – Curated views and natural-language Q&A for analysts (e.g., Top Performing Branches, High Risk Platforms)
  6. Dashboards – Databricks visuals powered by Gold + Genie tables

📊 KPIs & KRIs Explained

✅ KPIs (Key Performance Indicators)

KPI Description
Profitability Index Total transaction value - operational costs per branch
Profit per Transaction Profitability index divided by txn count
Cost per Transaction Operational cost per branch / txn count
Profit Tier Classified branches as High, Medium, Low based on profitability
Employee Efficiency Score Aggregate of performance × tasks × feedback per branch

⚠️ KRIs (Key Risk Indicators)

KRI Description
Transaction Value StdDev Standard deviation in transaction amounts (volatility)
Overutilization Flag Triggered if employee efficiency > threshold (5000)
Platform Issue Rate issues_reported / active_users per platform
Platform Risk Flag Triggered if issue rate > 0.03%

📈 Dashboards

Main metrics and visuals are shown below:

🔹 Dashboard Overview

Dashboard Main Dashboard Main

🧠 Genie Data Room (Curated Access Layer)

The Genie Room acts as the semantic layer for business users:

  • Exposes cleaned, filtered, and ranked views from Gold Layer

  • Includes business-friendly views like:

    • top_profitable_branches
    • branches_with_high_cost_per_txn
    • platforms_at_risk Genie
  • Enables secure, governed access to final metrics without raw data exposure

  • Built using Databricks SQL & views


📁 Project Structure

boa-dlt-project/
├── data_generator.py                  # Generates all synthetic data
├── data_schema.md                    # Field-level schema reference
├── transformations/
│   ├── bronze_layer.py
│   ├── silver_layer_transformations.py
│   ├── gold_kpis.py
├── dashboards/
│   └── screenshots/
├── README.md

🏁 How to Run Locally

  1. Clone this repo

  2. Run data_generator.py to generate JSON

  3. In Databricks:

    • Set up Autoloader paths to /output/...
    • Deploy DLT pipelines (Bronze → Silver → Gold)
    • Create Genie views on Gold tables
    • Attach dashboard to Genie or Gold tables

🤝 Contact

Built by Rohith Kukkadapu as a portfolio project simulating real-time banking analytics.

Feel free to fork, star ⭐, or connect on LinkedIn!

About

Real-time Banking Analytics Pipeline using Delta Live Tables, Spark, and Databricks with operational KPIs, platform KRIs, and Genie-powered insights.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages