π Overview This project implements a real-time data processing and analytics architecture using a modern microservices stack powered by Docker. The goal is to collect, process, store, and visualize live data streams while enabling real-time monitoring through a web application.
π¦ Tech Stack
- Orchestration: Docker & Docker Compose - Workflow Scheduler: Apache Airflow - Data Ingestion: Python scripts (triggered by Airflow) - Message Broker: Apache Kafka (Zookeeper, Schema Registry, Control Center) - Stream Processing: Apache Spark (master + workers) - Database: Apache Cassandra - External API: Data source via HTTP - Real-Time Web App: Socket.IO + Web Dashboard (Vanilla Java Script)
π Architecture Description
-
Ingestion Airflow runs Python scripts that make HTTP requests to an external API to fetch live data. The fetched data is then pushed to Apache Kafka for real-time streaming.
-
Streaming Kafka acts as the data bus to stream the ingested data. Apache Spark Streaming processes the Kafka stream, transforming and aggregating data as needed.
-
Storage The processed data is stored in Apache Cassandra, a distributed NoSQL database optimized for high-speed writes and horizontal scalability.
-
Visualization A real-time web table to monitor ingestion on our system.
π³ Dockerized Services All components are containerized using Docker:
- airflow
- postgres (Airflow metadata database)
- kafka, zookeeper, schema-registry, control-center
- spark-master, spark-worker-1/2/3
- cassandra
- socket.io-server
- web-frontend
π >> Data Flow Summary >>>
External API β [Airflow] β [Kafka] β [Spark Streaming] β [Cassandra] β [Socket.IO] β Real-Time Dashboard
Check complete project's code on -- MASTER BRANCH --
