Course Overview
Learn Apache Kafka the way data and AI engineers use it: hands-on, in Java, on a real multi-broker cluster.
Why learn Kafka, and how to learn it
Apache Kafka is the backbone of real-time data. It moves events between services, feeds data pipelines, and keeps machine learning models and AI applications supplied with fresh data instead of yesterday's batch. Many engineers use Kafka for years without knowing what happens inside it. They copy a configuration, hope for the best, and struggle when messages are duplicated, delayed or lost.
This course takes the opposite approach. You will run a 3-broker Kafka cluster in Docker on your own computer, write Java producers and consumers, and then break things on purpose. You will stop a broker, trigger a rebalance, send a bad message and replay old events, so you understand why Kafka behaves the way it does. Concepts come first, then a lab proves them.
What this course covers
Batch vs stream processing, and why Kafka sits at the center of real-time data architecture
Setting up a 3-broker Kafka cluster with Docker, and working with the Kafka command-line tools
Topics, partitions, offsets and how Kafka stores and orders data
KRaft, the controller, replication, leaders, followers and the in-sync replica set (ISR)
Log segments, retention policies and log compaction
Failure labs: what happens when a leader broker or a follower broker goes down
The Java Producer API: keys, serialization, delivery callbacks, poll() and flush()
Partitioning strategies, including custom partitioners
Reliable delivery: retries, idempotent producers, acks and min in sync replicas
Producer tuning with linger ms, batch size and compression
The Java Consumer API: the poll loop, group id, auto offset reset and heartbeats
Consumer groups, group coordination and scaling consumers with partitions
Rebalancing: eager vs cooperative-sticky assignment
Safe offset management, manual commits and dead-letter topics for poison messages
Reprocessing data by resetting consumer group offsets, and by building a replay tool that seeks to a point in time
A capstone project: build a real-time order pipeline with two producers, an order loader with a dead-letter topic, a sales aggregator and a replay tool, then test it against crashes and broker failures
What you will take away
A clear mental model of how Kafka works internally, not just how to call its API
The ability to explain partitions, offsets, replication and the ISR in an interview or a design review
A working 3-broker Kafka lab that you can reuse for your own experiments
Production-minded Java producers that deliver messages reliably and efficiently
Java consumers that scale with consumer groups and handle failures and bad messages safely
The skill to diagnose common problems such as consumer lag, rebalances, duplicates and timeouts
The confidence to reprocess historical events when a bug or a new requirement demands it
A strong foundation for building real-time pipelines that feed analytics, machine learning and AI applications
A working, tested real-time pipeline that you built yourself, which you can show in your portfolio or discuss in interviews
Is this course for you?
You need basic Java and some comfort with a terminal. You do not need any Kafka, Docker or Python experience, because every setup step is explained.
This course focuses on core Kafka: brokers, topics, producers and consumers. Kafka Streams, KSQL DB, Kafka Connect, Schema Registry and security are not covered.
If you want to understand Kafka well enough to build with it, fix it when it misbehaves and explain your design choices, this course is for you. Enroll now and start with a running cluster in your first chapter.
FAQ
FAQ area empty
Course curriculum
Chương 1 Before you start 4 bài · 15 phút
Chương 2 Introduction 7 bài · 2 giờ 13 phút
- Introduction to Stream Processing Học thử 7:40
- Introduction to Kafka Học thử 11:15
- How Kafka Works - Core Concept Học thử 11:24
-
How Kafka Scales to Millions of Transactions 15:33
-
Introduction to Kafka Components 16:50
-
Setup Your Kafka Environment 38:59
-
Kafka Command Line tools 31:38
Chương 3 Kafka Architecture Deep Dive 8 bài · 2 giờ 39 phút
-
Topics Partitions & Offsets 25:10
-
Kafka Controller and KRaft 20:18
-
Replication and the ISR List 17:34
-
Segments Retention and Compaction 17:57
-
Hands On to work with partitions and segments 22:12
-
Leader Election vs. Follower Loss 23:30
-
Configuring Log Compaction 32:15
-
Kafka Architecture - MCQ
Chương 4 Kafka Producer API and Developing Producers 9 bài · 4 giờ 16 phút
-
Setup and Test Your IDE for Development.mp4 14:44
-
Producer API - Creating your first producer 1:02:04
-
Producer Internals - How Producer Works Behind the Scenes 25:47
-
Partitioning Strategy - Default Behavior & Building a Custom Partition 34:58
-
Producer Delivery Guarantee - Retry Mechanism and Idempotence 31:49
-
Delivery Semantics & Developing Idempotent Producers 34:18
-
Tuning Producer Throughput and Durability Pitfalls 31:05
-
Benchmarking your Kafka Producer Performance 21:05
-
Kafka Producer - MCQ
Chương 5 Kafka Consumer API and Developing Consumers 13 bài · 6 giờ 28 phút
-
Consumer API - You First Consumer and Poll Loop 1:01:10
-
Consumer Internals - What Happens Inside the Consumer Loop 25:59
-
Consumer Groups - How Parallel Processing Happens 13:33
-
Running and Monitoring Consumer Groups 29:01
-
Internals of Kafka Consumer Group Coordination 16:29
-
Kafka Consumer Group Rebalancing 22:42
-
Kafka Consumer Rebalancing in Action - Hands On 33:42
-
Kafka Consumer Offset Management 41:44
-
Kafka Consumer Handling Poison Pill and DLQ 49:55
-
Kafka Consumer Reading Prom the Past Positions 21:45
-
Resetting Kafka Consumer Offset Positions 15:53
-
Replay Consumer to Process a Specific Window of Events 55:55
-
Consumers & Consumer Groups - MCQ
Chương 6 Legacy - Kafka Ecosystem - The Big Picture 7 bài · 1 giờ 13 phút
-
What is Apache Kafka 10:00
-
Apache Kafka Core Concepts 17:49
-
Kafka Connect Core Concepts 20:52
-
Kafka Streams Core Concepts 13:36
-
Kafka SQL Core Concepts 4:37
-
When to use What? 6:29
-
Source Code and Other Resources
Chương 7 Legacy - Apache Kafka - Getting Started 6 bài · 39 phút
-
Kafka Quick Start 1:21
-
Installing Single Node Kafka Cluster 9:18
-
Using Command-Line Producer and Consumer 6:33
-
Installing a Multi-Node Kafka Cluster 7:30
-
Using Consumer Groups 8:04
-
Configuring your development IDE 6:10
Chương 8 Legacy - Apache Kafka - Storage Architecture 7 bài · 24 phút
-
Understanding Kafka Storage Architecture 3:10
-
Kafka Topics and Partitions 6:00
-
Kafka Topic Replication 2:21
-
Partition Leaders and Followers 2:04
-
Kafka Log Segments 2:49
-
Kafka Message Offsets 2:20
-
Kafka Message Index 4:49
Chương 9 Legacy - Apache Kafka - Cluster Architecture 8 bài · 37 phút
-
Understanding Kafka Cluster 2:38
-
Zookeeper in Kafka 3:18
-
Kafka Cluster Controller 4:24
-
Partition Allocation and Fault Tolerance 10:15
-
Partition Leader Vs Partition Follower 4:53
-
The ISR List - In Sync Replica 4:34
-
Committed Vs Un-Committed Records 3:40
-
Minimum ISR List 2:55
Chương 10 Legacy - Kafka Producer Internals 9 bài · 30 phút
-
Introducing Kafka Producers 1:22
-
Creating your first Kafka Producer 10:42
-
Producer Record 2:29
-
Producer Serializer 2:12
-
Producer Partitioner 4:11
-
Message Timestamp 3:16
-
Producer Message Buffer 2:40
-
Producer IO Thread and Retires 1:13
-
Summarizing Producer Internals 1:58
Chương 11 Legacy - Advanced Kafka Producers 6 bài · 37 phút
-
Horizontal Vs. Vertical Scalability 3:10
-
Producer Multi-Threading Scenario 1:52
-
Creating Multi-Threaded Kafka Producer 11:46
-
At Least Once Vs. At Most Once 3:41
-
Exactly Once - Producer Idempotence 3:32
-
Transactions in Kafka Producer 12:50
Chương 12 Legacy - Types and Serialization 3 bài · 20 phút
-
Working with Types and Serialization 3:22
-
Using JSON Schema 8:38
-
Using AVRO Schema 7:38
Chương 13 Legacy - Micro Project - Summing Up the Producer 2 bài · 20 phút
-
POS Simulator using JSON Serialized Invoices 9:42
-
POS Simulator using AVRO Serialized Invoices 10:28
Chương 14 Legacy - Kafka Consumers 4 bài · 22 phút
-
Introducing Kafka Consumers 1:28
-
Creating Kafka Consume - Transform - Produce Pipeline 11:24
-
Consumer Group and Scalability 5:02
-
Consumer Positions - Current Offset Vs. Committed Offset 4:25
Requirment
-
You must be familiar with Java Programming
-
A Windows or macOS computer with 8 GB RAM or more (16 GB recommended)
Outcomes
-
Explain how Kafka stores and orders data with topics, partitions and offsets, and how one topic is spread across several brokers
-
Describe how KRaft, replication, leaders, followers and the ISR keep a Kafka cluster running when a broker fails
-
Run a 3-broker Kafka cluster in Docker, use the Kafka CLI tools, and configure log segments, retention and compaction
-
Build Java producers with keys, custom partitioning, idempotent delivery, and tuned batching, compression and acks settings
-
Build Java consumers with consumer groups, cooperative rebalancing, safe offset commits and a dead-letter topic for bad messages
-
Reprocess past events by resetting consumer group offsets, or by writing a replay tool that seeks to a point in time
0 Student
1 Course
0 review