How wbatchayon/data_stream_flow works
Data Stream Flow is an Airflow-orchestrated data pipeline, with a Flask API for triggering and checking pipeline runs. The documented path covers remote CSV ingestion and validation, Pandas/Spark processing, streaming and generated records, then object storage and search indexing. Kafka, MinIO, Elasticsearch, Prometheus, and Grafana are external services or integrations. The DAG excerpt and source index establish its module wiring; unsampled DAG sections limit certainty about task ordering. Monitoring is documented and represented in the tree, but its runtime wiring is not shown.
Main entry points: data_pipeline_dag.py Pipeline DAG · process_with_pandas_and_spark.py Pandas And Spark · spark_streaming_2.py Kafka Stream Consumer · store_to_minio.py MinIO Storage
Components 19
Pipeline Interface
- Trigger API
src/scripts/api/api.py
Orchestration
- Airflow Service
- Pipeline DAG
src/dags/data_pipeline_dag.py
Data Pipeline Stages
- CSV Ingestion
src/scripts/ingest/load_remote_csv.py - Pandas And Spark
src/scripts/process/process_with_pandas_and_spark.py - CSV Stream Prep
src/scripts/stream/spark_streaming_1.py - Data Generator
src/scripts/stream/python_data_generator.py
Storage And Streaming
- Kafka Publisher
src/scripts/stream/publish_to_kafka.py - Kafka Stream Consumer
src/scripts/stream/spark_streaming_2.py - MinIO Storage
src/scripts/storage/store_to_minio.py - Elasticsearch Indexer
src/scripts/storage/index_to_elasticsearch.py
Monitoring
- Prometheus Setup
monitoring/prometheus.yml - Grafana Setup
monitoring/grafana
Other components
- Pipeline Operator
- Kafka
- MinIO Object Store
- Elasticsearch
- Prometheus
- Grafana
Connections 21
- Pipeline Operator → Trigger API: triggers or checks
src/scripts/api/api.py - Trigger API → Airflow Service: calls REST API
src/scripts/api/api.py - Pipeline DAG → Airflow Service: runs as DAG
src/dags/data_pipeline_dag.py - Pipeline DAG → CSV Ingestion: invokes ingestion
src/dags/data_pipeline_dag.py - Pipeline DAG → Pandas And Spark: invokes processing
src/dags/data_pipeline_dag.py - Pipeline DAG → CSV Stream Prep: invokes stream prep
src/dags/data_pipeline_dag.py - Pipeline DAG → Data Generator: invokes generator
src/dags/data_pipeline_dag.py - Pipeline DAG → Kafka Publisher: invokes publisher
src/dags/data_pipeline_dag.py - Pipeline DAG → Kafka Stream Consumer: invokes consumer
src/dags/data_pipeline_dag.py - Pipeline DAG → MinIO Storage: invokes storage
src/dags/data_pipeline_dag.py - Pipeline DAG → Elasticsearch Indexer: invokes indexing
src/dags/data_pipeline_dag.py - CSV Ingestion → Pandas And Spark: CSV input
- Pandas And Spark → CSV Stream Prep: processed CSV
- Pandas And Spark → Data Generator: processed CSV
- Kafka Publisher → Kafka: publishes records
src/scripts/stream/publish_to_kafka.py - Kafka → Kafka Stream Consumer: provides topic stream
src/scripts/stream/spark_streaming_2.py - Kafka Stream Consumer → MinIO Storage: writes output files
- MinIO Storage → MinIO Object Store: uploads objects
src/scripts/storage/store_to_minio.py - Elasticsearch Indexer → Elasticsearch: indexes documents
src/scripts/storage/index_to_elasticsearch.py - Prometheus Setup → Prometheus: configures
- Grafana Setup → Grafana: configures