Overview
This project demonstrates a real-time data pipeline that extracts weather data from the OpenWeatherMap API for select cities and streams it into an Apache Cassandra database using Apache Kafka and Confluent Cloud.
Tech Stack
1. Language : Python
2. Streaming Platform : Apache Kafka (via Confluent Cloud)
3. Data Source : OpenWeatherMap API
4. Database : Apache Cassandra
5. Environment Management : dotenv
Step by step
Producer script
I started by setting up the producer, which fetches and produces the data to Kafka.
Step 1: Import Dependencies & Setup Logging
The script begins by importing necessary libraries for HTTP requests, environment management, Kafka production, and logging.…