Packt
Apache Kafka for Developers using Spring Boot

Gain next-level skills with Coursera Plus for $199 (regularly $399). Save now.

Packt

Apache Kafka for Developers using Spring Boot

Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace
Gain insight into a topic and learn the fundamentals.
Intermediate level

Recommended experience

1 week to complete
at 10 hours a week
Flexible schedule
Learn at your own pace

What you'll learn

  • Learn how to configure Kafka clusters and set up producers and consumers in Spring Boot applications.

  • Gain expertise in testing Kafka applications using JUnit5 and Embedded Kafka for real-world scenarios.

  • Master error handling and retry mechanisms in both Kafka producers and consumers.

  • Understand Kafka security principles and how to configure SSL for secure communication.

Details to know

Shareable certificate

Add to your LinkedIn profile

Recently updated!

January 2026

Assessments

18 assignments

Taught in English

See how employees at top companies are mastering in-demand skills

 logos of Petrobras, TATA, Danone, Capgemini, P&G and L'Oreal

There are 17 modules in this course

In this module, we will introduce the course’s core objectives and what you can expect to achieve by the end of your journey. We’ll also cover the necessary prerequisites for the course and ensure you're set up to dive into the world of Kafka and Spring Boot.

What's included

2 videos1 reading

In this module, we will provide an introduction to Apache Kafka, exploring its origins and how it fits within data pipelines. You’ll also get familiar with essential Kafka terminology and its client APIs that are fundamental for messaging and stream processing.

What's included

2 videos1 assignment

In this module, we will dive deep into Kafka's internal components, such as topics, partitions, and replication. You’ll learn how to set up a Kafka broker environment locally and explore Kafka’s distributed architecture for high-throughput stream processing.

What's included

12 videos1 assignment

In this module, we will introduce the Library Inventory application that serves as the basis for Kafka integration throughout the course. You’ll learn how Kafka is leveraged to streamline and manage events within the system.

What's included

1 video1 assignment

In this module, we will guide you through building a Kafka producer using Spring Boot. You’ll start by setting up the base project and then proceed to develop the logic for producing messages, including using KafkaTemplate for message publishing.

What's included

13 videos1 assignment

In this module, we will explore the importance of integration testing for Kafka applications. You’ll learn how to write and configure tests for the Kafka producer and consumer, leveraging Embedded Kafka for a reliable and isolated testing environment.

What's included

5 videos1 assignment

In this module, we will cover the essentials of unit testing for Spring Boot applications. You’ll learn how to write unit tests for your REST APIs and implement error handling for invalid requests, ensuring robust error management.

What's included

4 videos1 assignment

In this module, we will focus on creating a PUT endpoint to update Library Events and send messages with specific keys. You’ll understand how key-based partitioning works in Kafka and its importance for data distribution.

What's included

1 video1 assignment

In this module, we will explore Kafka producer configurations that impact performance and reliability. You’ll learn how to adjust important settings like retry behavior to handle network issues or broker failures.

What's included

2 videos1 assignment

In this module, we will focus on setting up a Spring Boot Kafka consumer. You will configure Kafka consumers with Spring profiles, and use the @KafkaListener annotation to handle incoming Kafka messages.

What's included

5 videos1 assignment

In this module, we will explore how Kafka consumer groups operate, and demonstrate the effects of rebalancing on message consumption. You’ll learn both default and manual offset management strategies in Spring Kafka, and configure concurrent consumers for parallel message processing to optimize your Kafka consumer setup.

What's included

4 videos1 assignment

In this module, we will set up an H2 in-memory database to persist Library Events. You will also learn to create JPA entities for LibraryEvent and Book, and develop the service layer to handle adding and modifying events, ensuring smooth database interactions for Library Events.

What's included

4 videos1 assignment

In this module, we will configure Embedded Kafka to test consumer behavior in isolation. You will create integration tests to validate both new and updated Library Events, as well as handling error scenarios such as invalid updates. Additionally, we'll explore using TestContainers for database-driven integration tests.

What's included

5 videos1 assignment

In this module, we will dive into Kafka consumer error handling, building custom error handlers, and configuring retry policies with exponential backoff. You will also implement recovery strategies such as using retry topics, dead-letter topics, and saving failed messages to databases for manual intervention and further processing.

What's included

11 videos1 assignment

In this module, we will focus on error handling and retry strategies for Kafka producers. You will learn how to configure retries when Kafka brokers are unavailable or when replication requirements are violated, and how to manage failed messages for recovery.

What's included

4 videos1 assignment

In this module, we will cover Kafka security, specifically focusing on SSL encryption for secure data transmission. You will learn how SSL works in Kafka, how to set up SSL in a local cluster, and best practices for managing SSL certificates at an enterprise level.

What's included

3 videos1 assignment

In this module, we will guide you through securing your Spring Boot applications to interact with an SSL-enabled Kafka cluster. You’ll learn how to configure both the Kafka producer and consumer to securely connect and exchange data with the Kafka cluster using SSL encryption.

What's included

2 videos3 assignments

Instructor

Packt - Course Instructors
Packt
1,299 Courses334,545 learners

Offered by

Packt

Explore more from Data Management

Why people choose Coursera for their career

Felipe M.
Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
Jennifer J.
Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
Larry W.
Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
Chaitanya A.
"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."
Coursera Plus

Open new doors with Coursera Plus

Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Frequently asked questions