How rakeshraja06/spa_9_urbancity works
UrbanPulse is a smart-city telemetry streaming and analytics platform. Its workflow begins with independent bus, traffic, air-quality, and meter producers publishing to Kafka; stream consumers enrich bus GPS, isolate priority traffic handling, validate bad payloads, and drive Flink incident alerts and Spark ward-energy and health-advisory outputs. The README documents capabilities beyond the excerpts, including the DLQ and Kafka cluster; those links are shown from documentation where appropriate. Source excerpts do not establish every runtime topic subscription, so unsupported wiring is omitted.
Main entry points: docker-compose.yml Kafka Topics · kafka_streams_bus_join.py Bus Route Enrichment · health_advisory_sql.py Health Advisory Analytics · bus_gps_producer.py Bus GPS Producer
Components 14
Telemetry Ingestion
- Bus GPS Producer
Source_code/PRODUCER/bus_gps_producer.py - Traffic Producer
Source_code/PRODUCER/traffic_signals_producer.py - Air Quality Producer
Source_code/PRODUCER/air_quality_producer.py - Smart Meter Producer
Source_code/PRODUCER/smart_meter_producer.py
Kafka Platform
- Kafka Topics
Source_code/KAFKA/docker-compose.yml - Bus Route Enrichment
Source_code/KAFKA/kafka_streams_bus_join.py - Route Schedule
Source_code/KAFKA/route_schedule.csv - DLQ Validator
Source_code/KAFKA/dlq_validator.py
Real-Time Processing
- Priority Consumers
Source_code/CONSUMER/traffic_priority_consumer.py - Incident Detection
Source_code/FLINK/urbanpulse_alerts.py
Urban Analytics
- Ward Energy Analytics
Source_code/SPARK/ward_energy_streaming.py - Health Advisory Analytics
Source_code/SPARK/health_advisory_sql.py - Zone Profile
Source_code/SPARK/zone_profile.csv
Other components
- City Operations
Connections 13
- Bus GPS Producer → Kafka Topics: publishes GPS
Source_code/PRODUCER/bus_gps_producer.py - Traffic Producer → Kafka Topics: publishes signals
README.md - Air Quality Producer → Kafka Topics: publishes AQI
Source_code/PRODUCER/air_quality_producer.py - Smart Meter Producer → Kafka Topics: publishes readings
README.md - Bus Route Enrichment → Kafka Topics: reads and writes
Source_code/KAFKA/kafka_streams_bus_join.py - Bus Route Enrichment → Route Schedule: loads lookup
Source_code/KAFKA/kafka_streams_bus_join.py - Priority Consumers → Kafka Topics: consumes signals
- DLQ Validator → Kafka Topics: validates messages
README.md - Incident Detection → Kafka Topics: detects incidents
README.md - Ward Energy Analytics → Kafka Topics: reads and outputs
Source_code/SPARK/ward_energy_streaming.py - Health Advisory Analytics → Kafka Topics: reads and publishes
Source_code/SPARK/health_advisory_sql.py - Health Advisory Analytics → Zone Profile: joins profile
Source_code/SPARK/health_advisory_sql.py - Kafka Topics → City Operations: supports city response
README.md