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.
[!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 — Helping you interview like seniors, execute like seniors, and think like seniors.
- 🔗 LinkedIn - Databricks projects and tips
- 📬 Substack Newsletter - Exclusive content for Data Engineers
- 🌐 DataEngineer.wiki - Training materials and resources
- 🚀 More Practice Labs - Delta Live Tables, table optimization, and more
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).
- Autocomplete as you type
- Automatic Assistant Autocomplete
How to Start
- Create a Databricks Account
- Import this repository to Databricks
- Open the
notebooks/folder and run00SetupEnvironment.pyto create the Unity Catalog infrastructure and generate data.
- Follow the numbered notebooks (
01to04) to build the pipeline.
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.