Apache Kafka for Event-Driven Spring Boot Microservices (Udemy.com)
Learn to build and test event-driven Spring Boot Microservices using Apache Kafka.
Created by: Sergey Kargopolov
Last updated September 2026
What you will learn
- Apache Kafka for Microservices
- Create Event-Driven Microservices
- Work with Kafka CLI
- Work with Kafka Consumers in Java
- Run Multiple Kafka Servers in a cluster
- Work with Kafka Producers in Java
- Handle and recover from errors
- Perform Integration Testing of Kafka Producer and Consumer
- Implement Saga design pattern
- Configure Kafka Producer to be Idempotent
- Learn to work with Transactions in Apache Kafka
- Configure Kafka Consumer to be Idempotent
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 92 / 100
Course Description
In this video course, you will learn how to use Apache Kafka to build Event-Driven Spring Boot Microservices.
This course is designed for beginners and will start from the basics of Microservices and Apache Kafka.
You will learn:
- What is Apache Kafka, and how to work with it using Command Line Interface(CLI),
You will learn how to use Kafka CLI to :
- Start multiple Apache Kafka servers in a cluster,
- Work with Kafka Topics,
- Work with Kafka Producer to produce messages,
- Work with Kafka Consumer to consume messages.
You will learn how to create a basic Spring Boot Microservice that acts as a Kafka Producer. While working with this Microservice you will learn:
- How to send Kafka messages synchronously,
- How to send Kafka messages asynchronously,
- How to work with Acknowledgements, Retries, Delivery and Request timeouts.
You will also learn how to create Kafka Consumer Spring Boot Microservice. While creating Consumer Microservice you will learn to:
- Consume messages from Kafka topic,
- Handle and recover from errors,
- Work with Kafka Dead Letter Topic(DLT),
- Configure multiple consumer microservices to work as a group(Consumer Groups).
- Write Integration tests for Kafka Consumer and Kafka Producer.
- Learn how to implement the Saga design pattern.
All from the very beginning, to help you learn how to create Event-Driven Microservices with Apache Kafka and Spring Boot.
Instructor Details
- 4.6 Rating
2,971 Reviews
Sergey Kargopolov
I have more than 20 years of experience in building different types of software. I started my career as an Entrepreneur with award-winning web projects and currently, I’m a Full Stack Developer with a passion for teaching beginner programmers to reach their goals and assisting them in the development of their applications.
Follow me on Twitter, LinkedIn or Instagram to stay in touch.
Happy learning!
More courses by Sergey Kargopolov
Spring Boot Microservices and Spring Cloud. Build & Deploy. (2026)
4.7 (9,296 Reviews)
Provider: Udemy
Time: 25.8h
$74.99
RESTful Web Services with Spring Framework - A quick start (2024)
4.6 (4,822 Reviews)
Provider: Udemy
Time: 3h
Free
RESTful Web Services, Java, Spring Boot, Spring MVC and JPA (2026)
4.7 (4,325 Reviews)
Provider: Udemy
Time: 25.1h
$79.99
Testing Java: JUnit 5, Mockito, Testcontainers, REST Assured (2026)
4.7 (2,514 Reviews)
Provider: Udemy
Time: 10.7h
$84.99
Event-Driven Microservices, CQRS, SAGA, Axon 4, Spring Boot (2026)
4.4 (2,441 Reviews)
Provider: Udemy
Time: 9.5h
$79.99
More Software Development courses
Build Web Apps with Nuxt.js 3: Master TypeScript & API [New] (2026)
4.9 (635 Reviews)
Provider: Udemy
Time: 6.7h
$19.99
70+ JavaScript Challenges: Data Structures & Algorithms (2023)
4.8 (748 Reviews)
Provider: Udemy
Time: 12.5h
$19.99
AI Agents Crash Course: Build with Python & OpenAI (2025)
4.8 (652 Reviews)
Provider: Udemy
Time: 3.4h
$19.99
Elasticsearch 9 & Spring Boot: Search Engine Masterclass (2026)
4.8 (225 Reviews)
Provider: Udemy
Time: 14.3h
$19.99
Introduction to AI and Machine Learning with Go (Golang) (2025)
4.8 (133 Reviews)
Provider: Udemy
Time: 36.2h
$19.99
Reviews
By Daniel Martínez Salvador on 8/12/2026
Great course for getting hands-on with Kafka and event-driven microservices. I really enjoyed this course. The pace is well-balanced and progressive, which made it very approachable even without prior Kafka experience — each section builds naturally on the previous one. I especially liked the sections on the Saga design pattern. Beyond that, it does a great job covering the practical side of building with Kafka — setting up a multi-broker cluster, working with producers and consumers in Java, and handling real-world concerns like idempotency and error recovery. A solid mix of theory and hands-on practice for anyone getting started with event-driven microservices.
By Clark Neilsen Diza on 7/30/2026
Haven't finished the tutorial yet. I'm already halfway there and with Spring Boot background, I tend to skip a lot and just proceeded to use Kafka. All I needed was understand Kafka theoretically and it's been a huge help explaining to me how it works.
By Nilkanth Gopal on 7/26/2026
Excellent course! The explanations are clear, the hands-on examples are practical, and the content is well structured. It met my expectations and gave me a good understanding of Apache Kafka with Spring Boot Microservices. Highly recommended!
By Wagner Otto Wutzke on 7/20/2026
Sergey explains the topics very clearly and easy to understand. His methodolgy with hands-on exercises makes the learning contents get deep-rooted. I also liked the pace the topics are presented: simply short and direct. This made the learning process to me very objective and effective. For me, the course has been perfect.
By Ankit Singh on 7/2/2026
Very good course. Feedback to the creator : Please include details on Consumer Lag and production issue scenarios, what actions to take in case of High CG lag, would help a lot. Thanks.
By Amrit Atmajit on 6/12/2026
The teaching style of Apache Kafka with a Spring Boot application is really good. I had a proper understanding of the Kafka-Spring Boot integration. A couple of things to be improved: 1. The source code should be hosted on GitHub 2. There should be complete notes covering some important points. This helps the students to revise.
By Ayush Waghe on 6/8/2026
Amazing course. All concepts explained properly. Also only explained what is needed without gettting into too much deep or boring students with jargons and all. Presentations are also good and easy to understand
By Anonymized User on 5/5/2026
Excellent course for beginners/experienced persons
By Nikos Alveniotis on 3/20/2026
I believe that the course is very helpful understanding the concepts of Kafka. The tutor is very analytical and explains everything thoroughly, which helps understanding how Kafka works.
By Ilker Can Cicek on 12/19/2025
Transactional Outbox pattern could be included in the course. Section 19 has very repetitive content. Section 16 leaves the impression that database operations and Kafka exchanges can be run in a single transaction together, but Kafka does not support distributed transactions / 2PC protocol. Core Kafka topics are otherwise introduced thoroughly. Idempotent producers and consumers are explained very well.







![Build Web Apps with Nuxt.js 3: Master TypeScript & API [New]](/programming/software-development/images/6457785_5adc_4.jpg?v=1789443959)




