jrlasak
databricks_fintech_monitoring
Python

Databricks Real-Time Fintech Monitoring Pipeline: Hands-on lab to build a streaming fraud detection system using Auto Loader, watermarked deduplication, stream-static joins, and windowed rules engines in Databricks. Covers dual-SLA architecture for real-time alerts and batch compliance reporting.

Last updated Jun 26, 2026
12
Stars
11
Forks
0
Issues
0
Stars/day
Attention Score
52
Language breakdown
No language data available.
Files click to expand
README
[!IMPORTANT]
## This repo is archived — now part of databricks-code-practice
>
All hands-on Databricks labs now live in one unified repo: jrlasak/databricks-code-practice.
>
This lab's new home: https://github.com/jrlasak/databricks-code-practice/tree/main/pipeline-labs/fintech-monitoring
>
Clone the new repo: git clone https://github.com/jrlasak/databricks-code-practice
>
The content below still works and is preserved for anyone with existing clones or links, but future updates land only in the new unified repo.

Lab: Real-Time Fintech Transaction Monitoring Pipeline

Independent educational resource; not endorsed by Databricks, Inc. "Databricks" and "Delta Lake" are trademarks of their respective owners.

Author

Jakub Lasak

Jakub Lasak — Helping you interview like seniors, execute like seniors, and think like seniors.

Business Scenario

Company: ModernPaymentsABC - a payment processor handling 500K+ transactions/day.

Problem: Fraud is rising, and overnight batch detection is too slow. The ops team needs real-time alerts for suspicious activity (velocity spikes, geo-anomalies), and compliance needs daily Suspicious Activity Reports (SARs).

Your Role: Senior Data Engineer building the end-to-end monitoring pipeline on Databricks.


Learning Objectives

By completing this lab, you will be able to:

  • Ingest Streaming JSON with Auto Loader and capture malformed data using the Rescued Data Column.
  • Implement Watermarked Deduplication to handle technical payment gateway retries.
  • Perform Stream-Static Joins to enrich real-time events with customer and merchant reference data.
  • Design a Rules Engine using Tumbling and Sliding windows for velocity detection.
  • Build a Medallion Architecture that serves dual SLAs: real-time streaming alerts and batch Gold reporting.
  • Optimize for Performance using Liquid Clustering.

Architecture Overview

  • Bronze: Raw ingestion via Auto Loader + Watermarked Dedup.
  • Silver: Enriched transactions + Real-time risk scoring & alerts.
  • Gold: Aggregated merchant summaries and SAR pre-fill datasets.

Prerequisites

  • Basic knowledge of PySpark and Delta Lake.
  • Access to a Databricks workspace (Free Edition compatible).
⚠️ Before you start: Disable AI code suggestions in your Databricks workspace. Go to User Settings → Developer → AI-powered code completion and turn OFF:
  • Autocomplete as you type
  • Automatic Assistant Autocomplete
This lab is designed to build muscle memory - auto-completions defeat the purpose.

How to Start

  • Create a Databricks Account
- Sign up for a Databricks Free Edition account if you don't already have one. - Familiarize yourself with the workspace, clusters, and notebook interface.
  • Import this repository to Databricks
- In Databricks, go to the Workspace sidebar and click the "Repos" section, click "Add Repo". - Alternatively, go to your personal folder, click "create" and select "git folder". - Paste the GitHub URL for this repository. - Authenticate with GitHub if prompted, and select the main branch. - The repo will appear as a folder in your workspace, allowing you to edit, run notebooks, and manage files directly from Databricks. - For more details, see the official Databricks documentation: Repos in Databricks.
  • Open the notebooks/ folder and run 00SetupEnvironment.py to create the Unity Catalog infrastructure and generate data.
  • Follow the numbered notebooks (01 to 04) to build the pipeline.
Each exercise includes a STUDENT EXERCISE area for your code and a commented-out SOLUTION for verification.

Certification Alignment

This lab prepares you for:

  • Databricks Data Engineer Associate: Auto Loader, Medallion, Delta basics.
  • Databricks Data Engineer Professional: Streaming, Watermarks, Windowing, Table optimization.
🔗 More in this category

© 2026 GitRepoTrend · jrlasak/databricks_fintech_monitoring · Updated daily from GitHub