How to Connect Kafka With Spring Boot

Опубликовано: 28 Февраль 2026
на канале: Refactor First
1,985
27

In this video, we will be exploring how to connect to a Kafka cluster using a Spring Boot application.
We will talk about how to create custom serializer and deserializer and the various configuration properties while communicating with a Kafka cluster.

You can also read about this along with the GitHub link to the code: https://refactorfirst.com/spring-boot...

You can support me by buying me a coffee 😄 : https://www.buymeacoffee.com/amrutprabhu

Gear I use:
Sony Alpha a6000 : Amazon India : https://amzn.to/3RM7QMJ
Germany : https://amzn.to/3G1Iw24
US : https://amzn.to/3cpKZ9E
UK : https://amzn.to/3J0g5Ry

Razer Microphone : Amazon India : https://amzn.to/3aQxI9C
Germany : https://amzn.to/3DRRrAh
US : https://amzn.to/3ITKu3Q
UK : https://amzn.to/3v3RHbU




------Chapters----

00:00 - Introduction
00:30 - Creating An Application
01:22 - Code Walkthrough
01:35 - Retry Annotation
01:40 - Kafka Producer Code
02:58 - Kafka Consumer Code
03:45 - Kafka Configuration Properties
04:31 - Message Deserializer
04:55 - Message Serializer
05:09 - Starting Kafka Local Cluster
05:28 _ Kafka Topic Versioning Scheme
05:52 - Starting Application
05:58 - Understanding Output
06:16 - Conclusion And More


Music Credits:-

Sappheiros - Awake
----------------------------
Social Media
YouTube    / sappheiros  
Spotify goo.gl/hE9MDJ
Twitter twitter.com/SappheirosMusic
Instagram instagram.com/sappheirosmusic
Facebook facebook.com/SappheirosMusic
Discord discord.gg/Pk87yN9
  / awake  
--------------------------------------------------