Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Real-World Data Engineering: Streaming & Cloud Projects
Rating: 4.0 out of 5(51 ratings)
1,065 students

Real-World Data Engineering: Streaming & Cloud Projects

Data engineering projects: stream with Kafka, Spark and Flink, orchestrate with Airflow and NiFi, query S3 with Athena
Last updated 11/2026
English
English [Auto],

What you'll learn

  • Build data engineering pipelines with Kafka, Spark, Airflow and NiFi that land results in parquet files, PostgreSQL and HDFS
  • Write Kafka producers in Python that send API data and CSV records to Kafka topics as JSON
  • Process Kafka streams with PySpark and Spark Structured Streaming using defined schemas
  • Calculate moving averages, volatility and top gainers and losers on near real-time crypto prices with Spark
  • Enrich streaming delivery events with weather and traffic data and compute delay metrics
  • Flag possible fraud with PyFlink using watermarks, streams keyed by user ID and a Haversine distance UDF
  • Orchestrate a daily batch pipeline with Apache Airflow DAGs and move files into HDFS with Apache NiFi
  • Join and aggregate sales and inventory data with Spark and write date-partitioned snappy parquet to HDFS
  • Query CSV data on Amazon S3 with Athena SQL and compute remaining useful life with window functions
  • Set up Kafka, Spark, Flink, Airflow, NiFi, Hadoop and PostgreSQL locally, including Debian on Windows Subsystem for Linux

Course content

5 sections • 73 lectures • 8h 1m total length
  • Course Introduction1:27
  • Intro to the project5:13

    Explore Market Flow Analytics, a streaming ETL pipeline built with Python, Kafka, and Spark, storing Parquet data in PostgreSQL and orchestrated by Airflow with Jira task tracking.

  • Kafka Download10:10

    Explore Apache Kafka as a high-throughput messaging queue for real-time data, with producers, brokers, consumers, topics and partitions, and Zookeeper, plus local installation steps.

  • Apache Spark - Part 14:18

    Explore Apache Spark, the in-memory, open-source big data framework that accelerates batch and real-time analytics using Python, Scala, R, and Java across Hadoop ecosystems.

  • Apache Spark - Part 24:26

    Configure Java home and environment variables, install Hadoop and Spark, set Hadoop Home and Spark Home, update path, then launch Spark shell and create an RDD with sc.parallelize.

  • JIRA Tasks5:11

    Define and manage 18 JIRA tasks for market flow analytics using a Kanban board, from researching CoinGecko API rate limits to designing architecture, schema, Kafka topics, and parquet storage.

  • Research and Decisions8:43

    Track near real-time cryptocurrency prices with a CoinGecko-driven pipeline, pushing data into Kafka and Spark, enriching with SMA, EMA, volatility, and top gainers and losers for traders and analysts.

  • Ingest data to Kafka - Python DAG9:09

    Ingest crypto price data from the CoinGecko API into Kafka using a Python DAG, configuring a Kafka producer, JSON encoding, 30-second requests, and filtering to send only desired fields.

  • Ingest data to Kafka - Running The Code3:17

    Start the Kafka broker, create the crypto prices topic, and run the code to stream filtered crypto data from CoinGecko into Kafka, verifying 18 records with timestamps.

  • Ingest data to Kafka - VS Code Set Up8:38

    Set up Visual Studio Code with Python extension, define market flow analysis project structure, and initialize a virtual environment with git. Create crypto dag pi script and test hello world.

  • Kafka Consumer - Part 19:35

    Configure a Kafka consumer in Spark Streaming with PySpark to decode JSON messages, apply coin schemas, flatten data, and write to Parquet as the ingestion progresses.

  • Kafka Consumer - Part 25:03

    Run a zookeeper and kafka server to push crypto prices to a topic, then read with a spark-submit consumer and parse to parquet for percentage change and gainers and losers.

  • Crypto Analytics - Part 15:42

    Analyze real-time crypto data using simple moving average, exponential moving average, and volatility to assess stability, trend, and risk for dashboards, alerts, and trading bots.

  • Crypto Analytics - Part 28:26

    Learn to build a spark streaming analytics script that reads parquet files from kafka, computes sma, ema, and price changes using window and lag, and updates a PostgreSQL table.

  • Crypto Analytics - Part 34:23

    Compute price changes over 1 and 5 minutes, derive sma and ema, identify top gainers and losers with window functions, and store results in three postgres tables via spark.

  • PostgreSQL - The Final Mile of the Data Journey - Part 18:07

    Install PostgreSQL and PgAdmin 4, configure environment paths, and connect Python via JDBC to create the crypto_metrics database with crypto_table and top five gainers and top five losers tables.

  • PostgreSQL - The Final Mile of the Data Journey - Part 24:23

    Connect a Python Spark job to PostgreSQL via JDBC, configuring the URL, user, password, and driver, and manage writes to main, gainers, and losers tables with append or overwrite.

  • PostgreSQL - The Final Mile of the Data Journey - Part 39:55

    Start Zookeeper and Kafka, create topics, stream crypto data to Kafka, convert to parquet via Spark streaming, run analytics with analytics.py, and write results to PostgreSQL, updating gainers and losers.

  • Downloadable Project Files

