Kafka MicroServices with Spring Boot, Docker, Kubernetes, AI (Udemy.com)
Build event-driven Kafka microservices using Spring Boot, Docker, Kubernetes and AI (Agentic Engineering).
Created by: Pragmatic Code School
Last updated June 2026
Our take
Based on the ratings of 6,864 students, a sample of their written reviews and the syllabus, as the course stood in June 2026. No course pays to be reviewed.
Pragmatic Code School's course teaches Kafka to Java developers who already know Spring Boot. It starts with core concepts like topics, partitions, consumer groups and replication, then builds a library events producer and consumer. From there it adds PostgreSQL, testing, retries, transactions, Actuator health checks, Docker and Kubernetes. The course was last updated in June 2026, and its newer sections bring in GitHub Copilot, spec-driven development and AGENTS.md files. The older recordings are still in the curriculum, tagged [OLD], so the 220 lectures and 27 hours include some repeated ground.
Reviewers mostly like the teaching. They describe clear explanations, helpful diagrams and plenty of hands-on practice, and several call it a good first Kafka course for Spring developers. The complaints are consistent too. Some feel the AI material crowds out Kafka, and one reviewer found the AI-written code questionable. Others say the code is dated, with a manual acknowledgment example that no longer works on newer Spring Kafka, and a few found the Docker and Kafka setup steps too thin. One reviewer wanted more real failure scenarios.
It is a fair pick for Java developers who want Kafka inside a realistic Spring project rather than a theory tour. Of 6,864 ratings, the average is 4.7, and 48,101 students are enrolled. Treat the AI sections as optional, lean on the attached source code when a lecture drifts from current versions, and expect to look up some Docker setup details on your own. The requirements list basic Spring Boot knowledge, so total newcomers to Spring may want a primer first.
Pros
- Kafka internals taught with theory and hands-on demos, including partitions, offsets and consumer groups
- Covers retries, dead letter topics, transactions and Actuator health checks, not just a basic producer
- Source code attached to each lecture stays current even when the video lags behind
- Ends with Docker and Kubernetes deployment, so the apps leave the laptop
Cons
- Some reviewers say the AI and Copilot material takes over from the Kafka teaching
- Older lectures use deprecated code, such as a manual ack setup that fails on newer Spring Kafka
- Docker and Kafka setup steps are thin, so beginners may get stuck early
Really good course! Good explanations and a lot of material for practical work.
Labeled All Levels, but it assumes working Java, Spring Boot, REST and basic Git and command-line skills.
What you will learn
- Build Kafka Microservices with Spring Boot 4.x
- Master Kafka Concepts from Basics to Advanced Topics
- Use AI-Assisted Coding with Agentic Engineering Patterns
- Integrate Kafka Apps with PostgreSQL and Automated Testing
- Containerize and Deploy Kafka Microservices
Course content
43 sections · 220 lectures · 27 hours of video 3 articles
- 1Getting Started with Course 2 free previews2 lectures · 8 min
- 2Course Slides and Source Code2 lectures · 1 min
- 3Getting Started with Kafka 1 free preview3 lectures · 18 min
- 4Docker Installation1 lecture · 5 min
- 5Understanding Kafka Components and its Internals - (Theory + Hands On)15 lectures · 2.2 hours
- 6Application OverView1 lecture · 7 min
- 7AI Driven Development - Vibe Coding , Agentic Engineering 1 free preview2 lectures · 22 min
- 8Local Set Up : IDE1 lecture · 2 min
- 9Build LibraryEvents Kafka Producer MicroService21 lectures · 3.4 hours
- 10Unit and Integration Testing - Library Events producer API - AI Assisted6 lectures · 1 hour
- 11Documenting REST APIs with Swagger / OpenAPI 32 lectures · 17 min
- 12Agent.MD and Skill.md for Copilot - For Relevant Code Output4 lectures · 40 min
- 13Build LibraryEvents Kafka Consumer MicroService9 lectures · 1.3 hours
- 14Consumer Groups and Consumer Offset Management4 lectures · 33 min
- 15Saving the Library Events in DB6 lectures · 52 min
- 16Integration Testing using Embedded Kafka - Kafka Consumer1 lecture · 16 min
- 17Agents.MD for LibraryEvents Consumer1 lecture · 4 min
- 18Build CRUD endpoints to expose the LibraryEvent and BOOK data3 lectures · 16 min
- 19Kafka Producer : Exception & Error Handling7 lectures · 41 min
- 20Kafka Consumer : Exception & Error Handling (Retry and Recovery)12 lectures · 1.4 hours
- 21Kafka Consumer Timing Configurations3 lectures · 23 min
- 22Kafka Transactions : Exactly Once Semantics6 lectures · 46 min
- 23Kafka Health Checks and Monitoring using SpringBoot Actuator4 lectures · 25 min
- 24Package the apps as executable Jar3 lectures · 21 min
- 25Introduction to containers : Build and Run Containers using Docker 1 free preview7 lectures · 1.1 hours
- 26Running Spring Boot Apps on Kubernetes 1 free preview15 lectures · 2.2 hours
- 27Getting Started with Kafka [OLD] 2 free previews2 lectures · 9 min
- 28Understanding Kafka Components and its Internals - (Theory + Hands On) [OLD]12 lectures · 1.3 hours
- 29Application Overview [OLD] 1 free preview1 lecture · 3 min
- 30Source Code for this Course [OLD]1 lecture
- 31Build SpringBoot Kafka Producer - Hands On [OLD]13 lectures · 1.3 hours
- 32Integration Testing using JUnit5 - Hands On [OLD]5 lectures · 30 min
- 33Unit Testing using JUnit5- Hands On [OLD]4 lectures · 23 min
- 34Kafka Producer - Sending Message With Key - Hands On [OLD]1 lecture · 6 min
- 35Kafka Producer - Important Configurations [OLD]2 lectures · 5 min
- 36Build SpringBoot Kafka Consumer - Hands On [OLD]5 lectures · 28 min
- 37Consumer Groups and Consumer Offset Management- Hands On [OLD]4 lectures · 21 min
- 38Persisting Library Events in DB - Using H2 InMemory DataBase [OLD]4 lectures · 33 min
- 39Integration Testing using Embedded Kafka - Kafka Consumer [OLD]5 lectures · 32 min
- 40Error Handling, Retry and Recovery - Kafka Consumers [OLD]11 lectures · 1.5 hours
- 41Error Handling, Retry and Recovery - Kafka Producer [OLD]4 lectures · 18 min
- 42Kafka Security using SSL : Hands-On [OLD]3 lectures · 25 min
- 43Accessing SSL Secured Kafka Cluster using Spring Boot [OLD]2 lectures · 11 min
Who it is for
The instructor says it suits
- Java Developers who want to learn Kafka
- Spring Boot Developers building microservices
- Backend Developers interested in modern architecture
- Developers who want hands-on Docker and Kubernetes experience
- Developers interested in AI-assisted software development
What you need before you start
- Basic Java Programming Knowledge
- Basic Spring Boot Understanding
- Basic REST API Knowledge
- Basic Database Understanding
- Basic Command-Line and Git Knowledge
How it compares
Against the other 101 rated Udemy courses in Java Spring Framework on CourseDuck:
- Rating4.7 out of 5higher than 89% of them
- Reviews6,864#21 of 102 by number of reviews
- Length27.2 hourslonger than 77% of them
- Last updatedJune 2026more recently than 65% of them
Course Description
Build real-world, event-driven microservices using Apache Kafka, Spring Boot, Docker, Kubernetes, PostgreSQL, OpenAPI, Spring Boot Actuator, and AI-assisted development.
This course is designed to take you from the fundamentals of Kafka all the way to building, testing, securing, monitoring, containerizing, and deploying production-style Kafka microservices.
You will start by learning the core concepts of Apache Kafka, including topics, partitions, producers, consumers, offsets, consumer groups, brokers, replication, leader election, ISR, and retention. Then, you will move into hands-on development by building a complete Library Events Producer and Library Events Consumer microservice using Spring Boot and Spring Kafka.
Along the way, you will use modern AI-assisted coding workflows such as GitHub Copilot, spec-driven development, PRD documents, implementation plans, AGENTS . md, and reusable coding skills to build applications more efficiently and consistently.
By the end of this course, you will have built a complete Kafka-based microservices system that includes REST APIs, Kafka producer and consumer flows, PostgreSQL persistence, error handling, retries, recovery strategies, transactions, health checks, Docker images, and Kubernetes deployment.
Course Introduction
Welcome to this hands-on course on building event-driven Kafka microservices using Spring Boot, Docker, Kubernetes, and AI-assisted development.
In this course, we are going to start from the fundamentals of Apache Kafka and gradually move toward building a complete real-world microservices application. You will first learn the core Kafka concepts such as topics, partitions, producers, consumers, offsets, consumer groups, brokers, replication, leader election, and retention policies.
Once the Kafka foundation is clear, we will move into hands-on development by building a complete Library Events Producer and Library Events Consumer application using Spring Boot and Spring Kafka. The producer service will expose REST APIs and publish events to Kafka, while the consumer service will consume those events, process them, and persist the data into a PostgreSQL database.
This course also introduces a modern way of building software using AI-assisted development. We will use ideas like PRD documents, implementation plans, GitHub Copilot, AGENTS . md, and reusable AI skills to guide development in a more structured and productive way.
As we progress, we will cover important real-world engineering topics such as unit testing, integration testing, Embedded Kafka testing, Swagger/OpenAPI documentation, producer reliability, consumer retry and recovery, Dead Letter Topics, Kafka transactions, exactly-once semantics, health checks, monitoring, Docker containerization, and Kubernetes deployment.
By the end of this course, you will have built a complete production-style Kafka microservices system from scratch and gained the confidence to design, develop, test, monitor, package, containerize, and deploy Kafka-based applications in the real world.
Quick Breakdown by Section
Getting Started with the Course
Get a complete overview of what this course is about.
Understand the main goals and learning outcomes of the course.
Review the prerequisites needed before starting the course.
Set the right expectations for the tools, technologies, and hands-on projects covered.
Getting Started with Kafka
Understand what Apache Kafka is and why it is widely used in modern applications.
Learn how Kafka fits into event-driven architecture and microservices.
Explore core Kafka terminologies such as topics, partitions, brokers, producers, consumers, and client APIs.
Build a strong conceptual foundation before moving into hands-on Kafka development.
Docker Installation
Install Docker on your local machine.
Understand why Docker is useful for running Kafka and supporting services locally.
Prepare your development environment for the hands-on sections in the course.
Learners who already have Docker installed can quickly verify their setup and move forward.
Kafka Components and Internals
Learn how Kafka topics and partitions organize data for scalability.
Set up Kafka locally using KRaft and understand how Kafka works without ZooKeeper.
Create topics and produce/consume messages using Kafka CLI commands.
Understand how message keys affect partition selection and ordering.
Explore how Kafka producers and consumers work under the hood.
Learn about consumer offsets, consumer groups, rebalancing, commit logs, and retention policies.
Set up a local multi-broker Kafka cluster and understand replication, leader election, ISR, and fault tolerance.
Application Overview
Get introduced to the Library Inventory Service application.
Understand the producer and consumer microservices that will be built in the course.
See how REST APIs, Kafka, PostgreSQL, and Spring Boot fit together.
Establish the end-to-end architecture before starting the implementation.
AI-Driven Development and Agentic Engineering
Understand how software development is changing with AI coding assistants.
Learn the difference between vibe coding and agentic engineering.
Explore how AI can help with planning, coding, testing, and documentation.
Use AI-assisted workflows to build applications faster while still understanding the underlying concepts.
Local Setup: IDE
Install and configure IntelliJ IDEA.
Prepare the IDE for Spring Boot and Kafka development.
Set up the development environment needed for building both producer and consumer services.
Make sure the local machine is ready for hands-on coding.
Build Library Events Kafka Producer Microservice
Create the base Spring Boot project for the producer service.
Set up GitHub Copilot and use AI-assisted coding during development.
Create PRD and implementation plan documents before writing code.
Build the Library Event domain model.
Create REST endpoints to publish events to Kafka.
Use KafkaTemplate to send messages to Kafka.
Instructor Details
- 4.7 Rating
6,864 Reviews
Pragmatic Code School
Pragmatic code school's primary goal is to provide technical training through a practical approach.
The courses are completely hands-on oriented and cover different techniques and patterns that are used in enterprise development standards
Each course explains the concepts by building applications which will give an experience of building a real enterprise application.
-------------------------
COURSES ROADMAP: |
-------------------------
Course roadmap to enroll in the Kafka Courses.
For Experienced Kafka Developers:
1. Apache Kafka for Developers using Spring Boot[LatestEdition]
2. Kafka Streams API For Developers using Java/SpringBoot 3.X
3. Kafka for Developers - Data Contracts using Schema Registry
For Kafka Beginners:
1. Apache Kafka for Beginners - Learn Kafka by Hands-On
2. Apache Kafka for Developers using Spring Boot[LatestEdition]
3. Kafka Streams API For Developers using Java/SpringBoot 3.X
4. Kafka for Developers - Data Contracts using Schema Registry
Course roadmap to enroll in the Modern Java Courses.
1. Modern Java - Learn Java 8 features by coding it
2. Multithreading,Parallel & Asynchronous Coding in Modern Java
More courses by Pragmatic Code School
Modern Java: Mastering Features from Java 8 to Java 25 (2026)
4.5 (15,647 Reviews)
Provider: Udemy
Time: 15.8h
$12.99
Build Reactive MicroServices using Spring WebFlux/SpringBoot (2026)
4.3 (6,140 Reviews)
Provider: Udemy
Time: 8.4h
$10.99
Build RESTFUL APIs using Kotlin and Spring Boot (2026)
4.4 (1,485 Reviews)
Provider: Udemy
Time: 8.4h
$74.99
Apache Kafka for Beginners - Learn Kafka by Hands-On (2026)
4.6 (1,261 Reviews)
Provider: Udemy
Time: 4.9h
$11.99
More Java Spring Framework courses
Spring Boot Unit Testing with JUnit, Mockito and MockMvc (2026)
4.8 (4,042 Reviews)
Provider: Udemy
Time: 9.9h
$84.99
Spring WebFlux Masterclass: High-Performance Reactive APIs (2026)
4.8 (1,920 Reviews)
Provider: Udemy
Time: 13.3h
$84.99
Spring Security Zero to Master along with JWT,OAUTH2 (2026)
4.7 (11,228 Reviews)
Provider: Udemy
Time: 24.6h
$12.99
Domain Driven Design & Microservices for Architects (2023)
4.7 (3,982 Reviews)
Provider: Udemy
Time: 12.7h
$10.99
Microservices with Spring Boot, Spring Cloud, Docker & Kafka (2026)
4.7 (3,777 Reviews)
Provider: Udemy
Time: 42.1h
$94.99
Spring Boot Course: Learn Spring Boot & Build Web APIs (2025)
4.7 (3,377 Reviews)
Provider: Udemy
Time: 11.9h
$109.99
Reviews
By Даниил Харчев on 8/8/2026
The first impression was: "There is too much AI in course". I was surprised in several cases, when AI wrote truely speaking a bad code, i.e. handling validation logic in Controller layer or using ENUM with ADD/UPDATE instead of plain POST/PUT API methods, that already define what thing to do with resource. But when i scrolled down list of lessons, i've found topics tagged as "[OLD]". I found them more informative to me - i prefer learning writing code manually instead of blindly prompting AI agent, especially for simple tasks as "Rename the file" etc. Although the THEORY is real great, It gave to me completely clear idea of how the Kafka works under the hood. Thanks for such a great course.
By Anonymized User on 10/16/2025
The course does a great job at explaining the theory and everything, and it helped me learn a lot about using Kafka with Spring. However, the code feels a little dated at times. There are some deprecated annotations used here and there, but also some larger problems. For example, the manual acknowledgment configuration presented during a lecture no longer works in newer versions of Spring Kafka. I appreciate however that at least the code linked to each lecture is always up-to-date so if something did not work when I was following the lectures, I could just look it up in the attached code.
By Yaroslav I on 12/8/2024
Excellent course for learning event-driven microservices with Kafka and Spring Boot. The instructor is very responsive and actively answers questions, which makes the learning experience much better. I also appreciate that the course is updated with modern technologies and current best practices. The GitHub repository contains a lot of additional comprehensive materials and examples that are extremely useful for deeper understanding. The code is clean, well-structured, and easy to follow. You can clearly see that the instructor is a real professional with strong expertise in Kafka, Java, and microservices architecture. Highly recommended for anyone who wants practical, production-style experience with Kafka, Spring Boot, Docker, Kubernetes, and modern backend development.
By Jean Kpami on 10/31/2024
This course is very good for me. This definitely will help with my confidence when it comes to Kafka related assignments. Thanks. I was able to follow everything and I had to do some troubleshooting as I am a Windows user, but it all contributed to my problem solving skills. Great course. I am definitely looking out for some courses from this instructor.
By Sergey Deev on 2/27/2024
Хороший курс! Рекомендую. Дилип доступно объясняет. В курсе Кафка рассматривается со всех сторон для Java разработчика, будь то Spring Kafka, , безопасность, тесты и прочее. Многие знания сразу пригодились на практике. Из минусов: очень много материала не по теме Кафки. Не совсем понимаю зачем в таком курсе рассказывать про CRON или углубляться в объяснения Spring Data JPA.
By Rajesh Bhola on 6/26/2023
Thank You Dilip, The course covered many different topics related to Apache Kafka, which gave me a strong base understanding of it. The examples and exercises were practical and applicable to real-life situations, which helped me understand the concepts better when I tried them on my own computer. Overall, the course was really helpful in improving my understanding of Apache Kafka. Regards, Rajesh
By HBT-GmbH, Sebastian Lips on 2/24/2023
Grundsätzlich bin ich sehr zufrieden. Sehr umfangreich und gut für Einsteiger/Anfänger. Negativ - Halber Stern abgezogen, weil die Spring und Gradle Version etwas alt ist Wunsch - Ich würde gerne einen Kurs mit Spring Cloud Stream Kafka haben - Ein paar mehr Beispiele für Best Practice wie man Kafka konfiguriert. Z. B. Events sofort Speichern oder verarbeiten, oder welcher Werte bei "max.poll.records" im Consumer sinnvoll sein können Besonders Positiv - Die Aktualisierung der Kafka Commands "Setting Up Kafka 3.0.0"
By Kinshuk Arun Saraswat on 1/15/2022
This is a wonderful course, if you want to form a hands-on knowledge on spring-kafka then this is the course you do. The instructor has explained everything there is to explain in the course with real-life examples and configurations & code-changes that are required in a real-world coding situations. The best thing I liked about this course - the way instructor has put emphasis on unit and integration tests. Most of the instructors miss out on that.
By Moses Ongwenyi on 6/27/2021
I would like to start with saying a big thank you to the instructor for preparing such a great course. It covers all the necessary basics and with a hands on approach to being confident about Spring boot and apache kafka. The unit and integration tests makes the course complete. I honestly like the course, it does a 5 star.
By Jess Quintero Hernndez on 11/21/2020
Great course! Very helpful to understand better Kafka
By Gil Omer on 11/21/2020
+ Cover a lot of details. Really hands on course.
- The initial setup isn't covered enough, should have a FAQ and an active forum about technical issues with initial setup.
By Dilshadneemuth on 11/14/2020
very good introduction about kafka architecture. simple, clear & concise.
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 94 / 100










