How shubham39874/crypto-pipeline works
This repository is a real-time crypto market-data pipeline: it polls Yahoo Finance, publishes price events to Kafka, and runs several independent consumers for storage, validation, lakehouse processing, and telemetry. The Streamlit dashboard reads SQLite data for filtering, metrics, and charts. The README documents the Kafka/Docker setup and Medallion layers; sampled source shows the runtime calls and reads. Some README-described recovery and backpressure details are not independently verified in the excerpts.
Main entry points: lakehouse_consumer.py Medallion Processor · obs_consumer.py Telemetry Consumer · producer.py Price Producer · db_consumer.py Database Consumer
Components 17
Market Ingestion
- Price Producer
producer.py
Kafka Stream
- Crypto Topic
Consumers and Quality
- Console Consumer
consumer.py - Database Consumer
db_consumer.py - Quality Consumer
dq_consumer.py - Telemetry Consumer
obs_consumer.py - Pipeline Logs
obs_consumer.py
SQLite Lakehouse
- Medallion Processor
lakehouse_consumer.py - Bronze Records
lakehouse_consumer.py - Silver Records
lakehouse_consumer.py - Gold Aggregates
lakehouse_consumer.py - Raw Price Store
db_consumer.py - Validated Store
dq_consumer.py - Monitored Store
obs_consumer.py - SQLite Database
Dashboard
- Streamlit Dashboard
dashboard.py
Other components
- Yahoo Finance
Connections 19
- Yahoo Finance → Price Producer: provides prices
producer.py - Price Producer → Crypto Topic: publishes events
producer.py - Crypto Topic → Console Consumer: delivers events
consumer.py - Crypto Topic → Database Consumer: delivers events
db_consumer.py - Crypto Topic → Quality Consumer: delivers events
dq_consumer.py - Crypto Topic → Telemetry Consumer: delivers events
obs_consumer.py - Crypto Topic → Medallion Processor: delivers events
lakehouse_consumer.py - Database Consumer → Raw Price Store: writes records
db_consumer.py - Quality Consumer → Validated Store: writes valid records
dq_consumer.py - Telemetry Consumer → Monitored Store: writes records
obs_consumer.py - Telemetry Consumer → Pipeline Logs: logs telemetry
obs_consumer.py - Medallion Processor → Bronze Records: stores raw events
lakehouse_consumer.py - Medallion Processor → Silver Records: writes parsed records
lakehouse_consumer.py - Medallion Processor → Gold Aggregates: updates aggregates
lakehouse_consumer.py - Streamlit Dashboard → SQLite Database: queries data
dashboard.py - SQLite Database → Silver Records: contains table
- SQLite Database → Raw Price Store: contains table
- SQLite Database → Validated Store: contains table
- SQLite Database → Monitored Store: contains table