Requirements

  • Working knowledge of Python, such as functions, loops and reading CSV files
  • Basic SQL, such as SELECT queries, joins and GROUP BY
  • A computer that can run Java, Kafka and Spark (the lessons use Windows, plus Debian on WSL for FlinkGuard and ShelfSync), and an AWS account for RULS3nse

Description

Real-World Data Engineering is a set of data engineering projects where each one follows data from its source, through the tools that process it, to its results. You stream crypto prices from the CoinGecko API through Apache Kafka into PySpark and PostgreSQL, enrich delivery events with weather and traffic data, flag possible fraud with Apache Flink, schedule a retail sales pipeline with Airflow, NiFi, Spark and HDFS, and query engine sensor data on AWS with Amazon S3 and Athena. Every project ends with the project files to download.

Here is what each project builds.

MarketFlow Analytics: crypto prices with Kafka, Spark and PostgreSQL

  • A Python producer pulls near real-time prices from the CoinGecko API into a Kafka topic

  • A PySpark streaming consumer decodes the JSON messages with a coin schema

  • Spark computes simple and exponential moving averages, volatility, price changes over one and five minutes, and the top gainers and losers

  • Spark writes the streamed prices to parquet files, and the data is loaded into PostgreSQL over JDBC

  • The work is planned first as JIRA tasks on a Kanban board

Delay Detect: delivery metrics with Spark Structured Streaming

  • A Kafka producer reads delivery records from a CSV file with pandas and streams them to Kafka as JSON messages

  • Spark Structured Streaming reads the deliveries topic, converts time fields to timestamps and joins weather and traffic data

  • New columns hold a late-delivery flag, delay minutes, a delay category and a driver fault percentage, and the enriched data is written to parquet

FlinkGuard: fraud alerts with Apache Flink and PyFlink

  • Kafka and Flink run on Debian inside Windows Subsystem for Linux (WSL), connected through the Flink Kafka connector

  • A PyFlink job parses JSON events, applies a watermark strategy and keys the stream by user ID for stateful processing

  • A Python UDF measures distance with the Haversine formula, the job flags location jumps over 500 km and high-amount spikes as fraud alerts, and you check them in the job logs

ShelfSync: a scheduled retail pipeline with Airflow, NiFi, Spark and HDFS

  • A daily Airflow DAG generates simulated sales and inventory data for ten stores and fifty items

  • NiFi moves the files into HDFS with ListFile, FetchFile and PutHDFS, and its data provenance shows where each file went

  • Spark joins sales and inventory on date, store and item, computes total sales, quantity and stock per day, and writes snappy parquet partitioned by date

  • NiFi brings the results back from HDFS to local storage, where you review them in a parquet viewer

  • You install and configure Airflow, NiFi and Hadoop HDFS yourself on Debian in WSL

RULS3nse: predictive maintenance with Amazon S3 and Athena

  • You set up an AWS account with MFA and IAM, then upload the CMAPSS engine sensor data (FD001) to an S3 bucket with raw and output folders

  • Athena reads the CSV through an external table in the Glue Data Catalog, and SQL window functions compute remaining useful life (RUL) per engine, with rolling averages and maximums over five cycles

  • The results are saved back to S3 as snappy parquet and validated in Athena

The course fits learners who already write Python and basic SQL and want to see how streaming tools, batch orchestration and cloud querying work in complete pipelines.

Who this course is for:

  • Python and SQL learners who want hands-on practice building data engineering pipelines end to end
  • Data analysts moving toward data engineering who want to work with Kafka, Spark and Airflow
  • Aspiring data engineers who want streaming projects with Kafka, Spark Structured Streaming and Apache Flink
  • Learners who want to query data on Amazon S3 with Athena and also build local batch pipelines with HDFS and NiFi